READ KEYBOARD FUNCTIONS

 

 

 

Syntax:

 

-    HMG_GetLastVirtualKeyDown ( [ @hWnd ], [ @nMsg ], [ @wParam ], [ @lParam ] ) --> nVK_Code

-    HMG_GetLastVirtualKeyUp   ( [ @hWnd ], [ @nMsg ], [ @wParam ], [ @lParam ] ) --> nVK_Code

-    HMG_GetLastCharacter      ( [ @hWnd ], [ @nMsg ], [ @wParam ], [ @lParam ] ) --> cCharacter

 

-    HMG_CleanLastVirtualKeyDown ( [ lCleanAll ] )

-    HMG_CleanLastVirtualKeyUp   ( [ lCleanAll ] )

-    HMG_CleanLastCharacter      ( [ lCleanAll ] )

 

-    HMG_GetLastVirtualKeyName ( [ lParam ] ) --> cVK_Name

 

-    HMG_VirtualKeyIsPressed ( VK_Code )

 

-    GetKeyState ( VK_Code ) --> return nKeyState

 

-    HMG_SendCharacter ( [ hWnd ], cText )

 

-    HMG_EnableReadKey()

-    HMG_DisableReadKey()

 

 

 

 

Complementary Functions:

 

     Gets Form/Control Name and Form Parent Name by window handle (complement, e.g. to the read keyboard functions):

 

-    GetFormNameByHandle    ( hWnd, @cFormName,    @cFormParentName ) --> Return nFormIndex

-    GetControlNameByHandle ( hWnd, @cControlName, @cFormParentName ) --> Return nControlIndex

 

 

See demo:

    \SAMPLES\Controls\Grid\GridIncrementalSearch