#Requires AutoHotkey v2.0

Loop
{
    If WinActive("Counter-Strike 2")
    {
        Send ("{Blind}{F9}") ;
        Sleep 50  ;
    }
}