Page 1 of 1

Focus problem

Posted: Fri Jul 21, 2017 1:32 pm
by mapa
Hi,

in our solution the cmd stuff didnt get the focus and so ranorex executes it in the background.
so why didnt our cmd console get the focus ?
In our case we just see our ranorex application which doesnt really make some sense.
i ´d like to provide you a video but its > 5 mb ...

Re: Focus problem

Posted: Mon Jul 24, 2017 12:13 pm
by RobinHood42
Hi mapa,

I would highly recommend to execute your CMD commands direclty from an user code module/user code method.

E.g.:
System.Diagnostics.Process.Start("CMD.exe",@"TASKKILL /IM chrome.exe /F");
Further readings:
https://stackoverflow.com/questions/146 ... t-commands
https://www.ranorex.com/help/latest/les ... de-modules

Cheers,
Robin 8)

Re: Focus problem

Posted: Mon Jul 24, 2017 12:58 pm
by mapa
hi,

first of all thanks for your answer :)
I could do that but i dont get the difference..
So why should it work that way, because it is similar in my opinion.

best regards