DayZ Standalone: ChatBox Sqf Executor
Beautiful Alternative to Bowen's Executor or Debug Executors
Ideal for testing scripts on the fly.
Should work for Arma 2 and 3 as well as standalone.
Credits :
Enter text in chat and press 'End' to Execute.
Chat Clears on Execution.
https://i.imgur.com/RwxbA4p.png
https://i.imgur.com/zGaJVKX.png
Code:
Miz_Exec6 =
{
Mizz420Exec =
{
private ["_key","_handled","_display","_txt"];
_key = _this select 1;
_handled = false;
if(_key == 0xCF)then
{
_display = findDisplay 24;
if(!isNull _display)then
{
_txt = ctrlText (_display displayCtrl 101);
if(_txt == "")then
{
systemChat "Please Enter Text";
}
else
{
call compile _txt;
(_display displayCtrl 101) ctrlSetText "";
systemChat "Executed";
};
_handled = true;
};
};
_handled
};
while {true} do
{
waitUntil
{
!isNull (findDisplay 24)
};
(findDisplay 24) displayAddEventHandler ["KeyDown","_this call Mizz420Exec"];
waitUntil
{
isNull (findDisplay 24)
};
};
}; call Miz_Exec6;