Sign in to follow this  
Followers 0
dekids

Click button external app

13 posts in this topic

i have application exe with one button ( button name: connect) ,How code for automatic click button "conect" ,thanks before

Share this post


Link to post
Share on other sites

Welcome to AutoIt and the forum,

Can you show what you've tried so far?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Run('"' & @ScriptDir & "\App\IX.exe" & '"' & " " & '"' -Connectonstartup , @ScriptDir, @SW_HIDE)
Sleep(1100)
App IX.exe running but button conect not work automatic

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

there are examples of program name only.The app for direct internet conection and name app my rename.

Edited by dekids

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by dekids

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Has anyone understood what he said?

Edit: ok he deleted his post.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 by dekids

Share this post


Link to post
Share on other sites

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.

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You need to do some debugging! What is the return value of Run?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#13 ·  Posted (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 by somdcomputerguy

- 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

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