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 activate Windows Calculator
VkKeyScan
    Add comment     W32 Constants      Translate this page
Translates a character to the corresponding virtual-key code and shift state for the current keyboard.
Code examples:
How to activate Windows Calculator
Declaration:
SHORT VkKeyScan(
    TCHAR ch
);
FoxPro declaration:
DECLARE SHORT VkKeyScan IN user32;
    INTEGER ch
Parameters:
ch
[in] Specifies the character to be translated into a virtual-key code.
Return value:
If the function succeeds, the low-order byte of the return value contains the virtual-key code and the high-order byte contains the shift state, which can be a combination of bits.
My comment:
1=Either SHIFT key is pressed.
2=Either CTRL key is pressed.
4=Either ALT key is pressed.
8=The Hankaku key is pressed
16=Reserved (defined by the keyboard layout driver).
32=Reserved (defined by the keyboard layout driver).
Word Index links for the VkKeyScan :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2006-06-28 16:35:05
Modified: 2006-06-28 16:36:57
Visited in last 7 days: 10
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.18.114)
19 sec.Function: 'CreateDirectory'
Function group: 'File Management'
36 sec.Gallery
52 sec.Function: 'accept'
Function group: 'Windows Sockets 2 (Winsock)'
1.13 min.Function: 'recv'
Function group: 'Windows Sockets 2 (Winsock)'
1.38 min.Example: 'How to view icons stored in executable files (Icon Viewer)'
1.67 min.Function: 'mmioFlush'
Function group: 'Windows Multimedia'
1.97 min.Function: 'SCardDisconnect'
2.22 min.Examples
2.53 min.Example: 'GDI+: creating a gradient'
2.83 min.Example: 'Detecting changes in connections to removable drives (VFP9)'
Google
Advertise here!