Jump to content

ControlClick does not work


Go to solution Solved by InnI,

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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