AI is driving me crazy with hallucinated scripts (prevent alt+tab during game)
I'm a complete noob to this - never heard of autohotkey before until AI suggested it.
I'm getting into Arma3, and there are a lot of keys.
I would really appreciate an AHK v2 script that disables alt+tab exiting the game, whilst still allowing me to use, for instance, w+alt+tab where...
W = move forward (could be any other movement key though)
alt = freelook
tab = toggle walk/run
This is the latest Gemini has come up with so far, after about five previous suggested scripts didn't work at all (neither does this one):
#Requires AutoHotkey v2.0
#UseHook
; Automatically elevate to Administrator if not already running as admin
if not A_IsAdmin
{
Run '*RunAs "' A_AhkPath '" "' A_ScriptFullPath '"'
ExitApp
}
#SingleInstance Force
#HotIf WinActive("ahk_exe arma3_x64.exe")
; Use the wildcard (*) so this works even if you are holding down 'W' or other keys
*!Tab::
{
; {Blind} forces AHK to respect your held down Alt and W keys.
; It safely injects the Tab keypress without disrupting your movement.
SendInput "{Blind}{Tab}"
return
}
#HotIf
Thank you for any assistance!