Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.screenCoordinates
Syntax
Player.screenCoordinates(location)
Parameters
location is an {x, y} list or a point datatype.
Action
Marks the specified location to be interpreted as absolute screen coordinates.
Returns
A modified location.
Examples
Player.clickMouse( Player.screenCoordinates({4, 27}) )
Player.clickMouse( Player.screenCoordinates( point.set(4, 27) ) ) « for Frontier 2.0
Player.doubleClickMouse( Player.screenCoordinates({4, 27}) )
Player.nClickMouse( Player.screenCoordinates({4, 27}), 3 )
with Player
clickSequence( {4, 27}, screenCoordinates({19, 60}), {28, 60} )
pressMouseSeconds( screenCoordinates({365, 215}), 5 )
dragMouse( {30, -10}, screenCoordinates({31, 28}) ) « drag window to the upper left corner of the screen
Notes
- By default, coordinates are relative to the frontmost dialog or window. This verb overrides the default for a specific location parameter.
- Because this verb applies to an individual location, you can mix and match any combination of relative ("local") and absolute ("global") coordinates in a click or drag.
- This verb is implemented as a script. To get the same effect, you can directly turn any XY list into screen coordinates by adding a third parameter, either the screenCoords constant or the value 1:
- Player.clickMouse( {4, 27, Player.screenCoordinates} )
- Player.clickMouse( {4, 27, 1} )
See Also
Player.clickMouse
Player.setTargetWindow
Keywords
mouse[8] location
selectRadio
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.