Using Win32 functions in Visual FoxPro Image Gallery
Keyboard Input
..msdn
ActivateKeyboardLayout
BlockInput
EnableWindow
GetActiveWindow
GetAsyncKeyState
GetFocus
GetKBCodePage
GetKeyboardLayout
GetKeyboardLayoutList
GetKeyboardLayoutName
GetKeyboardState
GetKeyNameText
GetKeyState
IsWindowEnabled
keybd_event
MapVirtualKey
RegisterHotKey
SetFocus
SetKeyboardState
ToAscii
UnregisterHotKey
VkKeyScan
Code examples:
How to block the ALT+TAB shortcut (WinXP)
How to block the PrintScreen key
RegisterHotKey
    Add comment     W32 Constants      Translate this page
The RegisterHotKey function defines a system-wide hot key.
Code examples:
How to block the PrintScreen key
How to block the ALT+TAB shortcut (WinXP)
Declaration:
BOOL RegisterHotKey(
    HWND hWnd,
    int id,
    UINT fsModifiers,
    UINT vk
);
FoxPro declaration:
DECLARE INTEGER RegisterHotKey IN user32;
    INTEGER hWnd,;
    INTEGER id,;
    INTEGER fsModifiers,;
    INTEGER vk

Parameters:
hWnd
[in] Handle to the window that will receive WM_HOTKEY messages generated by the hot key.

id
[in] Specifies the identifier of the hot key. No other hot key in the calling thread should have the same identifier.

fsModifiers
[in] Specifies keys that must be pressed in combination with the key specified by the uVirtKey parameter in order to generate the WM_HOTKEY message.

vk
[in] Specifies the virtual-key code of the hot key.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
See also UnregisterHotKey function.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-01-03 13:16:07
Modified: 2004-01-03 13:20:34
Visited in last 7 days: 23
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.36), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.196.68.10)
1 sec.Function: 'SetBkColor'
9 sec.Function: 'ZeroMemory'
12 sec.Function: 'WriteFile'
14 sec.Function: 'RealGetWindowClass'
19 sec.Function: 'SetVolumeLabel'
22 sec.Function: 'SHRegEnumUSKey'
28 sec.Function: 'waveInStop'
31 sec.Function: 'UnlockFile'
35 sec.Function: 'SetJob'
Google
Advertise here!