Use GDI+ to do image search?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: Use GDI+ to do image search?

28 Oct 2021, 21:24

As I said before better do not use image search at all.
What do You try to automate?
User avatar
boiler
Posts: 17301
Joined: 21 Dec 2014, 02:44

Re: Use GDI+ to do image search?

28 Oct 2021, 21:27

If it works, use it.
User avatar
ibieel
Posts: 216
Joined: 17 Oct 2021, 23:30

Re: Use GDI+ to do image search?

28 Oct 2021, 22:59

malcev wrote:
28 Oct 2021, 21:24
As I said before better do not use image search at all.
What do You try to automate?
I'm automating cures and special attacks for RPG games
malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: Use GDI+ to do image search?

29 Oct 2021, 08:21

I dont know nothing about games, but different kind of windows can be captured with different api.
For example hardware accelerated windows (that use directx or directcomposition) and are not visible can be captured with PW_RENDERFULLCONTENT on win>=8.1 or with WindowsGraphicsCapture API on win>=10.
https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/
On win7 such windows can be captured with magnification api (with some remarks) or with injecting dll and hooking some methods or with hacking entire dwm.
https://github.com/steeve/dwmaxx2
As for games I would recommend You go to https://www.unknowncheats.me/forum/index.php and read about methods of injecting and automation.
And learn c++.
doubledave22
Posts: 343
Joined: 08 Jun 2019, 17:36

Re: Use GDI+ to do image search?

29 Oct 2021, 10:07

malcev wrote:
29 Oct 2021, 08:21
WindowsGraphicsCapture API on win>=10.
https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/
This is interesting... does CreateForWindow return a bitmap usable in gdip graphics search? How new is this, I don't see any whisperings of it on ahk anywhere.
malcev
Posts: 1769
Joined: 12 Aug 2014, 12:37

Re: Use GDI+ to do image search?

29 Oct 2021, 11:31

Of course You can get scan and stride .
I don't see any whisperings of it on ahk anywhere
Because it will be difficult to transfer it and nobody needs it.
doubledave22
Posts: 343
Joined: 08 Jun 2019, 17:36

Re: Use GDI+ to do image search?

29 Oct 2021, 13:32

malcev wrote:
29 Oct 2021, 11:31
Of course You can get scan and stride .
I don't see any whisperings of it on ahk anywhere
Because it will be difficult to transfer it and nobody needs it.
If it's faster and more performant than Gdip_BitmapFromScreen or Gdip_BitmapFromHWND functions for getting pixel data from background windows I would be interested. Plus it's always good to have more options of getting pixel data from hardware accelerated windows in background since sometimes those other functions fail even with render flag
JollyJoeHelpMePls
Posts: 3
Joined: 25 Nov 2022, 12:58

Re: Use GDI+ to do image search?

25 Nov 2022, 13:06

jollyjoe wrote:
21 Mar 2021, 08:05
another update question, Why is it that when I pass my code to my friends, the needle image is not recognized? but if they take a screenshot of their own needle, it works fine. Is there any solution to this? I already set the variation to 100-250 (i've been experimenting with this. Thanks so much again for the reply
@jollyjoe

Lol I made this account just to ask you, can you share your final code? You can send it on discord or just post it in the form please.

I am trying to make something similar and I was hoping to build it off your working example

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: arrondark, Google [Bot], mikeyww and 164 guests