News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Hotkeys

Started by Bieb, April 18, 2005, 01:18:07 AM

Previous topic - Next topic

Bieb

How does one go about setting up a hotkey, so that your application can be brought up without having to click on a tray icon or window?

Vortex

Properties->Shortcut->Shortcut key

Bieb

Sorry.  What I meant was how do I make an application that has hotkeys?

thomasantony

Hi,
  Seems you have to create some control with "msctls_hotkey32" as the classname. See this

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/hotkey/hotkey.asp

Thomas :U
There are 10 types of people in the world. Those who understand binary and those who don't.


Programmer's Directory. Submit for free

Ramon Sala

Hi Robert,

Easy Code has the HotKey object.

Ramon
Greetings from Catalonia

P1

When you generate a .lnk to a program file, you can also assign a shortcut key sequence as well.   This is also re-assignable by the user, just in case it conflict with something else.

Regards,  P1  :8)

AeroASM

P1: see Bieb's reply to Vortex

thomas: no need for a control

Ramon: nice solution, but I personally don't like Easy Code

My solution: use RegisterhotKey and put a WM_HOTKEY handler in your WndProc.

P1

Quote from: AeroASM on April 22, 2005, 08:40:09 PM
P1: see Bieb's reply to Vortex
It was not so much as technique to as a comment about the technique, that it could be re-assigned by the user.  Having some control passed to the user is useful.

Regards,  P1  :8)