ISInterface:EmulateKeyPress
Jump to navigation
Jump to search
Contents
Syntax
- bool EmulateKeyPress(char *Combo, bool Hold)
Purpose
To emulate a keyboard key press
Usage
Parameters
- char *Combo
- [in] Key combo to be pressed
- bool Hold
- [in] if TRUE the keys will be held, if not they will be pressed and released
Return Value
- bool
- Returns true on success, false on failure
Examples
Press a key and release it
- pISInterface->EmulateKeyPress("ctrl+7",FALSE);
Press a key and hold it
- pISInterface->EmulateKeyPress("shift",TRUE);