View Single Post
  #1249  
Old 14.03.2020, 21:57
zreenmkr zreenmkr is offline
JD Addict
 
Join Date: Feb 2020
Posts: 174
Default

Quote:
Code:
var ahk = "C:\\AHK\\AutoHotkeyU32.exe";
var script = "C:\\AHK\\Scripts\\notepad.ahk";
@BJN01 you might want to adapter @mgpai option that s/he pointed out to execute autohotkey/autoit source code directly without compiling it to save time on debugging

Code:
var autoitDir = 'C:\\Program Files (x86)\\AutoIt3';
var autoitExe = 'AutoIt3.exe';
//var autoitExe = 'AutoIt3_X64.exe';
var autoitPath = getPath(autoitDir + "\\" + autoitExe);

var scriptDir = C:\\AU3\\Scripts'
var scriptName = 'notepad.au3'
var scriptPath = getPath(scriptDir + "\\" + scriptName );

callSync(autoitPath , scriptPath , [text]);
Reply With Quote