Results 1 to 1 of 1

Thread: Get Window Classname, Window Titlename, HWND ID by (Hwnd ID)

  1. #1

    Thread Starter
    Addicted Member Miklogak's Avatar
    Join Date
    Jan 2013
    Posts
    203

    Thumbs up Get Window Classname, Window Titlename, HWND ID by (Hwnd ID)

    This is my first Project that I am adding in the Codebank, unfortunately many good developers have been adding their portion in this source as well, but I had to finish it to show what this is about.

    So I was really in trouble when I needed to figure out how to send text to a specific window! So first I had to find out what the Window name is.. Well you can Download the API Spy for this Tool! I am still using the Good Old API Apy by Pat or JK's Api Spy. There are a few API Spy'es out there but I consider this to be the best one. Mostly used for VB6, but good to find Windows and Other Stuff using this Tool

    Api Spy - Found Here: http://patorjk.com/programming/tutorials/apispy.htm

    First up you need to find the Hwnd ID or Number of the Window by using the API Spy to get the HWND!
    I will add a screenshot to show how I found the HWND ID of "Mozilla Firefox" while I was going to add my first Thread in the CodeBank!

    Here is the Screenshot:


    As seen in the Screenshot... to my right I have the API Spy Tool where I had to find the HWND ID of Mozilla Firefox Window which is "1312096". And Simply copy the HWND ID and add it in our Tool the first TextBox, and click on "GET WINDOW"...

    As you can see I got the Title of the Thread on vBFORUMS that I was visiting befor I had to post this, from Mozilla Firefox, Inclusive the Title and the HWND ID! I have added the Full Source, with explanations! Everything is very much clear just as I understood it..

    Credits for the Code to Kellys Chronicles at: http://kellyschronicles.wordpress.com/

    Credits for Project Source to My Friends At http://XCoderz.com

    Thank you all and hope this will help many others in my situation!

    Kindly Miklosh
    Attached Files Attached Files
    Last edited by Miklogak; Nov 1st, 2013 at 03:57 PM.

    A huge thanks to all the Great Developers and Helpers on vBForums for helping me and many others! Special thanks to Dunfiddlin, Paul, TechnoGome, , JayInThe813, ident for helping me with my projects througout the years. Incl. those i forgot to mention!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width