Page 1 of 1

PixelSearch in a browser

Posted: 14 Aug 2022, 09:57
by thut11
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.

Re: PixelSearch in a browser

Posted: 14 Aug 2022, 10:22
by mikeyww
Probably not with minimized, but maybe with a background window. viewtopic.php?p=111080#p111080

Re: PixelSearch in a browser

Posted: 14 Aug 2022, 10:38
by thut11
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.

Re: PixelSearch in a browser

Posted: 14 Aug 2022, 10:42
by mikeyww
I have not used Tampermonkey. Others may know. In some cases, you can click in an inactive window. :arrow: ControlClick

Re: PixelSearch in a browser  Topic is solved

Posted: 14 Aug 2022, 15:34
by thut11
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!