Cannot control button on form

Ask general questions here.
SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Cannot control button on form

Post by SanMan » Tue Nov 29, 2011 2:00 pm

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();

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Cannot control button on form

Post by Support Team » Wed Nov 30, 2011 11:28 am

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

SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Re: Cannot control button on form

Post by SanMan » Wed Nov 30, 2011 12:39 pm

Yes, I got it working by disable UAC and running the *.bat as Administrator.

Thank you!