{"name":"ctrlAt","operator":null,"title":"ctrlAt","type":"command","url":"https://community.bistudio.com/wiki/ctrlAt","revid":338355,"updated":"2023-03-01T00:25:09Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.12"}],"since":{"game":"arma3","name":"Arma 3","version":"2.12"},"arma3_since":"2.12","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the control at the specified coordinates.","syntaxes":[{"syntax":"display ctrlAt [x, y]","since":null,"effect":null,"exec":null,"params":[{"name":"display","type":"Display","optional":false,"default":null,"description":"the display to check","types":["Display"],"since":null,"text":"display: Display - the display to check"},{"name":"x","type":"Number","optional":false,"default":null,"description":"position (0 = left, 1 = right)","types":["Number"],"since":null,"text":"x: Number - position (0 = left, 1 = right)"},{"name":"y","type":"Number","optional":false,"default":null,"description":"position (0 = top, 1 = bottom)","types":["Number"],"since":null,"text":"y: Number - position (0 = top, 1 = bottom)"}],"returns":{"type":"Control","types":["Control"],"description":"the control at the specified coordinates, controlNull if none","text":"Control - the control at the specified coordinates, controlNull if none"},"form":"binary","operator":null,"left":{"text":"display","types":["Display"]},"right":{"text":"[x, y]","types":["Array"]}}],"examples":[{"text":"```sqf\nprivate _ctrl = _myDisplay ctrlAt [0.5, 0.5];\n```","code":["private _ctrl = _myDisplay ctrlAt [0.5, 0.5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlCreate","ctrlSetPosition","ctrlCommit"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Introduced with Arma 3 version 2.12","Scripting Commands"]}