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: custom combination defeats hotkey

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



Joined: 13 Feb 2008
Posts: 11

PostPosted: Wed Feb 13, 2008 9:19 pm    Post subject: Mouse: custom combination defeats hotkey Reply with quote

So, I may just be tired and have fundamentally misunderstood something. I have a multi-button mouse, and would like to be ablt to use one of the side buttons in certain programs as a modifier key for other buttons on the mouse, while also having a function of its own.

For example, in Cubase, alone I would like Alt, but in concert with the mousewheel I would like to zoom (g and h in Cubase's keyboard shortcuts). Here's what I thought would do the trick:

Code:
#IfWinActive, Cubase SX
Xbutton1::Ctrl
Xbutton2::Alt
XButton2 & ~WheelDown::Send, {g}
XButton2 & ~WheelUp::Send, {h}


but while the combinations work, this seems to defeat the intial remaping.
So, where am I going wrong?
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Thu Feb 14, 2008 1:05 am    Post subject: Reply with quote

try
Code:
#IfWinActive, Cubase SX
Xbutton1::LCtrl
Xbutton2::LAlt
!WheelDown::Send, g
!WheelUp::Send, h

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Thu Feb 14, 2008 5:47 am    Post subject: Re: Mouse: custom combination defeats hotkey Reply with quote

stutter wrote:
but while the combinations work, this seems to defeat the intial remaping.
So, where am I going wrong?
See Custom Combinations.
Quote:
The presence of one of the above hotkeys causes the release of [the prefix key] to perform the indicated action, but only if you did not press any other keys while [the prefix key] was being held down.
Back to top
View user's profile Send private message Visit poster's website
stutter



Joined: 13 Feb 2008
Posts: 11

PostPosted: Fri Feb 15, 2008 12:09 pm    Post subject: Reply with quote

thanks for the replies. LexiKos, I'd tried that and it wasn't working, and I could not understand why. However, I've just realised my autohotkey script is not responding to XButton2, which was the cause of my problems... just have to figure out why now.

edit: conflict in the script, sorted, oops...
Back to top
View user's profile Send private message
Display posts from previous:   
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