AutoHotkey Community

It is currently May 26th, 2012, 11:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Mouse macro help
PostPosted: November 10th, 2009, 5:48 pm 
Offline

Joined: November 10th, 2009, 5:41 pm
Posts: 2
Hello, I am new with macros.
I want a macro

If I click once on the right mouse button keep held down
and if I click right mouse agian button it will releas to normal.

can someone help me or can someone creat it?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 5:58 pm 
Offline

Joined: May 22nd, 2006, 2:12 pm
Posts: 150
Code:
lbutton::
send,{lbutton down}
return

rbutton::
exitapp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 6:45 pm 
Offline

Joined: November 10th, 2009, 3:57 am
Posts: 11
john tuomi wrote:
Code:
lbutton::
send,{lbutton down}
return

rbutton::
exitapp


actually it's
Code:
lbutton::
send,{lbutton down}
return

rbutton::
send,{lbutton up}
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2009, 7:09 pm 
Offline

Joined: May 22nd, 2006, 2:12 pm
Posts: 150
actually, no. The Lbutton is in the down position, effectively blocking the Rbutton from functioning properly.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Mouse macro help
PostPosted: November 11th, 2009, 1:02 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Staticv2 wrote:
If I click once on the right mouse button ...

Code:
$RButton:: Send, % "{RButton " ( (var:=!var) ? "Down" : "Up") "}"

Tested.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2009, 12:17 am 
Offline

Joined: November 10th, 2009, 5:41 pm
Posts: 2
thaks all I will test it.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: hyper_, Leef_me, patgenn123, Pulover, rbrtryn, XstatyK and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group