|
-
May 6th, 2000, 01:51 PM
#1
How do I make hotkeys for my application? Will they work if the application hasn't got the focus?
I tried searching this site for Hotkeys, but I don't like downloading demo apps.
-
May 6th, 2000, 02:01 PM
#2
In the help book for vb, you should have key code constants.
say you wanted the letter S to be your hotkey:
Put this in form_keydown:
If keycode = vbkeyS then
Msgbox "You pressed S."
Else
Msgbox "You pressed some other button."
End If
I don't think you can press a hotkey and have the program respond without having focus.
-
May 6th, 2000, 02:41 PM
#3
I remember seeing it somewhere on an API guide site, but I didn't think it would come in handy, so I just forgot about it until I needed it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|