Page 1 of 1

Cannot control button on form

Posted: Tue Nov 29, 2011 2:00 pm
by SanMan
Studio and Spy founds the Form and can highlight the button in it.

But when I record MoveTo button, cursor does not move.

When trying Mouse.MoveTo(x,y) and then Mouse.Click() -> nothing happens even the cursor is moved to right position.

Could it be because the Form I am trying to control has SYSTEM as user, so it cannot be controlled by Ranorex or what could be the problem here?

I can get the image of button:
Image img = repo.Form...CaptureCompressedImage();

Re: Cannot control button on form

Posted: Wed Nov 30, 2011 11:28 am
by Support Team
Hi,
SanMan wrote:Could it be because the Form I am trying to control has SYSTEM as user, so it cannot be controlled by Ranorex or what could be the problem here?
Did you try to start Ranroex as Administrator? Do you know if the UAC is enabled on this machine? If yes please try to disable it and replay your test? As you mentioned above, maybe it is a security issue.

Regards,
Peter
Ranorex Team

Re: Cannot control button on form

Posted: Wed Nov 30, 2011 12:39 pm
by SanMan
Yes, I got it working by disable UAC and running the *.bat as Administrator.

Thank you!