yosefk 0 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? Share this post Link to post Share on other sites
taietel 34 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 Share this post Link to post Share on other sites
yosefk 0 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". Share this post Link to post Share on other sites
KaFu 295 Posted July 26, 2010 Use Au3Info to get details on control... if ControlGetText ( "title", "text", controlID ) = "Connect" Then ControlClick( "title", "text", controlID ) OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) 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 (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites
yosefk 0 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 Share this post Link to post Share on other sites
somdcomputerguy 103 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. Share this post Link to post Share on other sites
yosefk 0 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 Share this post Link to post Share on other sites