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)
MsgBox(0, 0, "Pause")
;
; the following line doesn't instead. Why?
Local $sCommand = 'Local $sMsg = "Hello", $Dummy = MsgBox(0,"Debug", $sMsg)'
Run(@AutoItExe & ' /AutoIt3ExecuteLine ' & $sCommand)
MsgBox(0, 0, "Pause")