Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.nClickMouse
Syntax
Player.nClickMouse(location, n)
Player.nClickMouse(location, n, holding: modifierKeys)
Parameters
location is an {x, y} list or a point datatype.
n 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
Clicks the mouse n times at the specified location.
Returns
True.
Examples
Player.nClickMouse( {4, 27}, 5 )
Player.nClickMouse( point.set(4, 27), 5 )
Player.nClickMouse( Player.screenCoordinates( {4, 27} ), 5 ) « n-click at this 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.
- This verb may click too quickly for an application to notice. Use setMouseDelay(...) to set a short delay.
- The holding label may be left off, though the result may be less readable.
- The clickMouse(...) verb has an optional labelled parameter, times, so it can be used in place of this verb.
See Also
Player.clickMouse
Player.doubleClickMouse
Player.nClickMouseAt
Keywords
mouse[3] location modifiers
nClickMouseAt
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.