{"name":"isGameFocused","operator":null,"title":"isGameFocused","type":"command","url":"https://community.bistudio.com/wiki/isGameFocused","revid":309152,"updated":"2022-05-03T14:13:47Z","groups":["System"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.96"}],"since":{"game":"arma3","name":"Arma 3","version":"1.96"},"arma3_since":"1.96","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the state of game focus changed by pressing <kbd>ALT</kbd>+<kbd>TAB</kbd> or similar action.","syntaxes":[{"syntax":"isGameFocused","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if game window is focused, false if not","text":"Boolean - true if game window is focused, false if not"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nif (!isGameFocused) then { endMission \"End\" };\n```","code":["if (!isGameFocused) then { endMission \"End\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["isGamePaused"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: System","Introduced with Arma 3 version 1.96","Scripting Commands"]}