Jump to content

Recommended Posts

Posted (edited)

Hello, I have problems with some autoit scripts. They work in normal OS, but they stop at certain points only during RunOnceEx setups. Do you know what could be the error? I've checked if it's due to focus lost, wrong keys or wrong windows names, but all those are correct.

Some reduced examples:

-------------------------------------

; launch program blocking focus

BlockInput(1)

Run("mailw")

; install path

WinWaitActive("Choose Destination Location")

Send("{ENTER}")

; start menu window close

WinWait("MailWasher")

If Not WinActive("MailWasher") Then WinActivate("MailWasher")

Send("{ALTDOWN}{F4}{ALTUP}")

; finish <---AUTOIT BLOCKS HERE

WinWait("Setup Complete")

If Not WinActive("Setup Complete") Then WinActivate("Setup Complete")

Send("{TAB}{ENTER}")

;resumes user input

BlockInput(0)

---------------------

; launch program blocking focus

BlockInput(1)

Run("codffds")

; license

WinWaitActive("ffdshow-20050703 ","License Agreement")

Send("{ENTER}")

; avisynth plugin path <---AUTOIT BLOCKS HERE

WinWaitActive("ffdshow-20050703","Avisynth plugins directory")

Send("{ENTER}")

; install path

WinWaitActive("ffdshow-20050703 ","Choose Install Location")

Send("{RIGHT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}")

Send("Codecs\")

Send("{TAB}{TAB}{TAB}{ENTER}")

; complete

WinWaitActive("ffdshow-20050703 ","Installation Complete")

Send("{ENTER}")

;resumes user input

BlockInput(0)

---------------------

Edited by phaolo

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