Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.pressMouseAtSeconds
Syntax
Player.pressMouseAtSeconds(x, y, seconds)
Player.pressMouseAtSeconds(x, y, seconds, holding: modifierKeys)
Parameters
x is the number of pixels from the left side of the frontmost dialog or window.
y is the number of pixels from the top of the frontmost dialog or window.
seconds is a number.
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
Press and hold the mouse for the indicated duration (with two parameters to specify the location).
Returns
True.
Examples
Player.pressMouseAtSeconds(365, 215, 5) « e.g. to scroll the scrapbook to the right edge
Notes
- This verb is similar to pressMouseSeconds(...), but provides separate x and y parameters that some may find easier to type (and to read!). It does not support screen coordinates.
- 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.
- The holding label may be left off, though the result may be less readable.
See Also
Player.clickMouseAt
Player.dragMouseFromTo
Player.pressMouseSeconds
Keywords
mouse[13] XY modifiers
pressMouseSeconds
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.