Jump to content

Recommended Posts

Posted (edited)

i install newsleecher 3.2 with an autoitscript and now it freezes this is my install cmd

@cmdow @ /VIS

@start /wait %systemdrive%\newsleecher\install.exe

@sleep 15

@closewindow %systemdrive%\documents and settings\dakota\menu start\programma's\newsleecher

it just freezes up and i have to ctrl del to get it going again

this is the autoitscript:

Opt("TrayIconDebug", 1)

Opt("WinTitleMatchMode", 3)

Run("nl_setup.exe")

BlockInput(1)

WinWaitActive("Installing NewsLeecher", "Welcome to the NewsLeecher Installation!")

Send("{ENTER}")

WinWaitActive("Installing NewsLeecher", "License Agreement")

ControlClick("Installing NewsLeecher", "License Agreement", "Button3")

Send("{ENTER}")

WinWaitActive("Installing NewsLeecher", "Select a destination directory")

Send("{ENTER}")

;sleep 5

WinWaitActive("Installing NewsLeecher", "Select suitable options.")

ControlClick("Installing NewsLeecher", "Select suitable options.", "Button12")

Send("{ENTER}")

Exit

Edited by dakota19

Posted

I tried your AutoIt script once and it worked. Perhaps a window did not get focus or something for the stall to happen. I made up script that may work more reliably as active windows are not needed. This was tested with the latest 3.5 version of NewsLeecher. It seems like you may have full titles as default but this script should cater for either setting. It will promptly close the shortcut group window that opens also. You will not need BlockInput() with this script.

Opt("WinTitleMatchMode", 2)

$pid = Run(@ScriptDir & "\nl_setup.exe")

WinWait("Installing NewsLeecher", "Welcome to the NewsLeecher Installation!")
ControlClick("Installing NewsLeecher", "Welcome to the NewsLeecher Installation!", "Button1")

WinWait("Installing NewsLeecher", "License Agreement")
ControlCommand("Installing NewsLeecher", "License Agreement", "Button3", "Check")
ControlClick("Installing NewsLeecher", "License Agreement", "Button4")

WinWait("Installing NewsLeecher", "Select a destination directory")
ControlClick("Installing NewsLeecher", "Select a destination directory", "Button8")

WinWait("Installing NewsLeecher", "Select suitable options")
ControlCommand("Installing NewsLeecher", "Select suitable options", "Button12", "Check")
ControlClick("Installing NewsLeecher", "Select suitable options", "Button15")
WinWaitClose("Installing NewsLeecher", "Select suitable options", 5)

ProcessWaitClose($pid)

WinWait("NewsLeecher", "", 5)
While WinExists("NewsLeecher")
WinClose("NewsLeecher")
Sleep(500)
WEnd

:)

Posted (edited)
I tried your AutoIt script once and it worked. Perhaps a window did not get focus or something for the stall to happen. I made up script that may work more reliably as active windows are not needed. This was tested with the latest 3.5 version of NewsLeecher. It seems like you may have full titles as default but this script should cater for either setting. It will promptly close the shortcut group window that opens also. You will not need BlockInput() with this script.

Opt("WinTitleMatchMode", 2)

$pid = Run(@ScriptDir & "\nl_setup.exe")

WinWait("Installing NewsLeecher", "Welcome to the NewsLeecher Installation!")
ControlClick("Installing NewsLeecher", "Welcome to the NewsLeecher Installation!", "Button1")

WinWait("Installing NewsLeecher", "License Agreement")
ControlCommand("Installing NewsLeecher", "License Agreement", "Button3", "Check")
ControlClick("Installing NewsLeecher", "License Agreement", "Button4")

WinWait("Installing NewsLeecher", "Select a destination directory")
ControlClick("Installing NewsLeecher", "Select a destination directory", "Button8")

WinWait("Installing NewsLeecher", "Select suitable options")
ControlCommand("Installing NewsLeecher", "Select suitable options", "Button12", "Check")
ControlClick("Installing NewsLeecher", "Select suitable options", "Button15")
WinWaitClose("Installing NewsLeecher", "Select suitable options", 5)

ProcessWaitClose($pid)

WinWait("NewsLeecher", "", 5)
While WinExists("NewsLeecher")
WinClose("NewsLeecher")
Sleep(500)
WEnd

:)

Thanks a lot it worked like charm now i shale try it in my cmd file later today but it looks wonderfull !!

and it works on my cmd also beatifeul again thanks

Edited by dakota19

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