Sign in to follow this  
Followers 0
NoProgrammer

How to activate a button by name

6 posts in this topic

I am trying to open an application and then click on button4 in the window that pops up. I can't seem to figure out the right command. I can't just tab to it as none of the buttons are active when the window opens.

Share this post


Link to post
Share on other sites



maybe ControlClick... see help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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)

Share this post


Link to post
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)
Your using ControlFocus twice there. Not ControlClick next.

[center]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.[/center]

Share this post


Link to post
Share on other sites

Your using ControlFocus twice there. Not ControlClick next.

Duh. No wonder. It works now thanks.

Share this post


Link to post
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
Sign in to follow this  
Followers 0