Replace AltTab with one key

Can I replace AltTab with a single keystroke? I tried this, but it does not work.

`::AltTab 
+5
source share
3 answers

I use this, you may need to change the sleep delay.

 `:: Send {Alt Down}{Tab} Sleep 100 Send {Alt Up} return 

I am running Windows 8.1 64-bit and AutoHotkey v1.1.16.05. And my C:\Program Files\AutoHotkey\AutoHotkeyU64.exe is digitally signed by running the script described here ( EnableUIAccess.zip ) so that Windows can simulate Alt + Tab. A digital sign is required if you are using Windows Vista or later.

Download the zip file and extract it. Then run EnableUIAccess.ahk :

  • He will ask what autorun will execute for signing. Choose the one you need ( AutoHotkeyA32.exe , AutoHotkeyU32.exe , AutoHotkeyU64.exe or AutoHotkey.exe ).
  • Then he will ask to save the new executable file. You can overwrite the original file or save it as another executable file.
  • Finally, he will ask you to create a Run Script with UI Access shortcut menu item. If you select โ€œYes,โ€ you can right-click the .ahk file and select โ€œ Run Script with UI Access โ€ which will use a digitally signed executable to run the .ahk file. But if you decide to overwrite the source file in step 2, then there is no need to create this context menu item.
+7
source

From the docs:

Each Alt-Tab hotkey must be a combination of two keys, which is usually achieved using the ampersand (&) character.

http://ahkscript.org/docs/Hotkeys.htm#AltTabDetail

+1
source

You might even be able to avoid UIAccess and admin rights clutter. This works for me on Windows 8.1:

 `::Run "C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Window Switcher.lnk" 

And for others who are struggling to get a combination of two keys that work on Windows 8 or 10, here's an example of using Ctrl-Tab to launch a window switcher:

 ^Tab:: Run "C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Window Switcher.lnk" SetTimer EnterOnKeyUp, -1 return EnterOnKeyUp: WinWaitActive ahk_class TaskSwitcherWnd KeyWait Ctrl Send {Enter} SetTimer EnterOnKeyUp, Off return 

* Inspired: Fully working Alt Tab Win 8

+1
source

Source: https://habr.com/ru/post/1204925/


All Articles