Now that some saint came along and put your stuff in code tags (bless his soul), we can move on to the problem... modifier keys! Let's comment as we go:
Quote:
Code:
; This works for win-tab
LWin & Tab::AltTab ; the motherlode, alt-tab!
This is good, but I'd use #tab:: instead
Quote:
Code:
; This is okay, but not right
LShift & #tab::ShiftAltTab
Your syntax is not allowed because it uses two conflicting items at the same time (modifier keys and prefix keys). It doesn't seem to throw a compile error, but the keypress combo is never detected. It's nice that prefix keys and modifier keys are both available for use, but this is a drawback to that. In this case, you'll want to stick to modifier keys so use #+tab::
Quote:
Code:
; This doesn't work at all:
; LWin & shift & tab::ShiftAltTab
This doesn't work because prefix keys (aka key combinations) don't allow three keys, only two. Ideally, I think that should work in AHK, so that you could create your own modifier keys (such as the AppsKey, as I am trying to do here:
http://www.autohotkey.com/forum/viewtopic.php?t=53971).
I'm not sure if you had any reason for only using LWin, but now it'll override Rwin, too. Chris did say in the pending changes section (
http://www.autohotkey.com/changelog/PendingChanges.htm) that he'd like to support key combinations with three keys, but I don't know how far off that is. Additionally, I think it would be cool if some sort of compile-time error was thrown so that you knew you were using prefix (combination) keys and modifier keys in the same statement.
So here's your code:
Code:
#tab::AltTab
#+tab::ShiftAltTab
Correction: that throws compile errors about AltTab and ShiftAltTab (L or R) anybody have a clue on how to get around that?