Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Substitute AltTab in one key

Tags:

autohotkey

Is it possible to substitute AltTab with only one key press ? i tried this one but it doesn't work

`::AltTab
like image 228
albator Avatar asked Oct 17 '14 13:10

albator


People also ask

Is there another way to tab on keyboard?

To jump to the next tab (on the right) press Ctrl + Tab or Ctrl + PgDn on your keyboard. This shortcut works perfectly on Windows devices and other operating systems (e.g Chrome OS on Chromebooks and Linux) with a familiar keyboard layout.

How do I Alt-Tab with mouse?

Double-clicking the script or clicking its Taskbar icon would open the Alt-Tab switcher and make it remain on the screen until you select a window or dismiss the switcher using mouse click.


1 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 allows it to simulate Alt+Tab. The digital sign is required if you are using Windows Vista and onwards.

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

  1. It will ask which AutoHotkey executable to sign. Pick one that you need (AutoHotkeyA32.exe, AutoHotkeyU32.exe, AutoHotkeyU64.exe or AutoHotkey.exe).
  2. Then it will ask to save the new executable. You can choose to overwrite the original file or save as another executable.
  3. Finally it will ask to create a "Run Script with UI Access" context menu item. If you choose 'Yes', then you can right-click a .ahk file and choose "Run Script with UI Access", which will use the digitally signed executable to run the .ahk file. But if you choose to overwrite the original file in step 2, then it is not necessary to create this context menu item.
like image 109
fxam Avatar answered Sep 24 '22 06:09

fxam