Jump to content

pixelchecksum question


Recommended Posts

I am very much new to autoit just trying to learn

I found a neat program on here that helps with this

So I am assuming from reading pixelchecksum looks for a condition on a screen that changes

I am trying to do a conditional check for a pop up window that has an ok button if the window pops up then click ok

i just randomly used the pixel check some tool i found on the site to generate code on an ms dos window i had open on my laptop hoping somone can steer me in the right direction on the best way to apply constantly look for the pop up window and if the window exist click ok assuming i would use mousclick(left,cord1,cord2) in the if condition and while looping but not sure

thanks to all who reply

While(PixelChecksum(62,115,718,442) <> 2327426195)

WEnd

-------------------------------------------------------------------------------------

Link to comment
Share on other sites

i came up with this

$coord1 = PixelSearch( 538, 463, 626, 479, 0xE7E7E7 )

if not @error Then

mouseclick("left" , 605, 472, 1, 0)

EndIf

im assuming the pixel search is for the top left and lower right of the pop up window and mousclick is to click an ok button?

i need this to loop constantly to look for the pop up window.....currently the code is not working though

Also is there a live chat for autoit like on IRC or something???

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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