 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
MarcInSpace
Joined: 23 Feb 2009 Posts: 30
|
Posted: Wed Nov 18, 2009 8:48 am Post subject: Tiny error in hotkey assignment? |
|
|
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 |
|
 |
Guest
|
Posted: Wed Nov 18, 2009 8:54 am Post subject: |
|
|
?
| Code: | ^Tab::
GetKeyState, state, Shift
if state = D
send ^!{Left}
else
send ^!{Right}
return |
|
|
| Back to top |
|
 |
Guest
|
Posted: Wed Nov 18, 2009 8:54 am Post subject: |
|
|
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
|
Posted: Wed Nov 18, 2009 8:55 am Post subject: |
|
|
| ...sorry, i mean * |
|
| Back to top |
|
 |
MarcInSpace
Joined: 23 Feb 2009 Posts: 30
|
Posted: Wed Nov 18, 2009 9:31 am Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|