know when the user lets go of the left mouse button??

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

know when the user lets go of the left mouse button??

Post by Aaron » Thu Apr 12, 2007 4:00 pm

//There is a OnEvent>KEY_DOWN,VK1,0,MouseClick

//Is there a way to know when the OnEvent>LUp

//I'm trying to write a script that will save the mouse REC when the mouse is left clicked in X1,Y1

//then save the mouse REC when the mouse is left clicked is released in X2,Y2



//-------something like this------------

Let>X1=0
Let>Y1=0
Let>X2=0
Let>Y2=0

OnEvent>KEY_DOWN,VK1,0
GetCursorPos>X1,Y1

Label>MainLoop
Wait>0.2
Goto>MainLoop

OnEvent>LUp
GetCursorPos>X2,Y2


MessageModal>%X1%,%Y1%,%X2%,%Y2%
Aaron

Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

Post by Aaron » Thu Apr 12, 2007 6:18 pm

I really need some help on this one

I searched and tried everything I can think of.

Ive tried subs, loops, if, OnEvent>, GetCursorPos.

If anyone has and idea, please post it.

Thanks
Aaron

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