Jump to content
Aerosol

Yet Another Spy

Recommended Posts

Posted

Download MySpy_exe.zip - 926 KB

Download MySpy_sln-noexe.zip - 1 MB

MySpy.jpg

Introduction

MySpy 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          : MySpy
HWND : 01051258
Class Name : MySpy_MainFrame
Class Style : CS_VREDRAW | CS_HREDRAW | CS_DBLCLKS
Module Name : N/A
Rect : (365, 167)-(1309, 695) 944x528
Window Style : WS_BORDER | ... | WS_TILEDWINDOW | WS_VISIBLE = 349110272
Window ExStyle : WS_EX_OVERLAPPEDWINDOW |...| WS_EX_WINDOWEDGE = 00000264
Process ID : 00000644
Thread ID : 00006988
Window ID : 1351813779

Toolbar functions

MainToolbar.jpg

  • Set MySpy top most
  • Refresh window tree
  • Filter buttons (filters can be used combined eg. visible & parent windows)
  • visible windows
  • invisible windows
  • parent windows
  • child windows
  • Display numbers in hex
  • Highlight selected window
  • Find ...

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.

FindWindowText.jpg

FindWindowByMouse.jpg

The user can take several actions on a selected window:

ActionToolbar.jpg

  • Show
  • Hide
  • Enable
  • Disable
  • Left click
  • Right click
  • Left double-click
  • Right double-click
  • Minimize
  • Maximize
  • Close

With the Post Message Toolbar you can send or post messages, set text and transparency of the selected window.

PostMessageToolbar.jpg

PostMessageToolbarCmb.jpg

Background

I 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 Interest

WinApi is an "old" technology, but it's worth to know about it.

History

29/12/2014 1.0 Initial version

Source

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...