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

Player.choosePopup


Syntax

Player.choosePopup(menu, item)

Player.choosePopup(menu, item, holding: modifierKeys, extraClick: desiredState)


Parameters

popup is either a name, ID number, or location (an {x, y} list or a point datatype)

item is either a name or position number.

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.

extraClick: desiredState, set to 'false' to disable the extra click (for a slight increase in speed but at the risk of the app not noticing the changed popup value)


Action

Chooses a pop-up menu command.


Returns

True.


Examples

Player.choosePopup("File Format", "Text")
Player.choosePopup(13, "Plain Text") « format (in MORE)
Player.choosePopup( {220, 147}, "points" ) « height

Player.choosePopup("File Format", "Text", extraClick: false) « new in 1.5


Errors

The pop-up menu or item does not exist or is not enabled.


Notes



See Also

Player.chooseHierPopup
Player.popupExists
Player.getPopupInfo
Player.getPopupAttribute
Player.setCompleteMatch
Player.choosePopupAt


Keywords

menus[3] dialogItems location modifiers

| Top |


chooseMenu| Prev | Home | Next |choosePopupAt

Updated on 1/24/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.