Page 1 of 1

GDI Become Official Autohotkey

Posted: 20 Jul 2021, 23:39
by MamboWumbo
Please make GDI+ Become a official feature of AutoHotKey!! would be awesome

https://github.com/MasterFocus/AutoHotkey/tree/master/Functions/Gdip_ImageSearch :bravo:

Re: GDI Become Official Autohotkey

Posted: 28 Jul 2021, 01:48
by Onimuru
I am against this, there are so many implementations of GDIp at this point and including any one wrapper would inevitably annoy people who have worked hard to write their own library and now need to combat the built in one.

Re: GDI Become Official Autohotkey

Posted: 28 Jul 2021, 15:08
by swagfag
of all reasons not to include it, this has got to be the silliest one. users dont generally care about the grievances of devs one bit(because... why should they?)
also, ure already combatting the implementations of others "who have worked hard" anyway, so what difference does adding a built-in one in the mix make?

Re: GDI Become Official Autohotkey

Posted: 28 Jul 2021, 16:09
by Onimuru
Yes you're right of course. I just thought I would say something lol

Re: GDI Become Official Autohotkey

Posted: 06 Oct 2021, 22:56
by william_ahk
Great idea! This will make AHK more popular in image manipulation for sure.

Re: GDI Become Official Autohotkey

Posted: 07 Oct 2021, 06:27
by malcev
To search in overlapped windows You dont need gdi+
Just need to change HDC hdc = GetDC(NULL) to HDC hdc = GetDC(hwnd)
https://github.com/Lexikos/AutoHotkey_L/blob/master/source/script2.cpp#L5012

Re: GDI Become Official Autohotkey

Posted: 08 Oct 2021, 18:38
by guest3456
malcev wrote:
07 Oct 2021, 06:27
To search in overlapped windows You dont need gdi+
Just need to change HDC hdc = GetDC(NULL) to HDC hdc = GetDC(hwnd)
https://github.com/Lexikos/AutoHotkey_L/blob/master/source/script2.cpp#L5012
this won't work if the DWM isn't turned on (such as with Win7 with aero theme turned off), or if the window is a chrome-based window class such as skype

Re: GDI Become Official Autohotkey

Posted: 08 Oct 2021, 19:07
by malcev
I dont remember about windows 7, but this method does not work not with chrome-based windows but with hardware accelerated windows.
With hardware accelerated windows We can try to run program without hardware acceleration or We can use printwindow with PW_RENDERFULLCONTENT flag (>=win8.1).

Re: GDI Become Official Autohotkey

Posted: 08 Oct 2021, 23:46
by guest3456
malcev wrote:
08 Oct 2021, 19:07
We can try to run program without hardware acceleration
how can we do this?

Re: GDI Become Official Autohotkey

Posted: 09 Oct 2021, 03:29
by malcev
If We talk about chrome-based windows then We can try to run them with this cmd flag --disable-gpu.