Jump to content

How to activate a button by name


Recommended Posts

Look at ControlClick() in the help file, and use AU3Info.exe in the AutoIt directory to find the buttons ControlID.

EDIT: You beat me to the punch, Val!

Edited by JoshDB
Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
Link to comment
Share on other sites

Thanks to both of you but the window still won't open the browser.

Run("C:\Program Files\InterVideo\DVDCopy\DVDCopy.exe")
WinWaitActive("DVD Copy")
ControlFocus("DVD Copy","Source_Browse",1101)
ControlFocus("DVD Copy","Source_Browse",1101)
Link to comment
Share on other sites

  • Moderators

Thanks to both of you but the window still won't open the browser.

Run("C:\Program Files\InterVideo\DVDCopy\DVDCopy.exe")
WinWaitActive("DVD Copy")
ControlFocus("DVD Copy","Source_Browse",1101)
ControlFocus("DVD Copy","Source_Browse",1101)
Your using ControlFocus twice there. Not ControlClick next.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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