Jump to content

Recommended Posts

Posted (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 by Burgaud
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...