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:
Reading the state of mouse buttons within DO WHILE loop
GetKeyState
..msdn    Add comment     W32 Constants      Translate this page
The GetKeyState function retrieves the status of the specified virtual key. The status specifies whether the key is up, down, or toggled (on, off—alternating each time the key is pressed).
Code examples:
Reading the state of mouse buttons within DO WHILE loop
Declaration:
 
SHORT GetKeyState(
    int nVirtKey
);
 
FoxPro declaration:
 
DECLARE INTEGER GetKeyState IN user32;
    INTEGER vKey
 
Parameters:
nVirtKey
[in] Specifies a virtual key.

If the desired virtual key is a letter or digit (A through Z, a through z, or 0 through 9), nVirtKey must be set to the ASCII value of that character. For other keys, it must be a virtual-key code.
Return value:
The return value specifies the status of the specified virtual key.
My comment:
The key status returned from this function changes as a thread reads key messages from its message queue. The status does not reflect the interrupt-level state associated with the hardware. Use the GetAsyncKeyState function to retrieve that information.

To retrieve state information for all the virtual keys, use the GetKeyboardState function.
Word Index links for the GetKeyState :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
•
Created: 2004-07-15 09:21:59
Modified: 2004-07-15 09:24:47
Visited in last 7 days: 33
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.227.127.109)
12 sec.Function: 'VirtualAllocEx'
25 sec.
Function group: 'Hook'
38 sec.Function: 'GdipCreateFromHDC2'
51 sec.Function: 'CeGetTempPath'
1.1 min.Function: 'GdipGetImageRawFormat'
1.33 min.Function: 'OpenSemaphore'
1.55 min.
Function group: 'Menu'
1.8 min.Function: 'CryptGetHashParam'
2.02 min.Function: 'mciGetErrorString'
2.23 min.Function: 'SetDoubleClickTime'
Google
Advertise here!