Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.dragMouseFromTo
Syntax
Player.dragMouseFromTo(x1, y1, x2, y2)
Player.dragMouseFromTo(x1, y1, x2, y2, holding: modifierKeys)
Parameters
x1 is the number of pixels from the left of the frontmost dialog or window.
y1 is the number of pixels from the top of the frontmost dialog or window.
x2 is the number of pixels from the left of the frontmost dialog or window.
y2 is the number of pixels from the top of the frontmost dialog or window.
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 from one location to another (with two parameters to specify each location).
Returns
True.
Examples
Player.dragMouse(4, 27, 4, 60)
Player.dragMouse(40, -10, -40, -40 ) « drag window over and up 40 pixels
Notes
- This verb is similar to dragMouse(...), but provides separate x and y parameters that some may find easier to type (and to read!). It does not support screen coordinates.
- 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.
- 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.dragSequence
Player.clickMouse
Player.moveMouse
Player.setMouseDelay
Player.setTargetWindow
Player.dragMouse
Keywords
mouse[12] location modifiers
dragSequence
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.