Hi All,
Had someone managed to 'trap' The Windows key to assign it to a specific procedure?
TIA.
Windows Key?
Moderator: Rathinagiri
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Windows Key?
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Windows Key?
Hello Roberto
With my best regards
I hope that this is what you are looking forRoberto Lopez wrote: Had someone managed to 'trap' The Windows key to assign it to a specific procedure?
With my best regards
Viva INTERNATIONAL HMG
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: Windows Key?
Hi Roberto.
Please,
comment this macro (line 49) in SOURCE\h_windows.prg
#define ALLOW_ONLY_ONE_MESSAGE_LOOP
and re-build HMG.3.1.5
Changelog HMG.3.1.5
See this demo: download/file.php?id=3337
Best regards,
Claudio.
PS: The code of the Keyboard Functions is in SOURCE\h_windows.c
Please,
comment this macro (line 49) in SOURCE\h_windows.prg
#define ALLOW_ONLY_ONE_MESSAGE_LOOP
and re-build HMG.3.1.5
Changelog HMG.3.1.5
Code: Select all
- New Read Keyboard Functions (Contributed by Dr. Claudio Soto)
- HMG_GetLastVirtualKeyDown ( [ @hWnd ], [ @nMsg ], [ @wParam ], [ @lParam ] ) --> nVK_Code
- HMG_GetLastVirtualKeyUp ( [ @hWnd ], [ @nMsg ], [ @wParam ], [ @lParam ] ) --> nVK_Code
- HMG_GetLastCharacter ( [ @hWnd ], [ @nMsg ], [ @wParam ], [ @lParam ] ) --> cCharacter
- HMG_CleanLastVirtualKeyDown ( [ lCleanAll ] )
- HMG_CleanLastVirtualKeyUp ( [ lCleanAll ] )
- HMG_CleanLastCharacter ( [ lCleanAll ] )
- HMG_GetLastVirtualKeyName ( [ lParam ] ) --> cVK_Name
- HMG_VirtualKeyIsPressed ( VK_Code )
- GetKeyState ( VK_Code ) --> return nKeyState
- HMG_SendCharacter ( [ hWnd ], cText )
- HMG_EnableReadKey()
- HMG_DisableReadKey()
- New Handle: Form/Control property (To use in combination with Read Keyboard functions (Contributed by Dr. Claudio Soto)
- Form.HANDLE --> equivalent to: GetFormHandle ( cForm )
- Form.Control.HANDLE --> equivalent to: GetControlHandle ( cControl, cForm )
- GetFormNameByHandle ( hWnd, @cFormName, @cFormParentName ) --> Return nFormIndex
- GetControlNameByHandle ( hWnd, @cControlName, @cFormParentName ) --> Return nControlIndex
Best regards,
Claudio.
PS: The code of the Keyboard Functions is in SOURCE\h_windows.c
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Windows Key?
Thanks!esgici wrote:Hello Roberto
I hope that this is what you are looking forRoberto Lopez wrote: Had someone managed to 'trap' The Windows key to assign it to a specific procedure?
With my best regards
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: Windows Key?
Muchas Gracias Claudio!srvet_claudio wrote:Hi Roberto.
Please,
comment this macro (line 49) in SOURCE\h_windows.prg
#define ALLOW_ONLY_ONE_MESSAGE_LOOP
and re-build HMG.3.1.5
<...>
See this demo: download/file.php?id=3337
Best regards,
Claudio.
PS: The code of the Keyboard Functions is in SOURCE\h_windows.c
Saludos,
Roberto.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)