is there an alternative imagesearch solution on gdip lib ?

Get help with using AutoHotkey and its commands and hotkeys
guest3456
Posts: 3150
Joined: 09 Oct 2013, 10:31

Re: is there an alternative imagesearch solution on gdip lib ?

07 Nov 2019, 13:36

malcev wrote:
07 Nov 2019, 13:35
I think, that MW_FILTERMODE_INCLUDE worked only on Vista.
But we can get all windows that overlap our window and exclude them.
good idea, but these people say that the exclude list is limited to either 12 or 25 hwnds max:

https://social.msdn.microsoft.com/Forum ... automation

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

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 04:49

guest3456 wrote:
03 Nov 2019, 12:19
@malcev excellent, but i'm guessing this will only work fullscreen, and we'd still need to use GDI to capture and/or imagesearch for windows that are obscured behind others
Example with hwnd::
https://www.autohotkey.com/boards/viewtopic.php?p=302273#p302273
takayo97
Posts: 62
Joined: 09 Jun 2018, 16:30

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 07:18

Even though capture screen by using directx api, for image search for a given image, i ve to use gdip_imagesearch to do the job?
direct x has no such thing, right ?
malcev
Posts: 798
Joined: 12 Aug 2014, 12:37

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 07:38

DirectX cannot search for given image.
You have to use different methods - gdip_imagesearch , opencv...
takayo97
Posts: 62
Joined: 09 Jun 2018, 16:30

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 11:26

any info how to use opencv for image search ?
Last edited by takayo97 on 21 Nov 2019, 11:42, edited 1 time in total.
takayo97
Posts: 62
Joined: 09 Jun 2018, 16:30

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 11:43


For two image search implementation, gdip and opencv, which one is better in terms of performance and memory overrhead for loading the dll lib ?
takayo97
Posts: 62
Joined: 09 Jun 2018, 16:30

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 12:11

From @malcev sample code of using directx to screen capture the screen/desktop

The actual saving the screen to file is SavePixelsToFile32bppPBGRA() function, before this function executed, what is the loop 100 { } for ?
Why to loop 100 times before save a screenshot
malcev
Posts: 798
Joined: 12 Aug 2014, 12:37

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 12:15

I did not comapare speed of opencv imagesearch and gdi+.
loop 100 - just for testing speed without saving on disk.
guest3456
Posts: 3150
Joined: 09 Oct 2013, 10:31

Re: is there an alternative imagesearch solution on gdip lib ?

21 Nov 2019, 13:23

malcev wrote:
21 Nov 2019, 04:49
guest3456 wrote:
03 Nov 2019, 12:19
@malcev excellent, but i'm guessing this will only work fullscreen, and we'd still need to use GDI to capture and/or imagesearch for windows that are obscured behind others
Example with hwnd::
https://www.autohotkey.com/boards/viewtopic.php?p=302273#p302273
thank you sir, i will investigate

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

Re: is there an alternative imagesearch solution on gdip lib ?

09 Dec 2019, 08:33

There is also 1 interesting method, which hacks dwm.dll and intercepts directx that used by Windows for creating thumbnails preview.
https://www.youtube.com/watch?v=G75WKeXqXkc
I asked author for algorithm but he answered me that:
Sorry we had to take it down because of a copyright claim from microsoft.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Eik, lmstearn, mikagenic and 36 guests