Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.clickMouse
Syntax
Player.clickMouse(location)
Player.clickMouse(location, holding: modifierKeys)
Parameters
location is an {x, y} list or a point datatype.
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 at the specified location.
Returns
True.
Examples
Player.clickMouse( {4, 27} )
Player.clickMouse( point.set(4, 27) )
Player.clickMouse( Player.screenCoordinates( {4, 27} ) )
Player.clickMouse( {13, -10} ) « click the close box
Player.clickMouse( {1, 1}, holding: shift ) « select to the upper left
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.
- In most applications, the location is relative to the inside of the window. Negative y values reach into the title bar (if any).
- This verb may click too quickly for an application to notice. Use setMouseDelay(...) to set a short delay.
- To rapidly click a list of locations or items in sequence, use clickSequence.
- The holding label may be left off, though the result may be less readable.
- As an alternative to doubleClick and nClick, this verb has an optional labelled parameter, times.
See Also
Player.doubleClickMouse
Player.nClickMouse
Player.clickSequence
Player.pressMouseSeconds
Player.dragMouse
Player.moveMouse
Player.setMouseDelay
Player.setTargetWindow
Player.screenCoordinates
Player.clickMouseAt
Keywords
mouse[1] location modifiers
clickMouseAt
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.