Need Help! I can't figure out how to script ...

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Mayhem
Junior Coder
Posts: 25
Joined: Tue Apr 22, 2003 6:34 pm

Need Help! I can't figure out how to script ...

Post by Mayhem » Tue Apr 22, 2003 6:49 pm

I'm trying to script mouse movements ..

What i need to do is "mousemove" to 300,213
When X=415, move mouse down one line (or pixel on y axis)
Move X back to the Start
And keep moving down one line till Y=330..

Maybe i didn't explain that too well.. Kinda move the mouse like reading a book .. (eg)

(start) ----------------
----------------
----------------
---------------- (end)Begin
MouseMoveRel>300,213

Label>Start
GetCursorPos>X,Y
GetPixelColor>X,Y,S
Let>X=X+1
MouseMoveRel>X,Y
If>%X%=415,Start1
If>%Y%=330,Begin
Goto>Start

Label>Start1
Let>Y=Y+1
MouseMoveRel>X,Y
Goto>Start

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Tue Apr 22, 2003 7:34 pm

In your "Label>Start1" section, you forgot to add a line that sets X back to 300. (Moving the x-coordinate back to the left)

My kids are going to like those balloons!

Mayhem
Junior Coder
Posts: 25
Joined: Tue Apr 22, 2003 6:34 pm

Post by Mayhem » Tue Apr 22, 2003 7:41 pm

Thank you VERY MUCH!

I can't believe i missed that!

... what are your kid's favorite colors? :D

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Wed Apr 23, 2003 3:15 am

Purple ;)
I like green, especially paper with words like "washington" on em.

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