Jump to content
Sign in to follow this  
jacksont123

Is It Possible To Have Multiple Hotkeys For The Same Function?

Recommended Posts

jacksont123

I don't exactly know what to put here, because all I have to say is in the title. :)

I suppose I could write some code just to explain what I mean:

HotKeySet("^!x", "Terminate");ctrl-alt-x

While 1
    Sleep(100)
WEnd

Func Terminate()
    Exit
EndFunc

and I'm trying to find multiple hotkeys for a function. This is just an example.

Thanks very much for reading this, and thanks most definately in advance for helping. :(

Edited by The Great 'Awesoma-Powa!'

Share this post


Link to post
Share on other sites
Valuater

HotKeySet("^!x", "Terminate");ctrl-alt-x
HotKeySet("{F9}", "Terminate")
HotKeySet("^!t", "Terminate")
While 1
    Sleep(100)
WEnd

Func Terminate()
    Exit
EndFunc

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
jacksont123

oooh! I'm suprised I didn't know that. *Bangs head on wall* Thanks Valuater!


Share this post


Link to post
Share on other sites
Valuater

welcome

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Knight

You also can read what hotkey was pressed when the function goes by using @HotKeyPressed or something. Look it up in the help file.

Share this post


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
Sign in to follow this  

×