Script Based Executer

Posts 1–15 of 22 · Page 1 of 2
Script Based Executer
This is not a script executer, it is a script that allows you to execute your own scripts. This can however be put into a PBO and run.

Why am I releasing this: Testing out new SQF syntax for the forums

Code:
[] 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 {};
		};
	};  
};
Credits: BI for ctrlCreate (the most flawed command i have seen in a long time)

Usage:
- Execute
- Press ESCAPE
- In Top Left type script name (ex: 313.sqf)
- Click Execute
Sorry I'm a newbie with this hacking shit, I have basic C# and javascript knowledge, but how do I inject this script into arma 3 without it being detected? What is the PBO method? Thanks a bunch MPGH community!
Will this soon be detected?
And can you use this in an sqf? As you said it would be best as a PBO. Even though it will be useless if your executing an executer... But can people use this as a template or understanding of creating a GUI for an SQF? Orrr?
Quote Originally Posted by NeonSabre123 View Post
Will this soon be detected?
And can you use this in an sqf? As you said it would be best as a PBO. Even though it will be useless if your executing an executer... But can people use this as a template or understanding of creating a GUI for an SQF? Orrr?
It can be used for a basic understanding on making a menu yes

and if you put this in a PBO using cfgFunctions and postInit = true; you could use this as a script executer
Nice job! I finally created my own GUI
Quote Originally Posted by TheJamesp55 View Post
Nice release Lystic.
I would agree, in some ways, this is the best script release in a long while

Shame bitches be trippin over ctrlCreate already.
Posts 1–15 of 22 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?