Focus problem

Ask general questions here.
mapa
Posts: 22
Joined: Tue Jun 06, 2017 7:29 am

Focus problem

Post by mapa » Fri Jul 21, 2017 1:32 pm

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 ...
Attachments
application_20170718_145948.zip
Logfile
(870.99 KiB) Downloaded 10 times
cmd_snapshot.rxsnp
Snapshot
(9.38 KiB) Downloaded 12 times

User avatar
RobinHood42
Posts: 238
Joined: Fri Jan 09, 2015 3:24 pm

Re: Focus problem

Post by RobinHood42 » Mon Jul 24, 2017 12:13 pm

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)

mapa
Posts: 22
Joined: Tue Jun 06, 2017 7:29 am

Re: Focus problem

Post by mapa » Mon Jul 24, 2017 12:58 pm

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