Nova Posted October 27, 2004 Share Posted October 27, 2004 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", "") Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 27, 2004 Share Posted October 27, 2004 (edited) Those commands will erase the current settings. You need to specify a function to be run on keypress.functionHotKeySet ( "key" [, "function"] )ParameterskeyThe key(s) to use as the hotkey. Same format as Send(). function[optional] The name of the function to call when the key is pressed. Leave blank to unset a previous hotkey.*** Matt @ MPCSEDIT: Added more of the definition from the help file. Edited October 27, 2004 by Matt @ MPCS Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 27, 2004 Share Posted October 27, 2004 (edited) You should just test before you ask, try: HotKeySet("{down}", "msg") Func msg() MsgBox(0, "It worked", "So it does work!") EndFunc While 1 Sleep(100) Wend Does it work? Edited October 27, 2004 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] 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