Burgaud Posted April 25, 2021 Share Posted April 25, 2021 HotKeySet("!x", "_Exit") is for LeftAlt x but what about Right Alt x? HotKeySet("{RALT}x", "_Exit") does not work.. How? Link to comment Share on other sites More sharing options...
Burgaud Posted April 25, 2021 Author Share Posted April 25, 2021 (edited) I am not sure if this is the correct way of doing it but: HotKeySet("^e", "_Exit") ;CTRL e func _Exit() if _IsPressed("A3") then ;is Right CTRL key pressed? exit(0) ;then user must be trying to do a endif endfunc I created a Hotkey for Ctrl-e Then checks if it was a RIght Ctrl key that was pressed. (I could not find the Right-Alt for _IsPressed, so I used CTRL-E as an example) After some thoughts, I realize that other scripts wont be able to bind CTRL-E... Eventually this is not a good solution. Edited April 25, 2021 by Burgaud Link to comment Share on other sites More sharing options...
Dan_555 Posted April 25, 2021 Share Posted April 25, 2021 Hi, you could use the GUISetAccelerators instead of hotkey. (maybe) Burgaud 1 Some of my script sourcecode Link to comment Share on other sites More sharing options...
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