GDI Become Official Autohotkey

Propose new features and changes
MamboWumbo
Posts: 16
Joined: 15 Jul 2021, 21:08

GDI Become Official Autohotkey

Post by MamboWumbo » 20 Jul 2021, 23:39

Please make GDI+ Become a official feature of AutoHotKey!! would be awesome

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

User avatar
Onimuru
Posts: 107
Joined: 08 Sep 2018, 18:35
Contact:

Re: GDI Become Official Autohotkey

Post by Onimuru » 28 Jul 2021, 01:48

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.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: GDI Become Official Autohotkey

Post by swagfag » 28 Jul 2021, 15:08

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?

User avatar
Onimuru
Posts: 107
Joined: 08 Sep 2018, 18:35
Contact:

Re: GDI Become Official Autohotkey

Post by Onimuru » 28 Jul 2021, 16:09

Yes you're right of course. I just thought I would say something lol

william_ahk
Posts: 481
Joined: 03 Dec 2018, 20:02

Re: GDI Become Official Autohotkey

Post by william_ahk » 06 Oct 2021, 22:56

Great idea! This will make AHK more popular in image manipulation for sure.

malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: GDI Become Official Autohotkey

Post by malcev » 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

guest3456
Posts: 3454
Joined: 09 Oct 2013, 10:31

Re: GDI Become Official Autohotkey

Post by guest3456 » 08 Oct 2021, 18:38

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


malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: GDI Become Official Autohotkey

Post by malcev » 08 Oct 2021, 19:07

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).

guest3456
Posts: 3454
Joined: 09 Oct 2013, 10:31

Re: GDI Become Official Autohotkey

Post by guest3456 » 08 Oct 2021, 23:46

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


malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: GDI Become Official Autohotkey

Post by malcev » 09 Oct 2021, 03:29

If We talk about chrome-based windows then We can try to run them with this cmd flag --disable-gpu.

Post Reply

Return to “Wish List”