This will find the window your mouse is over(or the crosshair) and give you your normal api spy details [ hwnds {hex and dec, curretn and parent windows} mouse coordinates, etc. look at SS]. This also has a form that writes out the code needed to find that window using find window and findwindowex, although it is not finished. If yoyu finish it, please post it or e-mail me. It shouldn't be too hard to finish, although there are some bugs in it.
API Declarationsgetparent, windowfrompoint, etc.