Jump to content

ControlClick trouble


Recommended Posts

Hello,

I do not understand why my Controlclick doesnt work anymore.

ControlClick ( "Sélection des composants", "", "[CLASS:Button;INSTANCE:3]")
WinWaitActive("KEYFREE")
ControlClick ( "KEYFREE", "", "[CLASS:Button;INSTANCE:2]"); working

ControlClick ( "KEYFREE", "", "[CLASS:Button;INSTANCE:4]"); working (click Next)

ControlClick ( "KEYFREE", "", "[CLASS:Button;INSTANCE:4]"); works sometimes (supposed to click Next)
  
ControlClick ( "KEYFREE", "", "[CLASS:Button;INSTANCE:1]"); does not not work anymore 

WinWaitActive("Question")
ControlClick ( "Question", "", "[CLASS:Button;INSTANCE:1]")

If a manually go to the Question Windows the script continue its job normally.

I'm sure about de CLASS and INSTANCE settings.

Any help?

Thanks!

Edited by Tentaal
Link to comment
Share on other sites

Try put some sleep(5000) between the controlclicks and see if it works then.

If it works then we just need to make something like this:

Do
    Sleep(100)
Until ControlCommand("KEYFREE","","[CLASS:Button;INSTANCE:4]","IsVisible", "") == 1

Or

Do
    Sleep(100)
Until ControlGetText("KEYFREE","","[CLASS:Button;INSTANCE:4]") == "The thing stands and the button"

Between the controlclicks that change the window so it doesn't go to fast..

Regards

Edited by newbiescripter
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...