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:
GDI+: Implementing image scrolling with inertia
Reading the state of mouse buttons within DO WHILE loop
GetAsyncKeyState
..msdn    Add comment     W32 Constants      Translate this page
The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.
Code examples:
GDI+: Implementing image scrolling with inertia
Reading the state of mouse buttons within DO WHILE loop
Declaration:
SHORT GetAsyncKeyState(
  int vKey   // virtual-key code
);
FoxPro declaration:
DECLARE INTEGER GetAsyncKeyState IN user32;
    INTEGER vKey
Parameters:
vKey
[in] Specifies one of 256 possible virtual-key codes.

Return value:
If the function succeeds, the return value specifies whether the key was pressed since the last call to GetAsyncKeyState, and whether the key is currently up or down.
My comment:
Check list of Virtual-Key Codes on the MSDN.
Word Index links for the GetAsyncKeyState :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-02-25 22:43:44
Modified: 2011-01-05 09:11:37
Visited in last 7 days: 46
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.147.40.153)
9 sec.Function: 'SetDlgItemText'
17 sec.Function: 'SQLGetFunctions'
26 sec.Function: 'LocalSize'
35 sec.Function: 'MultiByteToWideChar'
45 sec.Function: 'CryptCreateHash'
54 sec.Function: 'IpRenewAddress'
1.05 min.Function: 'AppendMenu'
1.18 min.Function: 'GdipGetFontCollectionFamilyList'
1.35 min.Function: 'CommDlgExtendedError'
1.48 min.Example: 'Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)'
Google
Advertise here!