My AutoIt script launches another script (written in UIAutomation). So I wrote this:
RunWait("C:\AutoUIInst\Test\bin\Debug\" & "Test.exe", "","")
It works fine. But now I have to add a parameter. For example: "Test.exe -someParam"
. So i tried RunWait()
:
RunWait('"C:\AutoUIInst\Test\bin\Debug\" & "Test.exe" -someParam', "","")
That won't work. Can someone help?
Maybe there is only a space missing right before the paramter.
RunWait("C:\AutoUIInst\Test\bin\Debug\Test.exe -someParam", "","")
You can also try ShellexecuteWait which also has a Parameter option!