Convert 16 bit to a similar 32 bit program

Started by Magnum, December 14, 2010, 06:19:41 PM

Previous topic - Next topic

Nordwind64

Hi.

You can generate hotkeys with API RegisterHotKey. 
Greetings, Nordwind.
Windows 7 (64Bit), JWASM/PoLink

jj2007

Quote from: Magnum on December 14, 2010, 06:54:52 PM
I am mainly interested in the hotkey part.

Attached an example. Run it, and press Winkey S.

There is a problem with this app: Both RegisterHotKey and WM_SETHOTKEY succeed for VK_LWIN but don't deliver the expected behaviour. The app works without that, but when pressing Winkey S e.g. from an editor, the s gets inserted.

However,
   invoke RegisterHotKey, hwnd, 111, MOD_ALT, VK_Q   ; quick
would work as expected.