In-Game Executer
Hey guys, i found myself being annoyed with doing the injection method multiple times so i created a simple script (bashed together from an older one of mine) to make it so you can execute scripts ingame after you inject with cheat-engine
Script
Steps:
1. Use Lystics Method of injecting with cheat engine
2. In your hint.sqf place the code above
3. Follow lystics instructions to inject in-game
4. When your done, you should see a hint come up saying Press Insert
5. Press Insert and type your script filepath in (ex. menu\spawn.sqf) BE SURE TO INCLUDE .sqf!
ScreenShot:

Script
Code:
if (!isnil "keypress_exec") then
{
(findDisplay 46) displayRemoveEventHandler ["KeyDown", keypress_exec];
};
hint "Press Insert";
keybindings_exec =
{
switch (_this) do
{
case 210: // INSERT
{
closeDialog 0;
createDialog "RscDisplayPassword";
sendtxxt =
{
_Shad0wt3xt = ctrlText 101;
execVM format["%1",_Shad0wt3xt];
titleText [format["""%1"" Executed.",_Shad0wt3xt],"PLAIN DOWN"]; titlefadeout 4;
};
disableSerialization;
_Shadowyfaz3d = findDisplay 64;
_wutzintehb0x = _Shadowyfaz3d displayctrl 101;
_Faz3dText = _Shadowyfaz3d displayctrl 1001;
_showtxt = _Shadowyfaz3d displayctrl 1;
_g0b3ck = _Shadowyfaz3d displayctrl 2;
_g0b3ck ctrlSetText "Close";
_wutzintehb0x ctrlSetText "XXX.sqf";
_wutzintehb0x ctrlSetTextColor [1, 0, 0, 1];
_showtxt ctrlSetText "Execute";
_showtxt buttonSetAction "call sendtxxt";
_Faz3dText ctrlSetText "File Path:";
};
};
};
waituntil {!isnull (finddisplay 46)};
keypress_exec = (findDisplay 46) displayAddEventHandler ["KeyDown", "_this select 1 call keybindings_exec; false;"];
Steps:
1. Use Lystics Method of injecting with cheat engine
2. In your hint.sqf place the code above
3. Follow lystics instructions to inject in-game
4. When your done, you should see a hint come up saying Press Insert
5. Press Insert and type your script filepath in (ex. menu\spawn.sqf) BE SURE TO INCLUDE .sqf!
ScreenShot:

