Salesforce

KbPut (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

KbPut (Magic xpa 3.x)

Simulates invoking a system internal event or other keyboard activity from within Magic xpa.

Syntax:

KbPut(string)

Parameters:

string: An Alpha string, including a concatenation of alpha, keyboard (KBD) and internal event (EVENT) literals.

Returns:

True if successful

Example:

KbPut('F2'KBD&'Exit'EVENT&'abcd') simulates F2; performs the Exit internal event as defined in the Internal Event column of the Keyboard Mapping repository; and inputs the 'abcd' string.

Note:

The KBD and EVENT literals are actually shortcut notations for the strings '<keyboard value>' and '[internal event value]'. Because of this, multiple internal event and keyboard values may be concatenated. In any case, you should always use literals, as this will guarantee portability of your project to other languages.

The values specified are actually 'stuffed' at the end of an internal keyboard buffer, and are acted upon only when Magic xpa actually requires input. Because of this, you must use this function with care.

As this function actually performs an internal event, it is best to execute it using the Evaluate Exp operation.

KbPut for LCD sets is not supported. This affects NumLock, CapsLock, and ScrollLock.

This function only works in windows that are pure Magic xpa. It does not affect called Windows dialog boxes.

Exceptions:

This function is not supported for Rich Client tasks. To implement the behavior of this function in Rich Client tasks, use Raise Event operations and Event handlers.

See also:

KBGet

How Do I Simulate a Keystroke?

The Online Samples project (program EL06)

Reference
Attachment 
Attachment