1

I've been wondering if there is such thing as an Alt + Tab toggle for when one is playing a game.

So here's the concept I'm after:

A toggle like F9 to disable and enable Alt + Tab so one doesn't accidently Alt + Tab out of the game/program (Valorant in my case).

Penguin
  • 5,134
  • 5
  • 23
  • 54
  • 1
    Likely an AutoHotKey script could do it. But, the downside would be, if you disable those keys, what if in game things are bound to Alt and Tab? – nightsurfer Jan 08 '21 at 16:16
  • 1
    Some gaming keyboards have a "game mode", which blocks certain keys like the Windows key. Maybe there's a keyboard with a similar mode that can specifically block Alt+Tab? – Nolonar Jan 08 '21 at 16:54

1 Answers1

5

You can use AutoHotKey. The script in question would be:

!Tab::
return

to disable the key, or to rebind it something like (rebinding to F8):

!Tab::F8

Use F9 to toggle on Alt + Tab:

IsEnabled := 1
F9::
if (IsEnabled = 1) {
    IsEnabled := 0
} else if(IsEnabled = 0) {
 IsEnabled := 1
}
return
#If IsEnabled
!Tab::
return
Penguin
  • 5,134
  • 5
  • 23
  • 54