Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. [] spawn {
  2. disableSerialization;
  3. while{true} do {
  4. waitUntil{!isNull (findDisplay 49)};
  5. input_text = "";
  6. _button = (findDisplay 49) ctrlCreate ["RscButton",-1];
  7. _textbox = (findDisplay 49) ctrlCreate ["RscEdit",-1];
  8.  
  9. _width = (safeZoneW/6);
  10. _height = (safeZoneH/18);
  11. _x = safeZoneX;
  12. _y_1 = safeZoneY;
  13. _y_2 = _y_1 + _height;
  14.  
  15.  
  16. _button ctrlSetText "Execute";
  17. _button ctrlSetPosition [_x,_y_2,_width,_height];
  18. _textbox ctrlSetPosition [_x,_y_1,_width,_height];
  19. _button ctrlSetBackgroundColor [0,0,0,0.5];
  20. _textbox ctrlSetBackgroundColor [0,0,0,0.75];
  21. _textbox ctrlSetTextColor [1,1,1,1];
  22. _button ctrlSetTextColor [1,1,1,1];
  23.  
  24. _button buttonSetAction "hint format['executing %1',input_text];[] execVM input_text;";
  25. _button ctrlCommit 0;
  26. _textbox ctrlCommit 0;
  27.  
  28.  
  29. while{!isNull (findDisplay 49)} do {
  30. input_text = ctrlText _textbox;
  31. waitUntil{input_text != (ctrlText _textbox) || isNull (findDisplay 49)};
  32. if(isNull (findDisplay 49)) exitWith {};
  33. };
  34. };
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement