Jump to content
  • 0

How to add a KeyDown for rightwindows Key


Leigham

Question

6 answers to this question

Recommended Posts

  • 0
[] 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

  • 0
[] 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...