WindowScrape icon indicating copy to clipboard operation
WindowScrape copied to clipboard

how tf do i use it

Open Hybert404 opened this issue 3 years ago • 4 comments

any instructions would be appreciated

Hybert404 avatar Apr 17 '22 15:04 Hybert404

That's funny. There were instructions at one point in this things history. I'll see if I can recover them. This thing is pretty old.

DataDink avatar Apr 20 '22 14:04 DataDink

Any luck with that? I need to do some window manipulation, found your StackOverflow post talking about this project almost a decade ago, heh. If it still works, it'd be nice to not have to reinvent the wheel :)

Strahan201 avatar Jan 01 '23 03:01 Strahan201

Find any documentation?

myn avatar Feb 28 '23 00:02 myn

Hello, This is a crude library that predates stack overflow and github. Originally posted to an ancient coding forum on an account that is apparently too old to recover, I recovered a DLL, disassembled it, and popped it here.

Let me see what I can get up this weekend, but the basics are this:

  • Every visual element in Windows has a reference pointer to it known as an HWND
  • Top-level elements are windows, and their child elements are controls
    • All are manipulatable via the Win32 api:
      • https://learn.microsoft.com/en-us/windows/win32/api/
  • This library is a wrapper around some of the basic calls that helps find and manipulate windows and controls
    • Static methods help you find a top-level HwndObject which just holds reference to an HWND
    • Instance methods are just calling down to the API using the HWND references

DataDink avatar Feb 28 '23 14:02 DataDink