Jump to content

press button dependent on its caption


Recommended Posts

Use Au3Info to get the info, then use the functions WinExists, ControlClick.

what i meant is that i've got a button (in a window) that might have either the caption "connect" or "disconnect". i want to press the button when it has the caption "connect" and not do anything when it has the caption "disconnect".

Link to comment
Share on other sites

With any autoit code examples posted, you can click the functions to goto that part in the online docs.

Here, I'll try to explain..

MsgBox(4096, "", "AutoIt rocks!") ; Click on MsgBox

learned some more how autoit works

learned some more how this forum works

still a long way in front of me

but thanks for showing me the right direction

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