Macro Scheduler 15

PopupMenu

PopupMenu>X,Y,ItemList,result

 

Creates and displays a simple pop up menu at the specified X,Y position and returns the index of the item selected by the user.

 

X and Y take a screen X,Y position

ItemList is a semi-colon delimited list of captions

result is the return value and will contain the zero based index of the item the user selected

 

Example

 

Let>Items=Open;Close;About;Exit

GetCursorPos>X,Y

PopupMenu>X,Y,Items,res

MessageModal>You selected item: %res%