Page 1 of 1

[solved]hotkey parentheses problem.

Posted: Fri Jul 24, 2015 7:54 am
by yjs14

Code: Select all

Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4105); AkelPad.Exec(`rundll32.exe shell32,ShellExec_RunDLL "%f"`, "%d")`)
I've trid enclosing the parameters with these ' " ', but all failed...
any idea?

Posted: Fri Jul 24, 2015 8:45 am
by Drugmix
try this:

Code: Select all

Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4105); AkelPad.Exec('rundll32.exe shell32,ShellExec_RunDLL "%f"', "%d")`)

Posted: Fri Jul 24, 2015 9:20 am
by yjs14
Drugmix wrote:try this:

Code: Select all

Call("Scripts::Main", 1, "EvalCmd.js", `AkelPad.Command(4105); AkelPad.Exec('rundll32.exe shell32,ShellExec_RunDLL "%f"', "%d")`)
I tried...It can save but not execute...

Posted: Fri Jul 24, 2015 11:32 am
by YuS
yjs14 wrote: "%f"', "%d"
// 0x2 expand AkelPad variables:
// %f active file.
// %d directory of active file.
// %a AkelPad's directory.

Posted: Fri Jul 24, 2015 12:06 pm
by yjs14
YuS wrote:
yjs14 wrote: "%f"', "%d"
// 0x2 expand AkelPad variables:
// %f active file.
// %d directory of active file.
// %a AkelPad's directory.

Code: Select all

Call("Scripts::Main", 1, "EvalCmd.js", `0x2; AkelPad.Command(4105); AkelPad.Exec("rundll32.exe shell32,ShellExec_RunDLL '%f'", "%d");`)
it still doesn't work...

Posted: Fri Jul 24, 2015 12:37 pm
by Instructor
yjs14
Hotkeys plugin expand %f and %d variables itself but with single backslash (JScript string require double backslash). To pass expanding to EvalCmd.js use %%:

Code: Select all

Call("Scripts::Main", 1, "EvalCmd.js", `0x2; AkelPad.Command(4105); AkelPad.Exec('rundll32.exe shell32,ShellExec_RunDLL "%%f"', "%%d");`)

Posted: Fri Jul 24, 2015 9:06 pm
by yjs14
Instructor wrote:yjs14
Hotkeys plugin expand %f and %d variables itself but with single backslash (JScript string require double backslash). To pass expanding to EvalCmd.js use %%:

Code: Select all

Call("Scripts::Main", 1, "EvalCmd.js", `0x2; AkelPad.Command(4105); AkelPad.Exec('rundll32.exe shell32,ShellExec_RunDLL "%%f"', "%%d");`)
Ok now I see. Thanks!! :D