ProcessClick (int x, int y, CursorMode)
Simulates clicking the mouse on the location (X,Y) on the screen, in the
specified cursor mode. Any conditions attached will be executed. For example,
ProcessClick (100, 50, eModeLookat);
will simulate clicking the mouse on co-ordinates (100,50) in the Look mode.
NOTE: This function ignores all interfaces and acts as though the point is
directly visible. In other words, if the co-ordinates you pass happen to
lie on a button on an interface, what actually happens will be as if the
user clicked behind the interface onto the actual screen.
The available cursor modes are the ones you define on your Cursors tab (but with eMode
prepended to them). Usually these are eModeWalkto, eModeLookat, etc.
Example:
ProcessClick(mouse.x,mouse.y, eModeLookat);
will simulate a click in the LOOK MODE where the cursor is.
See Also: IsInteractionAvailable,
Hotspot.RunInteraction
|