Hi
Is it possible to execute the following snippet using the Run() command with a syntax like this:
Run(@AutoItExe & ' /AutoIt3ExecuteLine ' & $sCommand)
where the $sCommand variable contains the statements stacked in a single line?
In the following test script I get an odd error.
Any advise is welcome.
Thanks
; Testing the /AutoIt3ExecuteLine parameter
;
; the following line works
Local $sMsg = "Hello", $Dummy = MsgBox(0, "Debug", $sMsg)
interesting.
Local $sCommand = _
'Local ' & _
'$Dummy1 = MsgBox(0,"Debug", ""), ' & _
'$Dummy2 = Sleep(500), ' & _
'$Dummy3 = WinWaitActive("Debug",""), ' & _
'$Dummy4 = ControlClick("Debug","","[CLASS:Button; TEXT:OK]"), ' & _
'$Dummy5 = Sleep(3000), ' & _
'$Dummy6 = MsgBox(0,"Debug2", "")'
$sCommand = '"' & StringReplace($sCommand, '"', '""') & '"'
ConsoleWrite($sCommand & @CRLF)