Jump to content

Recommended Posts

Posted

Hi All,

Im kinda new to Autoit and would just like to ask for your guys' help/opinion. Im currently trying to automate an installation package that doesn't have a silent install option and i want the installation process (Installation Mouse Clicks) to be running on the background without activating any window so that users will not disrupt the installation process. Am I missing anything wrong?

Here's my code:

Local $hWnd = ProcessWait("CleanWipe.exe")          
Sleep(100)

ControlClick($hWnd, "",12324, "left",1,327,328)            ; Click on the "Next" button
Sleep(100)

ControlClick($hWnd, "", 1018, "left",1,14,286)            ; Click on the "Accept" checkbox
Sleep(100)

ControlClick($hWnd, "", 12324, "left",1,327,328)            ; Click on the "Next" button
Sleep(100)

ControlClick($hWnd, "", 1005, "left",1,22,82)            ; Click on the "Client Software" checkbox
Sleep(100)

ControlClick($hWnd, "", 12324, "left", 1, 327,328)            ; Click on the "Next" button
Sleep(100)

ControlClick($hWnd, "", 1007, "left", 1, 22,82 )            ; Click on the "Do not prompt for reboot" button
Sleep(100)

ControlClick($hWnd, "", 12324, "left",1, 327, 328)            ; Click on the last "Next" button (which starts the cleanwipe)
Sleep(3000)                                                         ; Wait for process to finish


Exit
 

Posted (edited)

Process wait returns a PID not a win Handle.  I have done it recently with an other application.  Use my block input in my signature, find the handle of the pid, make the window totally transparent, run your script, Unblock input...

Here I found the reference :

 

 

Edited by Nine

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...