Jump to content

Recommended Posts

Posted

Hi, 

ControlClick does not work although by log it's clicked, but not actually, it does not

WinWaitActive("Setup - CPGit")
        $res = ControlClick("Setup - CPGit","&Next >","TNewButton1")
        If $res Then
            LogMessage("Clicked on the Next button")
        Else
            Send("{ENTER}")
            LogMessage("Clicked enter")
        EndIf

image.thumb.png.17513474f8308c990317dce976f04fe6.png

Posted
WinWaitActive("Setup - CPGit")

;ControlClick ( "title", "text", controlID [, button = "left" [, clicks = 1 [, x [, y]]]] )
;title      -   The title/hWnd/class of the window to access. See Title special definition.
;text       -   The text of the window to access. See Text special definition.
;controlID  -   The control to interact with. See Controls.

$res = ControlClick("Setup - CPGit", "", "TNewButton1")
If $res Then
    LogMessage("Clicked on the Next button")
Else
    Send("{ENTER}")
    LogMessage("Clicked enter")
EndIf

 

I know that I know nothing

Posted

@ioa747I got the same failure, unfortunately

log:

09:55:20 - Installer started successfully
09:55:25 - Clicked on the Next button
09:55:26 - Next button found

but it's not clicked

Posted

Wow, I was going to answer but I ended up learning some new stuff. Always useful to monitor help request posts

I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...