Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

CSAltTabSaver

Small AutoHotkey script to block Alt+Tab and the Windows key while playing Counter-Strike 2, to stop accidental tabbing out mid-fight.

I’ve done this in 6 different gunfights before, and I will absolutely do it again if I hadn't made this.


What it does

  • Blocks Alt+Tab and Alt+Esc
  • Blocks Left and Right Windows keys
  • Blocks common Win shortcuts (Win+D, Win+Tab, Win+E, etc.)
  • Only active while CS2 is the focused window
  • No overlays, no GUI, no focus stealing

Hotkeys

F12 - Toggle Alt+Tab lock F11 - Toggle Windows key lock

Beep sounds confirm the state:

  • Alt+Tab ON = high double beep
  • Alt+Tab OFF = low long beep
  • WinKey ON = mid double beep
  • WinKey OFF = very low long beep

Startup

  • Shows a tray notification when launched
  • Runs in the background
  • Tray icon confirms it is running
  • Right-click tray icon -> Exit

Requirements

Option A (script):

  • Windows
  • AutoHotkey v2.x (v1 will NOT work)

Option B (compiled release):

  • Windows
  • No AutoHotkey install required

AutoHotkey download: https://www.autohotkey.com


Usage

Script version:

  1. Install AutoHotkey v2
  2. Double-click CSAltTabSaver.ahk

Compiled version:

  1. Download the EXE from the Releases page
  2. Double-click to run

Both versions work the same.


Anti-cheat / VAC notes

  • Does not read or write game memory
  • Does not inject into CS2
  • Does not automate gameplay
  • Only blocks OS-level keys

Widely considered safe for VAC-protected games.


Do whatever you want with it. If it saves you once in game then it worked.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages