Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
click: at a specific location
Syntax
click location coordinates [times numberOfClicks] [seconds numberOfSeconds] [holding modifierKeys]
Parameters
location coordinates -- an {x, y} list, the horizontal and vertical number of pixels from the upper left corner of the frontmost window
[times numberOfClicks] -- number of times to click
[seconds numberOfSeconds] -- number of seconds to press & hold the mouse button
[holding modifierKeys] -- one or more modifier keys (command, shift, option, control, caps lock), concatenated with "&"
Result
true
Examples
click location {10, 20} -- relative to frontmost (or target) window
click location {10, 20, screen coordinates} -- absolute position
click location {13, -10} -- click the close box
click location {10, 20} times 2 -- double click
click location {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 the screen coordinates constant (new in 1.03) 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 set mouse delay to set a short delay.
- To rapidly click a list of locations or items in sequence, use click sequence.
See Also
click sequence
drag
move
set mouse delay
set target window
click sequence
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.