Capture handler for windows using API-VBForums
Results 1 to 6 of 6

Thread: Capture handler for windows using API

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    673

    Question Capture handler for windows using API

    Hi

    How can I to capture the handle of the window (control) , I tried using SPY++ no returned class name , only static Name:  XwkZrHY.jpg
Views: 122
Size:  26.3 KB

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    16,716

    Re: Capture handler for windows using API

    Does have a class name: Static is a valid, system, class name
    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    673

    Re: Capture handler for windows using API

    Quote Originally Posted by LaVolpe View Post
    Does have a class name: Static is a valid, system, class name
    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
    Thank you
    I need to get the data inside control, what best way to do it ?

    Tia

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    16,716

    Re: Capture handler for windows using API

    OCR? If the entire window is a static control, that likely means that it is custom drawn (similar to a grid drawn on a picturebox). If the control does not offer any messages (to be used with SendMessage API) to retrieve data/info, nothing that helps comes to mind
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    673

    Re: Capture handler for windows using API

    Quote Originally Posted by LaVolpe View Post
    OCR? If the entire window is a static control, that likely means that it is custom drawn (similar to a grid drawn on a picturebox). If the control does not offer any messages (to be used with SendMessage API) to retrieve data/info, nothing that helps comes to mind
    Ok, thank you

  6. #6
    Hyperactive Member
    Join Date
    Oct 2013
    Posts
    389

    Re: Capture handler for windows using API

    That's one of the few legitimate purposes for reading a memory address of an external application.
    I happen to be writing a memory reading wrapper DLL for this on github (should take a few more days to make it function)
    which does all the internals for you (feel free to contribute)

    using\googling about ReadProcessMemory will probably get you faster if all you want is reading a text content.
    Last edited by stum; May 21st, 2015 at 02:39 PM.

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.