Jump to content

Recommended Posts

Posted

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

Posted

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.

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

post-56351-0-83286000-1425210876.jpg

 

And you definitely need to test that the window is present before trying to click it as JohnOne suggested.

Edited by l3ill

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