PreFab...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



See Also

click sequence
drag
move
set mouse delay
set target window

| Top |


click dialog item| Prev | Home | Next |click sequence

Updated on 1/30/99 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.