{"name":"buttonAction","title":"buttonAction","type":"command","url":"https://community.bistudio.com/wiki/buttonAction","revid":376407,"updated":"2025-10-11T00:59:12Z","groups":["GUI Control"],"status":"ok","games":{"ofp":"1.75","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.75","arma3_since":"0.50","locality":{"argument":"local"},"description":"Returns the action assigned to a control of the currently active user dialog. Can be used for buttons and active texts. Read Arma: GUI Configuration for more information about user dialogs and controls.","syntaxes":[{"syntax":"buttonAction idc","params":[{"name":"idc","type":"Number","description":"button IDC","type_expr":"Number"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"idc"}},{"syntax":"buttonAction control","params":[{"name":"control","type":"Control","type_expr":"Control"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"control"}}],"examples":[{"code":["buttonSetAction [100, { player exec \"reply.sqs\" }];\n_action = buttonAction 100; // Returns { player exec \"reply.sqs\" };"]}],"see_also":["buttonSetAction"]}