Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.moveMouse -- new in 1.5
Syntax
Player.moveMouse(location)
Parameters
location is an {x, y} list or a point datatype.
Action
Moves the mouse to the specified location and leaves it there.
Returns
True.
Examples
Player.moveMouse( {4, 27} )
Player.moveMouse( point.set(4, 27) )
Player.moveMouse( {4, 27, Player.screenCoords} ) « the new way
Player.moveMouse( Player.screenCoordinates( {4, 27} ) ) « the old way
Notes
- By default, coordinates are relative to the frontmost dialog or window. Changing to a different screen size or having the window come up in a different location should have no effect.
- Use the screenCoords constant or screenCoordinates(...) verb to treat coordinates as an absolute screen position.
- In most applications, the location is relative to the inside of the window. Negative y values reach into the title bar (if any).
See Also
Player.moveMouseTo
Player.clickMouse
Player.dragMouse
Player.setTargetWindow
Player.screenCoordinates
Keywords
mouse location
moveMouseTo
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.