Sign in to follow this  
Followers 0
Nova

Hotkeys

3 posts in this topic

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



#2 ·  Posted (edited)

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

function

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

Parameters

key

The 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 @ 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

#3 ·  Posted (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 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  
Followers 0