As I said before better do not use image search at all.
What do You try to automate?
Use GDI+ to do image search?
Re: Use GDI+ to do image search?
If it works, use it.
Re: Use GDI+ to do image search?
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++.
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++.
-
- Posts: 343
- Joined: 08 Jun 2019, 17:36
Re: Use GDI+ to do image search?
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 wrote: ↑29 Oct 2021, 08:21WindowsGraphicsCapture API on win>=10.
https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/
Re: Use GDI+ to do image search?
Of course You can get scan and stride .
Because it will be difficult to transfer it and nobody needs it.I don't see any whisperings of it on ahk anywhere
-
- Posts: 343
- Joined: 08 Jun 2019, 17:36
Re: Use GDI+ to do image search?
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
-
- Posts: 3
- Joined: 25 Nov 2022, 12:58
Re: Use GDI+ to do image search?
@jollyjoejollyjoe wrote: ↑21 Mar 2021, 08:05another 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
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