posted 07-15-2002 12:50 AM
Link to example code: 16845037.zipHere goes...
This is used to get info from a GUI file loaded into memory.
GUI_buf_get_desc();
Gets the "Physical Description" from the GUI map file and object you specify.
GUI_buf_get_desc ( "C:\\a.gui", "Untitled - Notepad", "Edit", out_desc );
out_desc contains "{class: \"edit\"}"
.
.
.
This is used to get info from a GUI file stored on the hard drive.
GUI_map_get_desc():
Gets the "Physical Description" and "file name" from a loaded GUI map.
GUI_map_get_desc ( "Untitled - Notepad", "Edit", out_desc, out_file );
out_desc contains "{class: \"edit\"}"
out_file contains "C:\\a.gui"
P.S.
I have been written WinRunner test scripts for over 8 years and have never used these commands. They are for people who like to make things complicated...(job security)
The only GUI commands I need to use are listed in example code.
You can swat a fly with a sledge hammer, but another tool works better, costs less, and does less damage...
[This message has been edited by cranem451 (edited 07-20-2002).]