Quote Originally Posted by ChrisFly81 View Post
To begin with thank you for your awesome job, that works perfectly!
Thanks! A little appreciation goes a long way! Thanks also to everyone else who has shown a little love by finger banging that thanks/rep button.

You mean like a keybind debug console?

Instructions:

Run this script once when entering a server. Press NumPad 1 to activate Jmebug Console.

KeyBind Jmebug Console.sqf
Code:
[] spawn {
    while {true} do {
        if (inputAction "LookLeftDown" > 0) then {
			[] spawn {		
				sleep 0.1;
				closedialog 0;
				sleep 0.1;
				createdialog 'RscDisplayInsertMarker';
				sleep 0.1;
				disableSerialization;
				
				_ctrl = (findDisplay 54) displayCtrl 101;
				_ctrl ctrlSetFont "PuristaBold";
				_ctrl ctrlSetTextColor[1,1,1,1];
				_ctrl ctrlCommit 0;
				
				_ctrl = (findDisplay 54) displayCtrl 1;
				_ctrl ctrlSetFont "PuristaBold";
				_ctrl ctrlSetTextColor[1,1,1,1];
				_ctrl ctrlSetText "Execute";
				_ctrl buttonSetAction "_JME_CODE = (ctrlText 101);[] spawn compile _JME_CODE;";
				_ctrl ctrlCommit 0;
				
				_ctrl = (findDisplay 54) displayCtrl 2;
				_ctrl ctrlSetFont "PuristaBold";
				_ctrl ctrlSetText "CLEAR";
				_ctrl ctrlSetTextColor [1,1,1,1];
				_ctrl buttonSetAction "ctrlsetText[101,''''];";
				_ctrl ctrlCommit 0;

				_ctrl = (findDisplay 54) displayCtrl 1001;
				_ctrl ctrlSetFont "PuristaBold";
				_ctrl ctrlSetText "Jme's Script Executor";
				_ctrl ctrlSetTextColor [0,0,0,1];
				_ctrl ctrlSetBackgroundColor [0,0.7,1,1];
				_ctrl buttonSetAction "ctrlsetText[101,''''];";
				_ctrl ctrlCommit 0;
				
				_ctrl = (findDisplay 54) displayCtrl 1100;
				_ctrl ctrlSetFont "PuristaBold";
				_ctrl ctrlSettext "Code:";
				_ctrl ctrlSetTextColor [1,1,1,1];
				_ctrl ctrlCommit 0;

				_ctrl = (findDisplay 54) displayCtrl 2400;
				_ctrl ctrlSetFont "PuristaBold";
				_ctrl ctrlSettext "Help";
				_ctrl ctrlSetTextColor [1,1,1,1];
				_ctrl ctrlCommit 0;
				
				_ctrl = (findDisplay 54) displayCtrl 1101;
				_ctrl ctrlSetFont "PuristaBold";
				_ctrl ctrlSettext 'Example Commands:\n hint "JME is God";\n execVM "init.sqf";\n execVM "scripts\init.sqf";\n life_cash=life_cash+5000;\n player setDamage 1;';
				_ctrl ctrlSetTextColor [1,1,1,1];
				_ctrl ctrlCommit 0;
				
				_ctrl = (findDisplay 54) displayCtrl 1081;
				_ctrl ctrlSetBackgroundColor [0,0,0,0.5];
				_ctrl ctrlCommit 0;
			};
        };
        sleep 0.001;
    };
};
["TaskSucceeded", ["", "JME is God.  Press Numpad 1."]]call BIS_fnc_showNotification;