Jump to content
Sign in to follow this  
foolove

Can you take a screen shot and crop something you wish to click on

Recommended Posts

foolove

Can you take a screen shot and crop something you wish to click on??

Share this post


Link to post
Share on other sites
foolove

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)

Share this post


Link to post
Share on other sites
Unsigned

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. :graduated:

Edited by Unsigned

.

Share this post


Link to post
Share on other sites
foolove

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

Share this post


Link to post
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
Sign in to follow this  

×