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:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
MapVirtualKey
..msdn    Add comment     W32 Constants      Translate this page
Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
Code examples:
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Declaration:
UINT WINAPI MapVirtualKey(
  __in  UINT uCode,
  __in  UINT uMapType
);
FoxPro declaration:
DECLARE INTEGER MapVirtualKey IN user32;
    LONG uCode,;
    LONG uMapType
Parameters:
uCode [in]
The virtual key code or scan code for a key. How this value is interpreted depends on the value of the uMapType parameter.

uMapType [in]
The translation to be performed. The value of this parameter depends on the value of the uCode parameter.
Return value:
The return value is either a scan code, a virtual-key code, or a character value, depending on the value of uCode and uMapType. If there is no translation, the return value is zero.
Usage:
nScanCode = MapVirtualKey( m.nVirtKey, 0 )
My comment:
To specify a handle to the keyboard layout to use for translating the specified code, use the MapVirtualKeyEx function.
Word Index links for the MapVirtualKey :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2011-01-05 12:33:29
Modified: 2011-01-05 12:35:58
Visited in last 7 days: 85
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.83.122.227)
13 sec.Function: 'GetClassName'
38 sec.Function: 'GetProcessPreferredUILanguages'
51 sec.Function: 'GetLocalTime'
1.08 min.Function: 'IsPwrSuspendAllowed'
1.33 min.Function: 'GetLongPathName'
1.55 min.Function: 'CryptAcquireContext'
1.75 min.Function: 'SHSimpleIDListFromPath'
1.98 min.Function: 'ntohl'
2.22 min.Function: 'CeSetFilePointer'
2.45 min.Function: 'RtlGetCompressionWorkSpaceSize'
Google
Advertise here!