Skip to content

Releases: mschadev/iwclib

iwclib.ahk

15 Mar 03:30
Compare
Choose a tag to compare

iwclib-full.ahk is a script that merged only the required functions.

1.0.2

  • Remove Capture function

Why?

You must call GdiplusStartup before you create any GDI+ objects, and you must delete all of your GDI+ objects (or have them go out of scope)
before you call GdiplusShutdown. - MS Docs

Origin here
That is, objects created after the Gdip_Shutdown function is called are not available.
So there is a memory leak.

  • Change to Gdip_BitmapFromScreen function from Capture function.(In InactiveImageSearch, InactivePixelSearch, MultipleInactivePixelSearch)
  • Change to Gdip_CloneBitmapArea function from Gdip_CropImage function.(In CaptureforSave)

iwclib-full.ahk

29 Feb 08:14
Compare
Choose a tag to compare
  • Add IsWindowMinimize function
  • In CaptureforSave function, change Gdip_BitmapFromHWND to Gdip_BitmapFromScreen
  • In Capture function, change Gdip_BitmapFromHWND to Gdip_BitmapFromScreen

Why?

PrintWindow is slow, and you can avoid that overhead on most windows. just use Gdip_BitmapFromScreen() with "hwnd:" string parameter instead of Gdip_BitmapFromHwnd(), and that will still work for inactive windows as long as the DWM is running. - guest3456(Forum)

iwclib-full.ahk

21 Feb 05:18
Compare
Choose a tag to compare

iwclib-full.ahk is a script that merged only the required functions.