ISInterface:EmulateMousePress
Jump to navigation
Jump to search
Contents
Syntax
- bool EmulateMousePress(unsigned long Button, bool Hold)
Purpose
To emulate a mouse button being pressed
Usage
Parameters
- unsigned long Button
- [in] Which mouse button to press (0 is left, 1 is right)
- bool Hold
- [in] TRUE if you want to hold the mouse button down, FALSE if you want to press and release
Return Value
- bool
- Returns true on success, false on failure
Examples
Press the left mouse button and release it
- pISInterface->EmulateMousePress(0,FALSE);
Press the right mouse button and hold it
- pISInterface->EmulateMousePress(1,TRUE);