Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.clickMouseAt
Syntax
Player.clickMouseAt(x, y)
Player.clickMouseAt(x, y, 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.
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 (with two parameters to specify the location).
Returns
True.
Examples
Player.clickMouseAt(4, 27)
Player.clickMouseAt(13, -10) « click the close box
Player.clickMouseAt(1, 1, holding: shift ) « select to the upper left
Notes
- This verb is similar to clickMouse(...), 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.
- In most applications, the location is relative to the inside of the window. Negative y values reach into the title bar (if any).
- 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.doubleClickMouseAt
Player.nClickMouseAt
Player.pressMouseAtSeconds
Player.dragMouseFromTo
Player.setMouseDelay
Player.setTargetWindow
Player.clickMouse
Player.moveMouse
Keywords
mouse[9] XY modifiers
clickSequence
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.