PreFab...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



See Also

Player.dragSequence
Player.clickMouse
Player.moveMouse
Player.setMouseDelay
Player.setTargetWindow
Player.dragMouse


Keywords

mouse[12] location modifiers

| Top |


dragMouse| Prev | Home | Next |dragSequence

Updated on 1/30/99 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.