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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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