PalWinSendKey

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber PalWinSendKey( SalWIndowHandle hWnd,
	       SalNumber nKeyCode )

The PalWinSendKey method sends a keystroke to a window, emulating user pressing that key on the keyboard.

Parameters

Name Description
SalWindowHandle hWnd The handle (or name) of the IFS Client Developer window object to which the key strokes should be sent.
SalNumber nKeyCode Virtual key code of the key as defined in the Win32 SDK. Use any of the Vis.VK_* constants.

Returns

This function does not return a value.

Example

! Emulate the user pressing the end key
Call PalWinSendKey( dfName, VK_End )
C# coding
//Emulate the user pressing the end key
Int.PalWinSendKey(tblQuery.colValue, Vis.VK_End);