baselz Posted April 10 Share Posted April 10 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 Link to comment Share on other sites More sharing options...
Zedna Posted April 10 Share Posted April 10 Try add ControlFocus(): WinWaitActive("Setup - CPGit") ControlFocus("Setup - CPGit","&Next >","TNewButton1") $res = ControlClick("Setup - CPGit","&Next >","TNewButton1") ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
baselz Posted April 10 Author Share Posted April 10 @Zednathnx for your help but it did NOT help, although it's on Focus, it's just not clicked Link to comment Share on other sites More sharing options...
ioa747 Posted April 10 Share Posted April 10 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 More sharing options...
baselz Posted April 11 Author Share Posted April 11 @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 Link to comment Share on other sites More sharing options...
Solution InnI Posted April 11 Solution Share Posted April 11 24 minutes ago, baselz said: but it's not clicked Try adding to the beginning of the script #RequireAdmin ioa747 and baselz 1 1 Link to comment Share on other sites More sharing options...
Newb Posted April 11 Share Posted April 11 Wow, I was going to answer but I ended up learning some new stuff. Always useful to monitor help request posts somdcomputerguy 1 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 More sharing options...
baselz Posted April 11 Author Share Posted April 11 @InnIit work, you rock Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now