General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Exec Macro
Posted by: Squabsy
Date: January 19, 2003 08:54PM

I am running k-meleon .07 on windows 98 and cannot get the exec macro to open an external program.
I have tried copying some of the macros from the forum for opening mail clients but none of them work.
Has anyone got any suggestions as to what might be wrong ?

Options: ReplyQuote
Re: Exec Macro
Posted by: SlideRule
Date: January 19, 2003 09:04PM

Squabsy:

Can you please give an example, of what YOUR exec statement looks like ? ? ?

In all probabilty, it is because the macro statement needs to read something like this:

exec("C:\\Program Files\\Email Program\\Emailer.exe");

WITH double backslashes.

See the link for an explanation:

http://kmeleon.freewebsites.com/kmeleon-manual/macro-lang.html#MACRO-EXPRESSIONS

A backslash is used as escape character to enter special characters.

\\ backslash
\n newline
\r carrige return
\" quotation mark

ALSO

I am using the macro below, to open my email program . . . that is, the email program I have set up as my default.

email_client {
menu = "E&mail\tCtrl+M";
open(;" rel="nofollow" >mailtosmiling smiley;
}

Hope this helps, and, please let us know.

SlideRule

Options: ReplyQuote
Re: Exec Macro
Posted by: squabsy
Date: January 20, 2003 09:22AM

Yes it was indeed the double \\ that I was missing
Thanks

Options: ReplyQuote


K-Meleon forum is powered by Phorum.