Jump to content

Recommended Posts

Posted

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)

Posted

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:

  Reveal hidden contents

 

Posted

  On 8/24/2010 at 4:59 PM, 'water said:

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

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:

  Reveal hidden contents

 

Posted

  On 8/26/2010 at 3:30 PM, 'water said:

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?

Posted

  On 8/27/2010 at 11:20 PM, 'aamerraza2003 said:

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:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...