Leigham Posted February 21, 2015 Report Share Posted February 21, 2015 im looking to change my actionmenu from a Addaction to a Keydown Eventhandler as Epoch Blocks Addactions, how would i go about doing this Link to comment Share on other sites More sharing options...
0 KiloSwiss Posted February 21, 2015 Report Share Posted February 21, 2015 https://community.bistudio.com/wiki/displayAddEventHandler https://community.bistudio.com/wiki/DIK_KeyCodes DIK_LWIN 0xDB /* Left Windows key */ DIK_RWIN 0xDC /* Right Windows key */ Have Fun Greez KiloSwiss Link to comment Share on other sites More sharing options...
0 Leigham Posted February 21, 2015 Author Report Share Posted February 21, 2015 DIK_RWIN 0xDC /* Right Windows key */ = (findDisplay 46) displayAddEventHandler ["KeyDown", "Scripts\here.sqf]; Like that ? Link to comment Share on other sites More sharing options...
0 Leigham Posted February 21, 2015 Author Report Share Posted February 21, 2015 Action_Menu = (findDisplay 46) displayAddEventHandler [Keydown, 0xDC] Then What would i put after to open the Action menu ? Link to comment Share on other sites More sharing options...
0 Leigham Posted February 21, 2015 Author Report Share Posted February 21, 2015 Ok, so good news, i have it going through once but once you close the menu i cant get it to come up again. Link to comment Share on other sites More sharing options...
0 Leigham Posted February 21, 2015 Author Report Share Posted February 21, 2015 [] spawn { waitUntil{player == player}; if(isMultiplayer)then{ waitUntil{!isNull (uiNameSpace getVariable ["EPOCH_loadingScreen", displayNull])}; waitUntil{isNull (uiNameSpace getVariable "EPOCH_loadingScreen")}; }; waituntil {!(IsNull (findDisplay 46))}; keyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 == 200) then {_lunge = player execVM 'scripts\Actionmenu\AMEXEC.sqf'}"]; Sleep 2; titleText ["Action Menu Loaded! Press Right Windows Key To Activate!", "PLAIN DOWN", 3]; }; file starting the action menu (finddisplay 46) displayremoveeventhandler ['KeyDown',keyDown]; //Removing the EH to start Again, keyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 == 200) then {_lunge = player execVM 'scripts\Actionmenu\AMEXEC.sqf'}"];//Adding the EH to use again. and im getting this 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) Any Ideas ? Link to comment Share on other sites More sharing options...
0 mgm Posted April 16, 2015 Report Share Posted April 16, 2015 [] spawn { waitUntil{player == player}; if(isMultiplayer)then{ waitUntil{!isNull (uiNameSpace getVariable ["EPOCH_loadingScreen", displayNull])}; waitUntil{isNull (uiNameSpace getVariable "EPOCH_loadingScreen")}; }; waituntil {!(IsNull (findDisplay 46))}; keyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 == 200) then {_lunge = player execVM 'scripts\Actionmenu\AMEXEC.sqf'}"]; Sleep 2; titleText ["Action Menu Loaded! Press Right Windows Key To Activate!", "PLAIN DOWN", 3]; }; file starting the action menu (finddisplay 46) displayremoveeventhandler ['KeyDown',keyDown]; //Removing the EH to start Again, keyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 == 200) then {_lunge = player execVM 'scripts\Actionmenu\AMEXEC.sqf'}"];//Adding the EH to use again. and im getting this 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'})> 19:02:57 Error position: <)> 19:02:57 Error Missing ; 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) 19:02:57 Error in expression < execVM 'scripts\Actionmenu\AMEXEC.sqf'}> 19:02:57 Error position: <> 19:02:57 Error Missing ) Any Ideas ? Did you ever resolve this? Link to comment Share on other sites More sharing options...
Question
Leigham
im looking to change my actionmenu from a Addaction to a Keydown Eventhandler as Epoch Blocks Addactions, how would i go about doing this
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now