spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Game / Global functions

ProcessClick

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


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.