ISInterface:EmulateKeyPress

From Lavish Software Wiki
Jump to navigation Jump to search

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);

See Also