Create a new object map but don't use the identify tool.
Give it a name. In Significant Fields check "Class Name" and "Type" only.
In Titles and Type:
Class Name = #32768
Type = PopupWindow
Now if you are recording you will have to go back and change it to your new object map cause in most cases it won't use the object map.
You can use this also for the menus in the menu bar.
Also note that you need to attach to this window before using it.
This is a weird popup because I can not use the Capture function to get it's text! I've even tried and API call to get the text of this popup and It still won't get it.
Let me know if you figure out a way.
I don't like to use text checks on menus because it Refreshes the menu before checking it. I we had a bug in our menu and a text check didn't see it because it refreshes the menu, which in turn displays the proper options. So what I did was try to select an option from the menu using PopupMenuSelect(), if successful it would return 1 indicating the option exists and return 0 if the option was not able to be selected(not there). You have to have an error handle that resumes next in order to get the 1 or 0 that PopupMenuSelect returns.
On Error Call OnErrorWindowResume
IsItem = PopUpMenuSelect( MenuItemsArray[I] )
On Error End
"If your not part of the solution, there's good money to be made in prolonging the problem."
[This message has been edited by QAGUY (edited 07-30-2002).]