Lociz Posted March 1, 2015 Share Posted March 1, 2015 $xX = WinList('[TITLE:Confirmation; CLASS:#32770]') For $x = 1 to $xX[0][0] ControlClick($xX[$x][1], '', 'Button1') Next Sometimes dont click the Button. I tested with _GUICtrlButton_Click but same problem. Sorry for my English. Link to comment Share on other sites More sharing options...
l3ill Posted March 1, 2015 Share Posted March 1, 2015 Try to get more info on the button like the class & Instance or ID and use that or Most buttons have a keyboard shortcut: OK is usually ALT & "O" for instance. Maybe ControlSend the keyboard shortcut works better ? My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
JohnOne Posted March 1, 2015 Share Posted March 1, 2015 Probably to fast. Add a Sleep() into your loop. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Lociz Posted March 1, 2015 Author Share Posted March 1, 2015 Probably to fast. Add a Sleep() into your loop. I will test it. Try to get more info on the button like the class & Instance or ID and use that or Most buttons have a keyboard shortcut: OK is usually ALT & "O" for instance. Maybe ControlSend the keyboard shortcut works better ? 'ALT & O' dont work but ControlSend($xX[$x][1], '', 'Button1', '{ENTER}') worked. Link to comment Share on other sites More sharing options...
l3ill Posted March 1, 2015 Share Posted March 1, 2015 (edited) "OK" was just an example. You can sometimes click the ALT button when your Button is present and the Letter you need will show an underline. And you definitely need to test that the window is present before trying to click it as JohnOne suggested. Edited March 1, 2015 by l3ill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example 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