Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
One Verb Per Page
Player.clickItem
Syntax
Player.clickItem(theItem)
Player.clickItem(theItem, holding: modifierKeys)
Parameters
theItem is a name, ID number, or location (an {x, y} list or 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 item.
Returns
True.
Examples
Player.clickItem("whatever") « in case it has a name
Player.clickItem(13) « ID
Player.clickItem( {10, 20} ) « location
Player.clickItem("this one", holding: control) « optional labelled parameter
Errors
The item does not exist or is not enabled.
Notes
- This verb is for other dialog or window items, such as icons and text entry boxes.
- Use Player's balloon help to determine the ID number (if any) and location.
- To click a whole series of dialog items in one step, 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.doubleClickItem
Player.nClickItem
Player.clickInsideItem
Player.itemExists
Player.getItemInfo
Player.getItemAttribute
Player.clickButton
Player.clickSequence
Player.setCompleteMatch
Player.setForcedYield
Keywords
customItems[1] location modifiers
clickMouse
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.