Page 1 of 1

Disabling physical mouse

Posted: Wed Feb 05, 2014 10:51 am
by Tnimni
Hi,

I am using

Code: Select all

Mouse.Enabled = false;
at the beginning of my test.
obviously i restore that value to true when test ends.

i understand it should disable the input from the physical mouse, how ever when i move the mouse the cursor is responding on the screen.

anyone can assist?

using Ranorex studio 4.1.1 and .net 4.0
My predecessor decided to write only DLL files for the testing, using the nUnit framework to run the tests. perhaps that is what causing the problem?

Re: Disabling physical mouse

Posted: Wed Feb 05, 2014 11:47 am
by Swisside
Hi !
I tried the following code :
public void MyMethod()
		{	
			Mouse.Enabled = false;
			Delay.Duration(2000);
			Mouse.Enabled = true;
			
		}
On my computer the mouse is not responding during the 2 seconds Delay.

(I'm using 4.1.4)

It might be the .dll you are talking about.

Regards

Re: Disabling physical mouse

Posted: Wed Feb 05, 2014 9:43 pm
by Support Team
It might also be a security related issue. Have you tried starting the NUnit process as Administrator?

Regards,
Alex
Ranorex Team

Re: Disabling physical mouse

Posted: Thu Feb 06, 2014 9:54 am
by Tnimni
Support Team wrote:It might also be a security related issue. Have you tried starting the NUnit process as Administrator?

Regards,
Alex
Ranorex Team
Hi,

It is loading as administrator as default, we are using Windows server 2003 for the Ranorex testing.

perhaps there is something i'm missing?

Re: Disabling physical mouse

Posted: Mon Feb 10, 2014 5:34 pm
by Support Team
Hello Tnimni,

You wrote in your first post that you are using Ranorex Studio 4.1.1. Can you please try to update Ranorex to the current version?
Please make a backup from your Solution before you update Ranorex. I would also suggest to start Ranorex Studio as Administrator.

Regards,
Bernhard