I am not able to do anything when my ranorex script is running because ranorex use mouse actions to perform the automate

Ask general questions here.
premravi
Posts: 128
Joined: Tue Jan 08, 2019 1:55 pm

I am not able to do anything when my ranorex script is running because ranorex use mouse actions to perform the automate

Post by premravi » Sun Feb 21, 2021 10:13 am

Hi,

I configured Ranorex dll's in visual studio and running my test cases from Visual Studio
Now the problem is Ranorex use mouse actions to run the operation in the screen so while the execution is going on I cannot minimize the screen neither I can do anything else in my machine
Please help me with a workaround where I can run the ranorex automation script from Visual Studio and minimize that screen where the automation is going on and simultaneously work on other tasks as well

TO give more clarity I am connecting to a virtual machine via RDP using the IP and password, that is my client machine inside that I am executing the Ranorex test cases from Visual Studio

Now I want to come out of the Virtual Machine (VM) while the execution is running and perform some other tasks outside the VM

Please help me to achieve this requirement

NOTE : I am not running the test cases in Ranorex, I am running the test cases from Visual Studio, I just configured the Ranorex DLL's in Visual Studio

Regards

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 43
Joined: Mon Dec 07, 2020 6:30 pm

Re: I am not able to do anything when my ranorex script is running because ranorex use mouse actions to perform the auto

Post by tmcdoniel » Fri Apr 16, 2021 5:41 pm

Take a look at this Microsoft link that describes editing the registry to add a DWORD value for RemoteDesktop_SuppressWhenMinimized . Perhaps adding this entry with the proper value will help resolve your issue.

https://social.technet.microsoft.com/Fo ... inserverTS

"This is a common issue with all UI automation tools. To run tests on a remote machine while the RDC window is minimized, add registry keys on the computer from which you connect to the remote machine:
1. Click the Windows Start button.
2. Type regedit in the Run box and press Enter.
For 32-bit Windows
(1). Find the registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
(2). Create a DWORD value with the name RemoteDesktop_SuppressWhenMinimized and set its value to 2.
For 64-bit Windows
(1). Find the registry keys:
HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Terminal Server Client
(2). Create a DWORD value with the name RemoteDesktop_SuppressWhenMinimized and set its value to 2.
Note: In specific configurations, a policy or a setting which force HKEY_CURRENT_USER to override the HKEY_LOCAL_MACHINE, you might have to modify the above registry keys under HKEY_CURRENT_USER instead."

Thank you,
Timothy McDoniel
Sales Engineer @ Ranorex