AutoMenu
Reusable trap for the menu. Works the same as WaitMenu, but runs continuously until removed.
MenuCaption : Can be:
-
Full or substring - Menu caption (aka name). Case sesitive!
-
‘(any’) - any menu caption.
ElementCaption : element to use. Can be:
-
string or substring of element. Case sensitive!
-
‘(any)’ or ‘(random)’ - random element will be selected
-
‘(X)’, where X - some number = index, will be selected Element with this index (if exists). Numeration starts from 1, not from 0 !
-
‘(first)’, ‘(second)’, ‘(last)’ = 1st element, 2nd, and last.
-
‘(cancel)’ - menu will be cancelled.
procedure AutoMenu(MenuCaption : String; ElementCaption : String);
DWS\Pascal Script Example:
CancelMenu();
AutoMenu('Tracking', 'Animals');
UseSkill('Tracking');
def AutoMenu(MenuCaption, ElementCaption)