AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mouse macro help

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Staticv2



Joined: 10 Nov 2009
Posts: 2

PostPosted: Tue Nov 10, 2009 4:48 pm    Post subject: Mouse macro help Reply with quote

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?
Back to top
View user's profile Send private message
john tuomi



Joined: 22 May 2006
Posts: 116

PostPosted: Tue Nov 10, 2009 4:58 pm    Post subject: Reply with quote

Code:
lbutton::
send,{lbutton down}
return

rbutton::
exitapp
Back to top
View user's profile Send private message
Carnifex



Joined: 10 Nov 2009
Posts: 9

PostPosted: Tue Nov 10, 2009 5:45 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
john tuomi



Joined: 22 May 2006
Posts: 116

PostPosted: Tue Nov 10, 2009 6:09 pm    Post subject: Reply with quote

actually, no. The Lbutton is in the down position, effectively blocking the Rbutton from functioning properly.
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 882
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Wed Nov 11, 2009 12:02 am    Post subject: Re: Mouse macro help Reply with quote

Staticv2 wrote:
If I click once on the right mouse button ...

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

Tested.
_________________
Antonio França
aka MasterFocus aka Tunis
+ My AHK stuff: ~MasterFocus
+ AHK @ irc.freenode.net: #ahk
Contact: PM only !
Back to top
View user's profile Send private message
Staticv2



Joined: 10 Nov 2009
Posts: 2

PostPosted: Wed Nov 11, 2009 11:17 pm    Post subject: Reply with quote

thaks all I will test it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group