foolove Posted October 2, 2011 Share Posted October 2, 2011 Can you take a screen shot and crop something you wish to click on?? Link to comment Share on other sites More sharing options...
foolove Posted October 2, 2011 Author Share Posted October 2, 2011 Below is my current code after popup one I have another popup but the different is this one can be in random places on the screen is there a way to find the ok button to click?? The loop part works to find the first popup but after a few seconds delay another popup occurs on a new screen that i need to click... I can not use the window active on this I tried While 1 = 1 $coord1 = PixelSearch( 538, 463, 626, 479, 0xE7E7E7 ) if not @error Then mouseclick("left" , 605, 472, 1, 0) EndIf WEnd Sleep(4000) mouseclick("left",779,45) Link to comment Share on other sites More sharing options...
Unsigned Posted October 2, 2011 Share Posted October 2, 2011 (edited) What exactly did you try with WinWaitActive? The fact that you're not even using the value of $coord1 makes me wonder if you really understand what the code is doing. Edited October 2, 2011 by Unsigned . Link to comment Share on other sites More sharing options...
foolove Posted October 2, 2011 Author Share Posted October 2, 2011 Unsigned I changed the code to coordinates and it still works although a tad slower but if this is the best practice way ill use that method by slow its not noticeable really so ill use it also on pop up windows that could be in various locations of the screen how are these handled?? WinWaitActive does not work for me when i use the window finder it just has the main program windows information 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