Space+Tab triggers AltTab and outputs Space

649 views Asked by At

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
1

There are 1 answers

0
Relax On BEST ANSWER

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}