foolove Posted October 1, 2011 Share Posted October 1, 2011 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 More sharing options...
Dgameman1 Posted October 1, 2011 Share Posted October 1, 2011 $coord1 = PixelSearch(x1, y1, x2, y2, color) if not @error Then mouseclick("left" , $coord1[0] , $coord1[1]) EndIf Link to comment Share on other sites More sharing options...
Unsigned Posted October 1, 2011 Share Posted October 1, 2011 WinWaitActive may also be useful to you. . Link to comment Share on other sites More sharing options...
foolove Posted October 2, 2011 Author Share Posted October 2, 2011 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 More sharing options...
foolove Posted October 2, 2011 Author Share Posted October 2, 2011 Oh forgot to mention WinWaitActive does not work on this Link to comment Share on other sites More sharing options...
foolove Posted October 2, 2011 Author Share Posted October 2, 2011 ok the code does work but i have to continually hit f5 in order for it to do so need to figure out how to get the code to loop Link to comment Share on other sites More sharing options...
Dgameman1 Posted October 2, 2011 Share Posted October 2, 2011 While 1 = 1 $coord1 = PixelSearch( 538, 463, 626, 479, 0xE7E7E7 ) if not @error Then mouseclick("left" , 605, 472, 1, 0) EndIf WEnd Link to comment Share on other sites More sharing options...
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