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



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

| Top |


clickInsideItemAt| Prev | Home | Next |clickMouse

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.