Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.dragSequence
Syntax
Player.dragSequence(listOfLocations)
Player.dragSequence(listOfLocations, holding: modifierKeys)
Parameters
listOfLocations is a list of {x, y} lists or point datatypes.
holding: modifierKeys, an optional parameter, is one or more modifier keys (command, shift, option, control, caps lock) or their abbreviations (cmd, shft, opt, ctrl, caps), added together in any order.
Action
Drags the mouse thru a sequence of locations.
Returns
True.
Examples
Player.dragSequence( {{4, 27}, {4, 60}, {200, 60}, {200, 27}} )
Player.dragSequence( {point.set(4, 27), point.set(4, 60), point.set(200, 60), point.set(200, 27)} )
with Player « drag window to an absolute screen position
dragSequence( {{40, -10}, screenCoordinates( {50, 50} )} )
Notes
- This verb may operate too quickly for an application to keep up. Use setMouseDelay(...) to set a short delay.
- 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 screenCoordinates(...) 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).
- The holding label may be left off, though the result may be less readable.
See Also
Player.dragMouse
Player.clickSequence
Player.setCheckboxSequence
Player.setMouseDelay
Player.setTargetWindow
Player.screenCoordinates
Keywords
mouse[6] location modifiers sequence
enableUserInput
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.