Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.pressMouseSeconds
Syntax
Player.pressMouseSeconds(location, seconds)
Player.pressMouseSeconds(location, seconds, holding: modifierKeys)
Parameters
location is an {x, y} list or a point datatype.
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.
Returns
True.
Examples
Player.pressMouseSeconds( {365, 215}, 5 )
Player.pressMouseSeconds( point.set(365, 215), 5 )
Player.pressMouseSeconds( Player.screenCoordinates( {365, 215} ) ) « press at an absolute screen position
Notes
- 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.
- The holding label may be left off, though the result may be less readable.
See Also
Player.clickMouse
Player.dragMouse
Player.pressMouseAtSeconds
Keywords
mouse[7] location modifiers
radioExists
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.