Key F12 and SHIFT+F12

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Key F12 and SHIFT+F12

Post by Vanguarda »

Hi brothers,

I´ve a FORM and i need (wanna) include in this FORM the key of function F12, but, it don´t work with me. I test the others function key and it work fine, only key F12 don´t work.

someone help me?!


In the attachment have a little project testing the function keys.

Thanks a lot,

with best regards,
Attachments
teste.rar
(533.67 KiB) Downloaded 252 times
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: Key F12 and SHIFT+F12

Post by Roberto Lopez »

Vanguarda wrote:Hi brothers,

I´ve a FORM and i need (wanna) include in this FORM the key of function F12, but, it don´t work with me. I test the others function key and it work fine, only key F12 don´t work.

someone help me?!


In the attachment have a little project testing the function keys.

Thanks a lot,

with best regards,
HMG uses RegisterHotKey WinApi function to implement ON KEY command.

This function has a limitation on non-Win9x system. The limitation is that F12 is not available.

Please take a look at: http://msdn.microsoft.com/en-us/library ... S.85).aspx

The relevant info is the following:

Code: Select all

Windows NT4 and Windows 2000/XP: The F12 key is reserved for use by the debugger at all times, so it should not be registered as a hot key. Even when you are not debugging an application, F12 is reserved in case a kernel-mode debugger or a just-in-time debugger is resident.
Regards,

Roberto.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Key F12 and SHIFT+F12

Post by Vanguarda »

Thanks Master for explanation.


I understood now.

With best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
Post Reply