Jump to content
Sign in to follow this  


Recommended Posts


Can the buttons up, down, left and right be set as hotkeys ?

I would really like to use them in the creation of a simple GUI menu system im working on

Neither of the following will work for me !

HotKeySet("{DOWN}", "")

HotKeySet("down", "")

Share this post

Link to post
Share on other sites
Matt @ MPCS

Those commands will erase the current settings. You need to specify a function to be run on keypress.


HotKeySet ( "key" [, "function"] )



The key(s) to use as the hotkey. Same format as Send().


[optional] The name of the function to call when the key is pressed. Leave blank to unset a previous hotkey.

*** Matt @ MPCS

EDIT: Added more of the definition from the help file.

Edited by Matt @ MPCS

Share this post

Link to post
Share on other sites

You should just test before you ask, try:

HotKeySet("{down}", "msg")
Func msg()
MsgBox(0, "It worked", "So it does work!")
While 1

Does it work?

Edited by the_lord_mephy

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.