Move mouse relative from current location

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
danno111
Newbie
Posts: 4
Joined: Tue Mar 15, 2011 7:00 pm

Move mouse relative from current location

Post by danno111 » Fri May 06, 2011 2:01 pm

I think this is probably simple, but I can't figure it out. All I want to do is to move the mouse cursor down 5 and to the left 10 from the current coordinates. The current coordinate location will move, so it should be a relative move from wherever the cursor is currently located. This move is not relative to the window size, but to the cursors current location.

thank you for your help.

Jerry Thomas
Macro Veteran
Posts: 267
Joined: Mon Sep 27, 2010 8:57 pm
Location: Seattle, WA

Post by Jerry Thomas » Fri May 06, 2011 2:38 pm

Will this work for you?

Code: Select all

GetCursorPos>X,Y
MouseMove>{%X%+5},{%Y%+10}
Thanks,
Jerry

[email protected]

danno111
Newbie
Posts: 4
Joined: Tue Mar 15, 2011 7:00 pm

Post by danno111 » Fri May 06, 2011 7:42 pm

perfect. Thank you so much.

deathlyreaver
Newbie
Posts: 4
Joined: Mon Jun 06, 2011 2:58 am

Post by deathlyreaver » Mon Jun 06, 2011 3:01 am

Hello, I actually would love the exact same thing, but is it possible to get that code in a way that is compatible with iMacros? Thanks,

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Mon Jun 06, 2011 9:27 am

deathlyreaver wrote:Hello, I actually would love the exact same thing, but is it possible to get that code in a way that is compatible with iMacros? Thanks,
iMacros and Macro Scheduler are 2 totally different utilities created by 2 different companies. Your best bet is to ask iMacros for help. :wink:

deathlyreaver
Newbie
Posts: 4
Joined: Mon Jun 06, 2011 2:58 am

Post by deathlyreaver » Mon Jun 06, 2011 11:53 pm

Oh, I'm sorry. I thought this was for macros in general. :oops:

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