Hello, I have a little script which I want to run as a non-admin user. When the exe starts I want to wait for the window to open and make a change of a combobox and a click. I run the Program.exe inside the script as domain-admin. The problem is that the script only run when I execute the complete script as domain-admin, when I start it as a non-admin-user it opens the Program.exe and stop. What can be the problem that the WinExists-command is not working? Do I need any parameters when I use RunAs? Here's the script: RunAs("admin","domain","password",0,"c:\temp\Program.exe")
While 1
If WinExists("program_name","Language") Then
ControlCommand("program_name","","ComboBox1","SelectString",'Language')
ControlClick("program_name", "Continue","Button14")
...
Else
sleep(200)
EndIf
WEnd