PreFab...Player...Documentation...Frontier...User's Guide...Chapter 5, Verbs...One Verb Per Page...

Player.clickButton


Syntax

Player.clickButton(theButton)

Player.clickButton(theButton, holding: modifierKeys)


Parameters

theButton is either a name, ID number, or location (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 indicated button.


Returns

True.


Examples

Player.clickButton("OK")
Player.clickButton(14) « ID
Player.clickButton( {10, 20} ) « location
Player.clickButton("Find Next", holding: command + option)


Errors

The button does not exist or is not enabled.


Notes



See Also

Player.clickDefaultButton
Player.acceptDialog
Player.cancelDialog
Player.buttonExists
Player.getItemInfo
Player.getItemAttribute
Player.clickItem
Player.clickSequence
Player.setCompleteMatch
Player.setForcedYield


Keywords

dialogItems[1] buttons location modifiers

| Top |


choosePopupAt| Prev | Home | Next |clickDefaultButton

Updated on 2/5/97 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.