Input.Mouse.generateEvent() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Input.Mouse Class Summary

Availability
Windows

Usage
mdm.Input.Mouse.generateEvent(event:String, x:Number, y:Number, restorePosition:Boolean):Void

Parameters
event:String - Mouse Event to generate

x:Number - Mouse x position

y:Number - Mouse y position

restorePosition:Boolean - Restore original mouse position after event

Returns
Nothing

Description
Sets the mouse cursor position and fires the specified mouse-click event.

Notes
Possible values for 'event' are:

LC = left click
MC = middle click
RC = right click
LDC = left mouse button double click

The 'restorePosition' parameter determines whether or not the the cursor should return to its original position after the event has been generated.

Example Code
mdm.Input.Mouse.generateEvent("RC", 100, 100, true);

mdm.Input.Mouse Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page