MouseMoveRel not working

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
gchichester
Pro Scripter
Posts: 132
Joined: Mon Dec 22, 2008 4:56 pm
Location: St Augustine FL

MouseMoveRel not working

Post by gchichester » Sun Oct 18, 2020 10:47 pm

As you can see this loop is waiting on GetRectCheckSum to = 170808221 but the screen need to be refreshed
so I trying to the move the mouse to the refresh button at 441,503 and LClick then check again for the the updated CheckSum. Not sure why but I don't see the mouse curser move to the refresh button.

This script works fine when I step through it line by line via the Debugger, but if I run via a shortcut it seems to hang a the MouseMoveRel>Click.

[code]Let>FIP_SCANPIXELS=ALL
WaitWindowOpen>Export Manager - [E0HSEG: House/Master Common Information]
SetFocus>Export Manager - [E0HSEG: House/Master Common Information]
Wait>sw

Label>WaitForUpdate
GetRectCheckSum>627,458,744,475,cs
MouseMoveRel>441,503
LClick
If>cs=170808221
Goto>Done
Else
Lclick
Wait>1
Goto>WaitForUpdate
EndIf[/code]
Thank you in advance for all your help
Gil

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1380
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: MouseMoveRel not working

Post by Dorian (MJT support) » Mon Oct 19, 2020 5:09 pm

Could something be taking focus from the Export Manager before MouseMoveRel?

Either way, maybe you could try the Find Object Wizard to click the button instead of a mousemove and mouse click?
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts