mazin Posted September 2, 2004 Author Posted September 2, 2004 Never mind.A little advice: if you deal with scripts too much, use Scintilla Text Editor. It's free. It gets the lines numbered for you.
Pay_Up_PaL Posted November 21, 2004 Posted November 21, 2004 @ Mazinyour js script works fine with the new ver of winamp, 5.06, justtried it....... thanks for your handy workPuP
kellerza Posted December 22, 2004 Posted December 22, 2004 NO MORE SLEEP!This kills winamp instantly, just add to the batch file where you currenty have the sleep command, no worrys about pc speed etc...taskwait "Winamp Setup "taskkill.exe /f /im winamp.exeI got taskwait from http://www.darkphoton.com/darkstar/W32Utils/This can be a nice alternative to start /wait
Major Posted February 5, 2005 Posted February 5, 2005 Hi Men, I have read the post, is a great work.i have seen that amazin has updated the js script for winamp 5.04, and i decided to update mine for winamp 2.91, i did few changes. but the problem when i execute it, in the second execution, it tells me error in the line 10: i search the line 10 and i see that is wright.i have the files .js associated to the wscript.exe, also i has sleep.exe in the folder system32.Here is my RunOnceEx.cmd cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing application" /fREG ADD %KEY%\002 /VE /D "Winamp 2.91" /fREG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\winamp.js"exitand my winamp.jsvar WshShell = WScript.CreateObject ("WScript.Shell");var path = WScript.ScriptFullName;//getting the path to this scriptvar CDROM = path.substring(0,2);//extracting (DriveLetter:) from the pathWshShell.RUN (CDROM + "\\Install\\winamp291_full.exe");//running exeWScript.Sleep(3000);//time needed by installer to extract its filesWshShell.AppActivate("Winamp Setup");//name of setup screenWScript.Sleep(500);//time to hold setup screenWshShell.SendKeys ("{ENTER}");//hitting Agree buttonWScript.Sleep(500);WshShell.SendKeys ("{TAB3}");//moving tabstop to the features paneWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Winamp AgentWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Winamp AgentWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing Winamp LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing Audio File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Video File SupportWScript.Sleep(500);WshShell.SendKeys ("%{RIGHT}");//expanding Video File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing Nullsoft VideoWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys ("{DOWN2}");//bypassing 2 featuresWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Put AOL Music Icons on DesktopWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Put AOL Music Icons on DesktopWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(5000);WshShell.SendKeys ("{TAB 2}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN 2}");//setting Internet Connection to Not connected...WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{UP}");//highlighting Desktop IconWScript.Sleep(500);WshShell.SendKeys (" ");//deselect "Add desktop icon"WScript.Sleep(500);WshShell.SendKeys ("{UP}");//highlighting "Add start menu iconsWScript.Sleep(500);WshShell.SendKeys (" ");//deselect "Add start menu icons"WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(2000);WshShell.SendKeys ("%{F4}");var MySys = WshShell.Environment("process");//needed to expand ProgramFiles varvar FSO = WScript.CreateObject("Scripting.FileSystemObject");//needed for CopyFileFSO.CopyFile((CDROM + "\\Install\\Winamp\\winamp.ini") , (MySys("ProgramFiles") + "\\Winamp\\"));//copying winamp.iniany suggestions please
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