baselz Posted April 10 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
Zedna Posted April 10 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
baselz Posted April 10 Author Posted April 10 @Zednathnx for your help but it did NOT help, although it's on Focus, it's just not clicked
ioa747 Posted April 10 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
baselz Posted April 11 Author 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
Solution InnI Posted April 11 Solution 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
Newb Posted April 11 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.
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