Jump to content

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


Recommended Posts

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

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

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