'Space+Tab triggers AltTab and outputs Space
This Autohotkey script works great as a remap for Alt+Tab. However, I've noticed that it also still outputs a Space the moment Tab is pressed down (with Space still held down). This typically is not a problem except when moving out of applications in which Space has a function, e.g. it will pause music in Spotify. How can I avoid that?
~Space & Tab::AltTab
Solution 1:[1]
The tilde prefix (~) prevents AHK from blocking the Space key-down/up events. It allows the key event to pass through.
If you remove ~, Space loses its original function. To avoid this, make the Space key to send itself:
Space & Tab::AltTab
Space::Send {Space}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user3419297 |
