Aerosol Posted December 29, 2014 Report Posted December 29, 2014 Download MySpy_exe.zip - 926 KBDownload MySpy_sln-noexe.zip - 1 MBIntroductionMySpy enumerates windows on the desktop and lists them in a tree. You can see some properties of a window represented by a node in the tree (eg. HWND, PID, ect.) and some more in the info pane. For example the properties of the main window of MySpy:Title : MySpyHWND : 01051258Class Name : MySpy_MainFrameClass Style : CS_VREDRAW | CS_HREDRAW | CS_DBLCLKSModule Name : N/ARect : (365, 167)-(1309, 695) 944x528Window Style : WS_BORDER | ... | WS_TILEDWINDOW | WS_VISIBLE = 349110272Window ExStyle : WS_EX_OVERLAPPEDWINDOW |...| WS_EX_WINDOWEDGE = 00000264Process ID : 00000644Thread ID : 00006988Window ID : 1351813779Toolbar functionsSet MySpy top mostRefresh window treeFilter buttons (filters can be used combined eg. visible & parent windows)visible windowsinvisible windowsparent windowschild windowsDisplay numbers in hexHighlight selected windowFind ...To find a window by text displayed in the tree or by mouse is also possible. The tool is very handy if you want to find a control, which is hidden, or if its size became 0 for some reason. The user can take several actions on a selected window:ShowHideEnableDisableLeft clickRight clickLeft double-clickRight double-clickMinimizeMaximizeCloseWith the Post Message Toolbar you can send or post messages, set text and transparency of the selected window.BackgroundI wrote this program long time ago, but it can be used nowadays too. It helped me to detect bugs, develop tricky controls and impress colleagues they don't even know about WinApi Smile | Points of InterestWinApi is an "old" technology, but it's worth to know about it.History29/12/2014 1.0 Initial versionSource Quote