ru812 Posted February 27, 2004 Share Posted February 27, 2004 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. Link to comment Share on other sites More sharing options...
CyberSlug Posted February 27, 2004 Share Posted February 27, 2004 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! Link to comment Share on other sites More sharing options...
ru812 Posted February 27, 2004 Author Share Posted February 27, 2004 Thanks I had just figured that out 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) Link to comment Share on other sites More sharing options...
ru812 Posted February 27, 2004 Author Share Posted February 27, 2004 nm i rtfm'd and foudn that it does indeed match partial titles. Link to comment Share on other sites More sharing options...
CyberSlug Posted February 27, 2004 Share Posted February 27, 2004 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 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! Link to comment Share on other sites More sharing options...
ru812 Posted February 27, 2004 Author Share Posted February 27, 2004 (edited) bleh i'll read more Edited February 27, 2004 by ru812 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now