gottygolly Posted April 2, 2020 Posted April 2, 2020 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
Musashi Posted April 2, 2020 Posted April 2, 2020 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) "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
gottygolly Posted April 2, 2020 Author Posted April 2, 2020 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
Bert Posted April 3, 2020 Posted April 3, 2020 Seeing you are using chrome - why not just use this: The Vollatran project My blog: http://www.vollysinterestingshit.com/
junkew Posted April 3, 2020 Posted April 3, 2020 Draw a rectangle on the screen so you see if you calculate proper area. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now