#Compile the name of the window for win_get_desc
windowname = "{class: window, label : \"!.*";
windowname = windowname & window;
windowname = windowname & "*\"}";
#Specify the window that you want to learn
win_get_desc(windowname, "class label", "MSW_ID","index", win_desc);
#Add the window to the new GUI map file
GUI_add("", window, "", win_desc);
set_window(window, 1);
#This loop goes over all the htmlxxxx in the window
while (obj_exists ("{class: htmlxxxx , index: "& i &"}") == E_OK)
{
#Get the next button description
obj_get_desc ( "{class: htmlxxxx , index: "& i & "}", "", "","location", desc);
#Get the label of the button
ret = split( desc, attr, "\\\"" );
#Add the htmlxxxx description to the GUI map file
GUI_add ("", window, attr[4], desc);
i++;
}