wait for for ldown?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
jasonsblade
Newbie
Posts: 1
Joined: Tue Mar 06, 2007 4:55 pm

wait for for ldown?

Post by jasonsblade » Tue Mar 06, 2007 5:02 pm

i have a spot in a macro where i would like it to wait until the left mouse button is pressed...then run the next stage of the macro(looped) until the left button is released.

is there a way to do this? its the wait until mouse is pressed part im not able to do.


also is there an option to move the mouse to a position relative to its last position? (not relative to window)... say like 30 pixels down from its last place

thanks in advance for any help!

(after asking the mouse relative question i think i figured out how to do it....by using the "get cursor position" and "let" functions)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Mar 06, 2007 6:23 pm

Use the WaitKeyDown function. The left mouse button is virtual key code 1:

//Wait for lclick ...
WaitKeyDown>VK1
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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