yosefk Posted July 26, 2010 Share Posted July 26, 2010 i want autoit to press a button of an external application when this button's caption equals a certain text. how to do this? Link to comment Share on other sites More sharing options...
taietel Posted July 26, 2010 Share Posted July 26, 2010 Use Au3Info to get the info, then use the functions WinExists, ControlClick. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
yosefk Posted July 26, 2010 Author Share Posted July 26, 2010 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 More sharing options...
KaFu Posted July 26, 2010 Share Posted July 26, 2010 Use Au3Info to get details on control... if ControlGetText ( "title", "text", controlID ) = "Connect" Then ControlClick( "title", "text", controlID ) OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
yosefk Posted July 26, 2010 Author Share Posted July 26, 2010 Use Au3Info to get details on control... if ControlGetText ( "title", "text", controlID ) = "Connect" Then ControlClick( "title", "text", controlID ) it took a while to get the syntax right - this works great! - thanks a lot Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 26, 2010 Share Posted July 26, 2010 it took a while to get the syntax right.. 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 - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
yosefk Posted July 26, 2010 Author Share Posted July 26, 2010 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 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