AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 18th, 2009, 8:48 am 
Offline

Joined: February 23rd, 2009, 12:14 pm
Posts: 31
Location: Netherlands
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 8:54 am 
?
Code:
^Tab::
GetKeyState, state, Shift
if state = D
send ^!{Left}
else
send ^!{Right}
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 8:54 am 
correction, missing a $ in front of the hotkey
Code:
$^Tab::
GetKeyState, state, Shift
if state = D
send ^!{Left}
else
send ^!{Right}
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 8:55 am 
...sorry, i mean *


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 9:31 am 
Offline

Joined: February 23rd, 2009, 12:14 pm
Posts: 31
Location: Netherlands
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


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Cerberus, Leef_me, Maestr0, Pulover, rbrtryn, Yahoo [Bot] and 69 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