Quote:
should indicate the path of the executable, but what does '\\_bin' mean?
|
\ is to escape symbol
\\ is literally mean \ or use /
For example jd will see this path 'C:\Program Files\JDownloader 2.0\JDownloader2.exe' as 'C:Program FilesJDownloader 2.0JDownloader2.exe' because it was trying to escape P from Program and J from JDownloader and J from JDownloader2.exe.
So it has to be given 'C:\\Program Files\\JDownloader 2.0\\JDownloader2.exe'
Or 'C:/Program Files/JDownloader 2.0/JDownloader2.exe'
Quote:
IMPORTANT: Create sub-folder '_bin' in JD_HOME then download and copy 'notepadCmd.exe' to dir
|
JD_HOME is jd environment var for directory where jd is installed.
In this case copy 'jdHotkey.exe' into '_bin' folder you just created
Quote:
I click twice, the exe is executed but Jd does nothing
|
I thought you said before that you want to use it in EventScript.
It cannot be double clicking. Just call/put hotkeyCtrlDel(); anywhere in your script as desired and use any trigger you want then Ctrl+Del will be sent to JD
Quote:
I tried to narrow the keys with autohotkei and I came up with a similar thing
|
autoit is much better written, highly recommend that.
Quote:
how do I tell jd to run "JD-CtlrCancEnter.ahk" ?
or I have to recall in some way the executable / compiled "JD-CtlrCancEnter.exe"?
|
yes, you need to compile to executable then create a function as shown bellow and call/put hotkeyCtlrCancEnter(); in your script.
Code:
function hotkeyCtlrCancEnter()
var exePath = JD_HOME + '\\_bin';
var exeCmd = 'JD-CtlrCancEnter.exe'
var hotkey = getPath(exePath + "\\" + exeCmd);
callSync(hotkey);
}