ImageSearch Inactive Window Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Kenma Saiki
Posts: 3
Joined: 24 Jan 2022, 23:37

ImageSearch Inactive Window

Post by Kenma Saiki » 25 Jan 2022, 00:01

Context:
I want to make a script to press the "Skip Ad(s)" button on YouTube when I'm listening to music in the background while I do whatever. However, I can't find any way to ImageSearch inactive windows other than hiding them in a corner or off the screen; but that wouldn't work while I play games and I wanted to make the script just run and it does the work.

Question:
Is there a way to ImageSearch minimized windows? I would prefer not to install external libraries; but if I need to, would someone point me towards one?

User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: ImageSearch Inactive Window  Topic is solved

Post by boiler » 25 Jan 2022, 00:07

Using Gdip_ImageSearch(), you can search a window that is open and behind other windows, but not minimized.

Kenma Saiki
Posts: 3
Joined: 24 Jan 2022, 23:37

Re: ImageSearch Inactive Window

Post by Kenma Saiki » 25 Jan 2022, 00:12

How do I get the gdip library?

User avatar
boiler
Posts: 16951
Joined: 21 Dec 2014, 02:44

Re: ImageSearch Inactive Window

Post by boiler » 25 Jan 2022, 05:22

Download it from here.

Kenma Saiki
Posts: 3
Joined: 24 Jan 2022, 23:37

Re: ImageSearch Inactive Window

Post by Kenma Saiki » 25 Jan 2022, 13:17

Thank you

Post Reply

Return to “Ask for Help (v1)”