|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |
CompiledModule | +--emos_std_menue_lib
This library contains alternative implementations for standard functions that operate on menues (menu_x() functions). Another sort of functions in this library are functions that implement some additional functionality that would probably fit into Mercury's logic for menu_x() functions.
Function Summary | |
String |
DOS_menu_select_item(in win,
in item)
This function is specially designed for a particular DOS application. |
String |
EMOS_menu_check_info1(in item,
in attr,
in info,
in win)
This function compares the expected with the actual info of a menu item without requiring items to be learned. |
String |
EMOS_menu_get_info1(in item,
in attr,
out info,
in win)
This function returns the info of a menu item without requiring items to be learned. |
String |
EMOS_menu_is_complete_path_selection()
Returns TRUE if COMPLETE_PATH selection is activated. |
String |
EMOS_menu_is_last_entry_selection()
Returns TRUE if LAST_ENTRY selection is activated. |
String |
EMOS_menu_item_via_text(in item,
in arg_win_desc)
This function clicks on a menu item without requiring items to be learned by untilysing the WinRunner's text recognition cpabilities. |
protected String |
EMOS_menu_item(in action,
in item,
in attr,
in inInfo,
out outInfo,
in time,
in window)
This function implements the actual logic for processing menu items that are not in the GUI-map. |
String |
EMOS_menu_select_item(in gui1,
in win1,
in men1,
inout win2)
This function implements an alternative for native menu_select_item(). |
String |
EMOS_menu_select_item1(in item,
in win)
This function clicks on a menu item without requiring items to be learned. |
String |
EMOS_menu_select_item2(in item)
This function clicks on a menu item without requiring items to be learned. |
String |
EMOS_menu_set_complete_path_selection()
Call this function to cause menu_select_item to select the complete menu path. |
String |
EMOS_menu_set_last_entry_selection()
Call this function to cause menu_select_item to select only the last item instead of the complete menu path. |
String |
EMOS_menu_wait_info1(in item,
in attr,
in info,
in time,
in win)
This function waits for the info of a menu item without requiring items to be learned. |
String |
excep1(in rc,
in func)
The empty (does nothing) exception handler needed for menu_select_item1(). |
String |
menu_select_item1(in gui,
in win1,
in men1,
in ttt1,
out gui2,
inout win2,
out menu_str)
|
Function Detail |
public String EMOS_menu_set_complete_path_selection()
Note:
Behaves the same as WinRunner, the only problem is that it does not always work.
public String EMOS_menu_set_last_entry_selection()
Example:
instead of calling menu_select_item( "aaa;bbb;ccc" )
this mode causes menu_select_item( "ccc" ) to be called
Note:
This is the default mode.
It uses an undocumented feature of WR that appears to work more often than
the documented one.
public String EMOS_menu_is_complete_path_selection()
public String EMOS_menu_is_last_entry_selection()
public String DOS_menu_select_item(in win, in item)
NOTE! Please note that position and size of the menu bar is hard-coded.
win
- (in) name of the window that contains the menu baritem
- (in) the string to be selected
public String EMOS_menu_select_item1(in item, in win)
item
- the item to be selectedwin
- [optional] window where actions are to be performed
public String EMOS_menu_get_info1(in item, in attr, out info, in win)
item
- the item to be selectedattr
- attribute to be examinedinfo
- (out) info retrievedwin
- [optional] window where actions are to be performed
public String EMOS_menu_wait_info1(in item, in attr, in info, in time, in win)
item
- the item to be selectedattr
- attribute to be examinedinfo
- info to be waited fortime
- [optional] time to be waited forwin
- [optional] window where actions are to be performed
public String EMOS_menu_check_info1(in item, in attr, in info, in win)
item
- the item to be selectedattr
- attribute to be examinedinfo
- info to be checkedwin
- [optional] window where actions are to be performed
protected String EMOS_menu_item(in action, in item, in attr, in inInfo, out outInfo, in time, in window)
action
- action to be performeditem
- the item to be selectedattr
- [optional] attribute to be examinedinInfo
- [optional] info to be usedoutInfo
- (out) [optional] info to be returnedtime
- [optional] time to be waited for
public String EMOS_menu_item_via_text(in item, in arg_win_desc)
NOTE
This is an alternative to EMOS_menu_item() when this one does not seem to be stable enough (e.g. position of menu entries changes too often). This worked in very well for some applications that we were punished to test.
item
- the item to be selectedarg_win_desc
- (in) (optional) physical menu window description [default: { class: object, MSW_id: 0, location: %d }]
public String EMOS_menu_select_item2(in item)
item
- the item to be selected
public String EMOS_menu_select_item(in gui1, in win1, in men1, inout win2)
gui1
- (in) gui-Filewin1
- (in) windowmen1
- (in) menu_itemwin2
- (inout) window:
win2 = "" , dann nur Path von menu_item gibt zurück. win2 = "*", dann sucht Name von Window in alle GUI-Filen (wenn Sie wissen nicht, welche Window taucht auf). win2 # "*",dann sucht nicht (wenn Sie wissen, welche Window taucht auf).
public String excep1(in rc, in func)
rc
- (in)func
- (in)public String menu_select_item1(in gui, in win1, in men1, in ttt1, out gui2, inout win2, out menu_str)
|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |