[solved]hotkey parentheses problem.

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 21
Joined: Thu Feb 14, 2013 5:59 pm

[solved]hotkey parentheses problem.

Post 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?
Last edited by yjs14 on Fri Jul 24, 2015 9:07 pm, edited 1 time in total.

Offline
Posts: 582
Joined: Mon Apr 08, 2013 9:50 pm
Location: Win7SP1x64, APx64

Post 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")`)

Offline
Posts: 21
Joined: Thu Feb 14, 2013 5:59 pm

Post 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...

YuS
Offline
Posts: 512
Joined: Sun Sep 15, 2013 8:25 am
Location: 013 в Тентуре, семь по Спирали, налево от Большой Медведицы

Post by YuS »

yjs14 wrote: "%f"', "%d"
// 0x2 expand AkelPad variables:
// %f active file.
// %d directory of active file.
// %a AkelPad's directory.

Offline
Posts: 21
Joined: Thu Feb 14, 2013 5:59 pm

Post 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...

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post 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");`)

Offline
Posts: 21
Joined: Thu Feb 14, 2013 5:59 pm

Post 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
Post Reply