dekids Posted March 30, 2013 Posted March 30, 2013 i have application exe with one button ( button name: connect) ,How code for automatic click button "conect" ,thanks before
water Posted March 30, 2013 Posted March 30, 2013 Welcome to AutoIt and the forum, Can you show what you've tried so far? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
dekids Posted March 30, 2013 Author Posted March 30, 2013 Run('"' & @ScriptDir & "\App\IX.exe" & '"' & " " & '"' -Connectonstartup , @ScriptDir, @SW_HIDE) Sleep(1100) App IX.exe running but button conect not work automatic
water Posted March 30, 2013 Posted March 30, 2013 When I google "IX.exe" I get a lot of hits for Malware etc. Can you describe what this application does? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
dekids Posted March 30, 2013 Author Posted March 30, 2013 (edited) there are examples of program name only.The app for direct internet conection and name app my rename. Edited March 30, 2013 by dekids
water Posted March 30, 2013 Posted March 30, 2013 Use the Window Info Tool that comes with AutoIt to get the ControlID of the button to click. Then use ControlClick to click the button. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
dekids Posted March 30, 2013 Author Posted March 30, 2013 (edited) Thanks water, i get this code works Run('"' & @ScriptDir & "\App\IX.exe" & '"' & " " & '"', @ScriptDir, @SW_HIDE) Sleep(1100) WinActivate("Direct") Sleep(2000) ControlClick("Direct", "Connect", "TButton1"); TButton1 obtained using 'AutoIt Window Info' tool Sleep(2000) But IX.exe app not hide Edited March 30, 2013 by dekids
Developers Jos Posted March 30, 2013 Developers Posted March 30, 2013 You do not need the Winctivate(). Are you sure the name is "connet" and not "connect" ? Show the information you retrieved from the Info tool. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
FireFox Posted March 30, 2013 Posted March 30, 2013 (edited) Has anyone understood what he said? Edit: ok he deleted his post. Edited March 30, 2013 by FireFox
dekids Posted March 31, 2013 Author Posted March 31, 2013 (edited) sorry my speak english is bad, I want application after run, automatically application hidden from the taskbar after runing ControlClick("Direct", "Connect", "TButton1"),how get code? Run('"' & @ScriptDir & "\App\IX.exe" & '"' & " " & '"', @ScriptDir, @SW_HIDE) Sleep(1100) ControlClick("Direct", "Connect", "TButton1") Sleep(2000) Edited March 31, 2013 by dekids
Developers Jos Posted March 31, 2013 Developers Posted March 31, 2013 sorry my speak english is bad,I want application after run, automatically application hidden from the taskbar after runing ControlClick("Direct", "Connect", "TButton1"),how get code?As said, if you want help you have to show us the exact details..... else you are on your own. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
water Posted March 31, 2013 Posted March 31, 2013 You need to do some debugging! What is the return value of Run? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
somdcomputerguy Posted March 31, 2013 Posted March 31, 2013 (edited) I want application after run, automatically application hidden from the taskbar after runing ControlClick("Direct", "Connect", "TButton1"),how get code?Use WinSetState after the ControlClick. Edited March 31, 2013 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
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