Class & Text Spy

Posted On 2017-06-13 by BlackBeltVB
Tags: VB6 Miscellaneous 
Views: 134

Title Uploaded Size
CLASSSPY.ZIP 6/13/2017 10:29:44 AM 1,761

How to view the Class name and Text of any window.

Uses a Timer to retrieve the mouse position and the window handle beneath the mouse. Displays the window handle, class name, and text (if any).

Class Spy Screenshot


Special Instructions

  • GetCursorPos
  • GetClassName
  • SendMessage
  • WindowFromPoint 



This code originally appeared on, and has been republished here with the permission of Matt Hart.

About the Author

has posted a total of 89 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links