Jump to content
Sign in to follow this  
fikri1979

How to Automation click "Start" program

Recommended Posts

fikri1979

hello...

how to  run program and click "start" button autmatically?,post-81604-0-72859300-1376991377_thumb.j download

i'v tried with this script but not start automatically...how to fix it?

Run("C:\Documents and Settings\mac os\My Documents\Downloads\15 Agustus\PW-FIP.exe")
WinWaitActive("PW.sederhana", "Start")

Share this post


Link to post
Share on other sites
FireFox

ControlClick.


 

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
fikri1979

i have try using this infopost-81604-0-62682900-1376993670_thumb.j

and using this script but can not run automatically start,  how to correct it?

Run("C:\Documents and Settings\mac os\My Documents\Downloads\15 Agustus\PW-FIP.exe")
WinWaitActive("PW.sederhana")
ControlClick("PW.sederhana", "Start", 135498)

Share this post


Link to post
Share on other sites
Unc3nZureD

Try to replace your ControlClick with this one:

ControlClick("PW.sederhana", "", "[NAME:button1]")
  • Like 1

Share this post


Link to post
Share on other sites
FireFox

It's "[iD:135498]".

Btw, don't use the "text" parameter (pretty useless IMO).


 

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
dragan

It's "[iD:135498]".

Btw, don't use the "text" parameter (pretty useless IMO).

Correct me if I'm wrong, but according to help file, both should be viable. This:

ControlClick("My Window", "", "[ID:254]")

...should be the same as:

ControlClick("My Window", "", 254)

Share this post


Link to post
Share on other sites
FireFox

Indeed. Only the "text" parameter was wrong.


 

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
fikri1979

It's "[iD:135498]".

Btw, don't use the "text" parameter (pretty useless IMO).

 

i've to tried to another Notebook..can't automatically "start" too..

when i use AU3info severaltime, i get many different ID..like this picture post-81604-0-61358100-1377054894_thumb.j

why it can be so?

Share this post


Link to post
Share on other sites
fikri1979

 

Correct me if I'm wrong, but according to help file, both should be viable. This:

ControlClick("My Window", "", "[ID:254]")

...should be the same as:

ControlClick("My Window", "", 254)

i've tried with this scrip n work

Run("E:\MASTER\MODEM\Pw Bebas2.exe")        ;membuka program bernawam Pw Bebas2.exe dari direktori E-MASTER-MODEM
WinWaitActive("XL Bebas. PW")                          ;menunggu tampilan program pw bebas2.exe yg berjudul XL Bebas
ControlClick("XL Bebas. PW", "", "Start")              ;setelah window XL Bebas.PW terbuka maka otomatis klik "Start"

Share this post


Link to post
Share on other sites
fikri1979

how to run it program then klik start and minimize automatically ?

Share this post


Link to post
Share on other sites
FireFox

Please wait at least 24h before bumping.

Use the control ID if nothing else work, because it can change on new program instance.

Go to the "Control" tab of the info tool, you should have a CLASSNN with an instance.

More infos in the help file or the forum.

Br, 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

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  

×