Sign in to follow this  
Followers 0
boyemillar

Wait for Button (Possible...?)

2 posts in this topic

Run("\\Program\Setup.exe")

WinActivate("ProgramName - InstallShield Wizard")

WinWaitActive("ProgramName - InstallShield Wizard")

Sleep(5000)

ControlClick("ProgramName - InstallShield Wizard", "", "&Next >", "Left", 1)

Sleep(1000)

ControlClick("ProgramName - InstallShield Wizard", "", "&Next >", "Left", 1)

Sleep(1000)

ControlClick("ProgramName - InstallShield Wizard", "", "&Install", "Left", 1)

Sleep(80000)

ControlClick("ProgramName - InstallShield Wizard", "", "&Finish", "Left", 1)

In the script above i have had to set sleep() statements to wait for the steps in the install.

Is there any other way to do this like wait for a button to become active

Share this post


Link to post
Share on other sites



ControlFocus("Add Hardware Wizard", "",  "[CLASS:Button; INSTANCE:1]")
$a = ControlGetFocus("Add Hardware Wizard")
If $a <> "" Then
MsgBox(0,"","i see it")
Else
MsgBox(0,"","i dont see it")
EndIf

probably something like this

itl try to see if button INSTANCE:1 can b focused or not


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

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