Sign in to follow this  
Followers 0
ru812

How To Push A Button?

6 posts in this topic

First off I am an autoit newb. I am also not much of a programmer. I am trying very simply to push a button on an app i started up. I identified the button with autoit window spy but i cannot figure out how to push it.

Share this post


Link to post
Share on other sites



ControlClick ( "titleOfWindowGoesHere", "", "Button1")

The Control___ functions are the weak point in the AutotIt documentation....

Instead of "Button1", you could use the text. For example, if the button says Exit you woud use "E&xit"

Hope that helps


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Thanks I had just figured that out :whistle: So when using WinWaitActive do i have to give the exact title? The app i am firing has a title that changes slightly when the version changes. ie: Application Coolness Ver1.(changes here)

Share this post


Link to post
Share on other sites

nm i rtfm'd and foudn that it does indeed match partial titles.

Share this post


Link to post
Share on other sites

Look at the help file contents:

Using AutoIt | Window Titles and Text (Advanced)

You can set a mode to match exact title, partial title, title starts with, or title contains :whistle:

Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=...


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

bleh i'll read more :whistle:

Edited by ru812

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