Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] @ desga2 Yes, double quotes are needed when I use variables. Sounder.exe played the wave file even with single quotes because there were no variables in the line. This next code uses double quotes. Note that sounder still plays the ding.wav file. If "ding.wav" shows up for sounder, why to the switches not show up for dlock2 or MySecret? It has to be something I am doing with the quotes because two programs would not have the same problem otherwise. There are exactly the same number of quotes, single and double, on each exec() statement. [code] $_Snippet_SwitchM = "-e -n -p deyoung readme.txt readme.ecm" ; $_Snippet_SwitchD = "/E dlock2.txt dlock2.ecm /P deyoung" ; $_Sound_Choice = "ding.wav"; exec("\"".getfolder(UserMacroFolder)."\\Secur_Paste\\MySecret.exe\" ".$_Snippet_SwitchM."") ; exec("\"".getfolder(UserMacroFolder)."\\Secur_Paste\\dlock2.exe\" ".$_Snippet_SwitchD."") ; exec("\"".getfolder(UserMacroFolder)."\\Secur_Paste\\sounder.exe\" ".$_Sound_Choice.""); [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development