I would like to remap Alt+Tab to Win+Tab (to get the nice view of Flip-3D available after pressing Win+Tab every time when I press Alt+Tab).
I tried suggestions from here: http://www.autohotke...topic44934.html
But it works as described in user's comment at the end: "I press alt-tab, it gives me a quick glimpse of flip-3d before giving me back my desktop".
Any working ideas?
PHew, Win7Prof, 64-bit
Alt+Tab remap
Started by
PHew
, Sep 27 2010 10:30 AM
10 replies to this topic
#1
-
Posted 27 September 2010 - 10:30 AM
edit: nevermind for now
works but you lose your alt key
LAlt::LWin
works but you lose your alt key
#2
-
Posted 27 September 2010 - 02:45 PM
ok i think i found the solution
bit sloppy but works
$*Tab:: Getkeystate, Laltstate, Lalt, P if Laltstate = D Send {LAlt up}{LWin down}{Tab} else Send {Tab} return ~$*LAlt up::Send {Lwin up}
bit sloppy but works
#3
-
Posted 27 September 2010 - 03:12 PM
Thanks a lot. It has some side-effects (original Win+Tab no longer works), but I don't care.
The link I sent was wrong, I meant http://superuser.com... ... ke-win-tab, so I'd better post your solution there.
Thanks again,
PHew
The link I sent was wrong, I meant http://superuser.com... ... ke-win-tab, so I'd better post your solution there.
Thanks again,
PHew
#4
-
Posted 28 September 2010 - 07:55 AM
If you add {Blind} to the beginning of each Send, Win+Tab should continue to work. As a bonus, Alt+Shift+Tab will cycle backwards, as Win+Shift+Tab does.
#5
-
Posted 28 September 2010 - 08:22 AM
Well, now's perfect...
Thank you, experts,
PHew
Thank you, experts,
PHew
#6
-
Posted 28 September 2010 - 08:29 AM
OK, I found one more improvement: Alt+Tab (and Win+Tab too, since it's its original behaviour) shows the top window in the foreground, so when you press it just once and release the keys, you don't switch anywhere and get the same window in the foreground.
How can I improve the script to make Alt+Tab immediately switch to the next window if pressed only once? I thought sending another Tab would be enough, but it works just initially - then after I press Tab again I get it scrolled by two windows at a time.
Any ideas? Thanks.
PHew
How can I improve the script to make Alt+Tab immediately switch to the next window if pressed only once? I thought sending another Tab would be enough, but it works just initially - then after I press Tab again I get it scrolled by two windows at a time.
Any ideas? Thanks.
PHew
#7
-
Posted 28 September 2010 - 08:49 AM
Ok so there was some debate after the original code block was posted as a solution. I have tested all of these ideas and I got the desired effect. Here is the code for the solution with all the problems in this thread solved:
$*Tab:: Getkeystate, Laltstate, Lalt, P if Laltstate = D { Send {Blind}{LAlt up}{LWin down}{Tab} ifequal FixB, 0, Send {Tab} FixB = 1 } else Send {Blind}{Tab} return ~$*LAlt up:: Send {Blind}{Lwin up} FixB = 0 return
#8
-
Posted 24 April 2011 - 03:56 AM
Hey guys!
Hope you are still around and great that you have found a solution for this.
I've been googling for the oppsite thing. I wish to make my Win-tab behave like alt-tab, in the sense that it would switch the windows with just one press as alt-tab does. The reason for this is that my other keyboard has the windows and alt keys switched, and it's irritating to always press the wrong key. I don't care wheter it looks like alt-tab or win-tab, I just press it once and expect the windows to be switched swiftly.
I had a look at the code and couldn't figure out how to reverse it. If anyone is willing to help, it would be greatly appreciated!
Hope you are still around and great that you have found a solution for this.
I've been googling for the oppsite thing. I wish to make my Win-tab behave like alt-tab, in the sense that it would switch the windows with just one press as alt-tab does. The reason for this is that my other keyboard has the windows and alt keys switched, and it's irritating to always press the wrong key. I don't care wheter it looks like alt-tab or win-tab, I just press it once and expect the windows to be switched swiftly.
I had a look at the code and couldn't figure out how to reverse it. If anyone is willing to help, it would be greatly appreciated!
#9
-
Posted 29 July 2011 - 05:57 AM
i want to change my alt+tab and my Win+Tab. can i use the same document for both codes?
#10
-
Posted 28 October 2012 - 08:33 AM
Find Window Switcher.lnk in C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch .
Copy the The shortcut to somewhere else (I use documents/ahk).
Use this script:
#Tab:: Run, "C:\Users\YourUserNameHere\Documents\ahk\Window Switcher"
If you are trying to use the app switcher in SetPoint then I suggest this:
^!*0:: Run, "C:\Users\YourUserNameHere\Documents\ahk\Window Switcher"
Then in SetPoint Bind the keystroke for app switcher to Ctrl+Alt+Shift+0
#11
-
Posted 19 June 2014 - 04:03 PM