Mousemove - problems

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Paulo_05
Newbie
Posts: 4
Joined: Thu Jul 09, 2009 1:27 am

Mousemove - problems

Post by Paulo_05 » Thu Jul 09, 2009 6:06 am

Hi all,


I am testing the Mousemove command, but it doesn't work this way:


after FindImagePos, I wanted to move the mouse a little bit before clicking:


If>NumFound>0

Let> B=X_0-80
MouseMove> B,Y_0
LClick

Endif


but it doesn't work, the program doesn't accept B, in despite of the watch that presents the correct value.....

what should I do?????

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Be careful of leading or trailing spaces.

Post by gdyvig » Thu Jul 09, 2009 8:49 am

Hi Paulo,

The problem is most likely the space between the > and the B.

Let>B
not
Let> B

MouseMove>B
not
MouseMove> B

Also use "Remove trailing spaces" before saving your script.


Gale

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jul 09, 2009 1:44 pm

You should also be sure that you have done a SetFocus>windowname* before any Mouse/Send commands within any window..

Also make sure that B and Y_0 both translate to numbers.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Paulo_05
Newbie
Posts: 4
Joined: Thu Jul 09, 2009 1:27 am

It worked

Post by Paulo_05 » Thu Jul 09, 2009 3:11 pm

thanks!!

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