@zreenmkr
- create the dir "_bin" in JD_HOME dir and download / extract the file ...
- create this code (botton press for test)
Code:
if (name == "test") {
function hotkeyCtrlDel() {
var exePath = JD_HOME + '\\_bin';
var exeCmd = 'jdHotkey.exe'
var hotkey = getPath(exePath + "\\" + exeCmd);
callSync(hotkey, '-hkey');
}
}
... and does nothing
Quote:
Originally Posted by zreenmkr
\
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
|
yes , i want to use it in the script but :
-the file is *.exe
-in the script i say "execut this program here .."
es notepad
Code:
var textEditor = "notepad.exe";
callSync(textEditor);
it opens the program notepad ( = double clik on notepad.exe )
So being an .exe why shouldn't it do what it has to if I click twice on it ??
while with autohotkey I have an exe that clicked 2 times does what it should but put in the script ... it does nothing
Code:
var hotkeyexe = getPath(JD_HOME + "/_bin/CtrlCancEnterJD.exe");
callSync(hotkeyexe);
or
Code:
function hotkeyCtlrCancEnter(){
var exePath = JD_HOME + '\\_bin';
var exeCmd = 'CtrlCancEnterJD.exe'
var hotkey = getPath(exePath + "\\" + exeCmd);
callSync(hotkey);
}
there will certainly be something missing / wrong but I don't understand what