Sign in to follow this  
Followers 0
aamerraza2003

how to wait a process to finish before next recorded click

6 posts in this topic

hi

i had recorded a installation of Foobar

my first question is .i want to wait before last two recorded clicks as it runs correctly on slow windows i dont want to use sleep().

second question. how can i pack exe file of script and app. file that i see one file and when i click, it install foobar silently

thanku

here is the script

Opt("WinWaitDelay",100)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run('foobar2000_v1.0.2.1.exe')

_WinWaitActivate("foobar2000 v1.0.2.1 Setup","")

MouseClick("left",379,361,1)

_WinWaitActivate("foobar2000 v1.0.2.1 Setup ","")

MouseClick("left",379,361,1)

_WinWaitActivate("foobar2000 v1.0.2.1 Setup","")

MouseClick("left",379,361,1)

_WinWaitActivate("foobar2000 v1.0.2.1 Setup ","")

MouseClick("left",379,361,1)

MouseClick("left",379,361,1)

MouseClick("left",379,361,1)

MouseClick("left",190,180,1)

MouseClick("left",373,368,1)

#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

Share this post


Link to post
Share on other sites



To wait for a process to end use function "ProcessWaitClose".

I would suggest to replace the "MouseClick" calls with "Controlclick" as this is independant of the GUI position.


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

To wait for a process to end use function "ProcessWaitClose".

I would suggest to replace the "MouseClick" calls with "Controlclick" as this is independant of the GUI position.

thanks

it works

but controlclick is still troubling plz give me syntax for the last mouseclick where i have to click on finish button

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

In short:

You need the Window title and the ControlId. To get the ControlId use AutoITs Window Info Tool.

Edited by water

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

In short:

You need the Window title and the ControlId. To get the ControlId use AutoITs Window Info Tool.

thanx dud

u r great

it works fine in all windows now :-)

plz help me to work with If .

if the program is not installed the program window shows only buttoN QUIT and APPLY,if program is installed it shows UNINSTALL , QUIT , APPLY in same sequence

i want to check that if the program is allready installed then click on QUIT otherwirs APPLY(install),

PLZ show me how IF can do it or i have to add some thing else?

Share this post


Link to post
Share on other sites

thanx dud

u r great

it works fine in all windows now :-)

plz help me to work with If .

if the program is not installed the program window shows only buttoN QUIT and APPLY,if program is installed it shows UNINSTALL , QUIT , APPLY in same sequence

i want to check that if the program is allready installed then click on QUIT otherwirs APPLY(install),

PLZ show me how IF can do it or i have to add some thing else?

I can't check it at the moment (no PC with AutoIT available) but I would do the following. Get the position of the UNINSTALL control using function ControlGetPos. If @error = 1 then the control could not be found and you can do the installation.

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

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