
[] spawn {
disableSerialization;
while{true} do {
waitUntil{!isNull (findDisplay 49)};
input_text = "";
_button = (findDisplay 49) ctrlCreate ["RscButton",-1];
_textbox = (findDisplay 49) ctrlCreate ["RscEdit",-1];
_width = (safeZoneW/6);
_height = (safeZoneH/18);
_x = safeZoneX;
_y_1 = safeZoneY;
_y_2 = _y_1 + _height;
_button ctrlSetText "Execute";
_button ctrlSetPosition [_x,_y_2,_width,_height];
_textbox ctrlSetPosition [_x,_y_1,_width,_height];
_button ctrlSetBackgroundColor [0,0,0,0.5];
_textbox ctrlSetBackgroundColor [0,0,0,0.75];
_textbox ctrlSetTextColor [1,1,1,1];
_button ctrlSetTextColor [1,1,1,1];
_button buttonSetAction "hint format['executing %1',input_text];[] execVM input_text;";
_button ctrlCommit 0;
_textbox ctrlCommit 0;
while{!isNull (findDisplay 49)} do {
input_text = ctrlText _textbox;
waitUntil{input_text != (ctrlText _textbox) || isNull (findDisplay 49)};
if(isNull (findDisplay 49)) exitWith {};
};
};
};




