FakeKeystrokeUnicode
int FakeKeystrokeUnicode (KeyCodeUnicode keyCode);
Purpose
Simulates a Unicode keystroke by posting a keystroke event to the active panel.
This function has the same effect as pressing a key on the keyboard.
![]() |
Note Unicode key codes are formed by packing a Unicode code point, a virtual key, and a modifier key. You must pack the values from these Unicode key code elements using the PackKeyCodeUnicode function before passing them into FakeKeystrokeUnicode. |
![]() |
Note The order in which you receive the keystroke event in relation to other events is not defined, so use FakeKeystrokeUnicode with care. |
Parameters
Input | ||||
Name | Type | Description | ||
keyCode | KeyCodeUnicode | The value representing a Unicode key code. Unicode key codes are formed by packing a Unicode code point, a virtual key, and a modifier key. A modifier key is a <Shift> key, <Alt> key, or <Ctrl> key.
|
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 2020 and later
Example
Refer to userint\FakeKeystrokeUnicode.cws for an example of using the FakeKeystrokeUnicode function.