This will "spy" on a window or get a list of current windows and allow you to export the data to an XML file. I am not too good with XML files so here is a dump of a window. I am using the ID of the window, then an attribute with the CLASS of the window, then the text/title (if any) of the window is the value.... I was thinking should I use Window as the item name and then supply ID and CLASS as attributes? Thoughts?
Example:
<Window ID="%12345" CLASS="#myClass">Window Title<Window>
Window XML Export:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%5964742 Class="#ISManage_Wnd">ISManage
<%655932 Class="#TVDSStatus">noWindowText</%655932>
<%393720 Class="#TVDSButton">Action...</%393720>
<%5246080 Class="#TVDSButton">Edit Info</%5246080>
<%331250 Class="#TVDSButton">Clear Fields</%331250>
<%2754692 Class="#TVDSButton">Delete Office</%2754692>
<%39453664 Class="#TVDSButton">Cancel</%39453664>
<%12651314 Class="#TVDSButton">Add Office</%12651314>
<%14355474 Class="#TVDSGroup" Class="#TVDSButton">Cancel
<%265872 Class="#TVDSButton">...</%265872>
<%396892 Class="#TVDSEdit">noWindowText</%396892>
<%6686618 Class="#TVDSCombo">None|0|</%6686618>
<%265756 Class="#TVDSCheck">Document Sharing</%265756>
<%16518174 Class="#TVDSCheck">Local Signing</%16518174>
<%396776 Class="#TVDSCheck">General Signing</%396776>
<%396764 Class="#TVDSCheck">Kiosk</%396764>
<%396922 Class="#TVDSRadio" Class="#TVDSEdit">4
<%396782 Class="#TVDSGroupBtn">No</%396782>
<%331260 Class="#TVDSGroupBtn">Yes</%331260>
</%396922>
<%658780 Class="#TVDSSpinEdit" Class="#TVDSRadio" Class="#TVDSRadio" Class="#TVDSEdit">noWindowText
<%396938 Class="#TSpinButton">noWindowText</%396938>
<%12189962 Class="#TVDSGroupBtn">No</%12189962>
<%61147958 Class="#TVDSGroupBtn">Yes</%61147958>
<%2428168 Class="#TVDSGroupBtn">No</%2428168>
<%1706958 Class="#TVDSGroupBtn">Yes</%1706958>
</%658780>
<%4525284 Class="#TVDSRadio" Class="#TVDSRadio" Class="#TVDSEdit">May 29, 2014
<%593506 Class="#TVDSGroupBtn">Inactive</%593506>
<%86641454 Class="#TVDSGroupBtn">Active</%86641454>
<%2166202 Class="#TVDSGroupBtn">No</%2166202>
<%74320924 Class="#TVDSGroupBtn">Yes</%74320924>
</%4525284>
<%95684990 Class="#TVDSEdit">noWindowText</%95684990>
<%15993814 Class="#TVDSEdit">noWindowText</%15993814>
<%72747590 Class="#TVDSEdit">noWindowText</%72747590>
<%30739924 Class="#TVDSEdit">noWindowText</%30739924>
<%43716102 Class="#TVDSEdit">07016</%43716102>
<%2886206 Class="#TVDSEdit">NJ</%2886206>
<%855156 Class="#TVDSEdit">Cranford</%855156>
<%7539758 Class="#TVDSEdit">Suite 205</%7539758>
<%6554552 Class="#TVDSEdit">noWindowText</%6554552>
<%3214582 Class="#TVDSEdit">noWindowText</%3214582>
<%13044970 Class="#TVDSEdit">714</%13044970>
<%25758818 Class="#TVDSEdit">noWindowText</%25758818>
</%14355474>
<%58656852 Class="#TVDSEdit">empowered</%58656852>
<%67633338 Class="#TVDSButton">Search</%67633338>
<%7474288 Class="#TVDSListView">agtlist
<%12124354 Class="#SysHeader32">noWindowText</%12124354>
</%7474288>
</%5964742>