dakota19 Posted February 15, 2006 Share Posted February 15, 2006 (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\newsleecherit just freezes up and i have to ctrl del to get it going againthis 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 5WinWaitActive("Installing NewsLeecher", "Select suitable options.")ControlClick("Installing NewsLeecher", "Select suitable options.", "Button12")Send("{ENTER}")Exit Edited February 15, 2006 by dakota19 Link to comment Share on other sites More sharing options...
MHz Posted February 16, 2006 Share Posted February 16, 2006 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 Link to comment Share on other sites More sharing options...
dakota19 Posted February 16, 2006 Author Share Posted February 16, 2006 (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 February 16, 2006 by dakota19 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now