Jump to content

Recommended Posts

Posted

Just curious on how you guys determine the region pixelchecksum is looking in.
I've been trying to display the region (Basically a box of where it's looking) for ease of use but can't figure out a good way of doing it, I checked through the forums and can't really find anything.

My bad if it's something stupid
Thanks in advance

Posted
12 minutes ago, gottygolly said:

Just curious on how you guys determine the region pixelchecksum is looking in.

Maybe this can help you a bit :

https://www.autoitscript.com/forum/topic/202150-screenshot-specific-area-on-desktop/?do=findComment&comment=1450421

(also read the next posts regarding the scale)

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Posted

I can get the coords for where to set the PixelCheckSum region, I grab the position and size of the window and do a little calculation

$Win = "Chrome"
$Win_Pos = WinGetPos($Win)
$Pixel_Check = PixelChecksum($Win_Pos[0]+($Win_Pos[2]/8),$Win_Pos[1]+($Win_Pos[3]/1.4),$Win_Pos[0]+($Win_Pos[2]/1.9),$Win_Pos[1]+($Win_Pos[3]/1.2))

If the window changes position or size at any point (Eg. I drag it by accident) the script still checks in the correct position of the window.
However, sometimes it doesn't update the change properly and starts grabbing from a different region, I'd like to be able to see the region where the script is currently looking so I'm aware of any changes. Know of anyways to display the region PixelCheckSum is set to?

Thank you for the help :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...