PixelSearch in a browser Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
thut11
Posts: 58
Joined: 13 Apr 2020, 14:00

PixelSearch in a browser

Post by thut11 » 14 Aug 2022, 09:57

Hello,
i successfully managed to write a pixelsearch script that fits my needs, but i want to improve it even more by making it work without me looking at the page.
So basically i want it to work as it does right now but even when the browser is minimized/tabs are switched.
Could i somehow do that? I could probably do this with Tampermonkey but i couldn't find any libraries/ready-to-use functions that would find the Pixel in x,y on the page.

User avatar
mikeyww
Posts: 27115
Joined: 09 Sep 2014, 18:38

Re: PixelSearch in a browser

Post by mikeyww » 14 Aug 2022, 10:22

Probably not with minimized, but maybe with a background window. viewtopic.php?p=111080#p111080

thut11
Posts: 58
Joined: 13 Apr 2020, 14:00

Re: PixelSearch in a browser

Post by thut11 » 14 Aug 2022, 10:38

mikeyww wrote:
14 Aug 2022, 10:22
Probably not with minimized, but maybe with a background window. viewtopic.php?p=111080#p111080
This most likely could bypass my problem in a decent way, although i can't make it work, another problem is that using this i won't be able to

Code: Select all

MouseClick, left
so i'd still need to connect AHK with Tampermonkey somehow(is it even possible?) to bypass this problem.

User avatar
mikeyww
Posts: 27115
Joined: 09 Sep 2014, 18:38

Re: PixelSearch in a browser

Post by mikeyww » 14 Aug 2022, 10:42

I have not used Tampermonkey. Others may know. In some cases, you can click in an inactive window. :arrow: ControlClick

thut11
Posts: 58
Joined: 13 Apr 2020, 14:00

Re: PixelSearch in a browser  Topic is solved

Post by thut11 » 14 Aug 2022, 15:34

mikeyww wrote:
14 Aug 2022, 10:42
I have not used Tampermonkey. Others may know. In some cases, you can click in an inactive window. :arrow: ControlClick
my "workaround":
i noticed the <div> inside the website code is changing whenver the colors are somewhat changing - so i am now checking jQuery class .html() value in a loop and whenever it varies i am simulating a mouse click, this way i don't need to have website active nor open - it will work always. I know my solution isn't any AHK related but i thought i'd share it anyways :D
Thanks for help anyways!

Post Reply

Return to “Ask for Help (v1)”