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 

Tiny error in hotkey assignment?

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



Joined: 23 Feb 2009
Posts: 30

PostPosted: Wed Nov 18, 2009 8:48 am    Post subject: Tiny error in hotkey assignment? Reply with quote

Hi fellow AHK fans,

I have defined the hotkey combi of CTRL and TAB for one specific program, to go to the next tab (remapping to the regular keys for that program).

Likewise I would like to define the combi of SHIFT, CTRL and TAB to go to the previous tab.

This is what I have coded:

Code:
#IfWinActive, ahk_class ATL:ExplorerFrame
    ^Tab::^!Right               ; Xplorer2 / output Control+Alt+Right when pressing Control+Tab
    +^Tab::^!Left               ; Xplorer2 / output Control+Alt+Left when pressing Shift+Control+Tab (doesn't work)
#IfWinActive


However, the last hotkey combi doesn't work. In fact, if I change the action to for example a MsgBox, the msgbox doesn't popup either. It seems that the hotkey combi may not even get thru right...

Anyone has an idea what could be wrong here? Thanks for any help!

Greetings,

Marc
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Nov 18, 2009 8:54 am    Post subject: Reply with quote

?
Code:
^Tab::
GetKeyState, state, Shift
if state = D
send ^!{Left}
else
send ^!{Right}
return
Back to top
Guest






PostPosted: Wed Nov 18, 2009 8:54 am    Post subject: Reply with quote

correction, missing a $ in front of the hotkey
Code:

$^Tab::
GetKeyState, state, Shift
if state = D
send ^!{Left}
else
send ^!{Right}
return
Back to top
Guest






PostPosted: Wed Nov 18, 2009 8:55 am    Post subject: Reply with quote

...sorry, i mean *
Back to top
MarcInSpace



Joined: 23 Feb 2009
Posts: 30

PostPosted: Wed Nov 18, 2009 9:31 am    Post subject: Reply with quote

Thanks Guest!

The following code does the job great

Code:

        *^Tab::
        GetKeyState, state, Shift
        if state = D
            send ^!{Left}
        else
            send ^!{Right}
        return  :D


Greetings,

Marc
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