I’m using a script file to run a process embedded by UiRobot.exe command and passing the file location as the -file argument.
The problem is that when the UiRobot command get executed a window pops up and covers some part of the target app which causes errors/exceptions (see below screenshot).
I couldn’t find an argument to minimize or hide the UiRobot.exe window. For example in PowerShell scripting there is an argument called -WindowStyle for Start-Process command (Start-Process -WindowStyle minimized cmd.exe).
How could I run the UiRobot command and do not get the UiRobot window visible?
The only difference between my codes and your suggested solution is the first cmd.exe parameter. I changed the cmd.exe parameter from /k to /c in my PowerShell script. But still get the UiRobot window visible at the front of target app window. As I said I’m looking for a possibility to hide or minimize the UiRobot window(the window with blue frame around it in the screenshot) not the cmd window, because, already by using -WindowStyle minimized parameter the cmd will be disappeared.