Set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.Run (".\NBR6302nld.exe")
WScript.Sleep 5000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 500
WshShell.SendKeys "{UP}"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Quit
VBS Scripts For all the programs you need :D
#41
Posted 18 February 2004 - 11:46 AM
#42
Posted 08 June 2004 - 09:57 PM
but i cant get it to run.
script for Intellitype v5.0
Set WshShell = WScript.CreateObject ("WScript.Shell")
WScript.Sleep 3000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{n}"
WScript.Sleep 1000
WshShell.SendKeys "{n}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{=}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "{M}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{-}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 20000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{-}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
(this makes country as new zealand and selects multimedia keyboard)
i suggest u run it once and change those two so it installs for ur contry and keyboard.
but my real problem is i can't get it to run from my auto_install.cmd
ECHO.
ECHO Installing Intellitype
ECHO Please wait...
"%systemdrive%\Install\Applications\Intellitype\ITP5_0Eng\keyboard.vbs"
start /wait "%systemdrive%\Install\Applications\Intellitype\ITP5_0Eng\setup.exe"
there is the code. is my problem the start /wait or can u not run *.vbs from command prompt.
thanks
Mental Industries
#43
Posted 08 June 2004 - 10:00 PM
Set WshShell = WScript.CreateObject ("WScript.Shell")
WScript.Sleep 3000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{n}"
WScript.Sleep 1000
WshShell.SendKeys "{n}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{=}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{w}"
WScript.Sleep 1000
WshShell.SendKeys "{w}"
WScript.Sleep 1000
WshShell.SendKeys "{w}"
WScript.Sleep 1000
WshShell.SendKeys "{w}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{-}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 30000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{-}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.SendKeys "{TAB}"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
again i live in New Zealand so change teh two "n" to where u live and i make a wheelmouse optical so again change the four "w" so it highlights what u have.
run it for ur self once taking note on those to pages of your keystrokes.
but like with my keyboard scipt can't get it to run from the command prompt.
But they do both work when run in windows!!!
Thanks
Mental Industries
#44
Posted 05 July 2004 - 07:58 AM
my little script looks like that:
- open zonealarm.exe
- send 8 times TAB
- and then send 2 times RIGHT <-- but it didn't do this step
- send r
- send path for xml file
- send 2 times ENTER
please help me, i'm going to be crazy...
thx!!
erther
#45
Posted 27 July 2004 - 11:34 AM
scripts for >>>
tune up utilities 2004
Set WshShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
WshShell.Run ("C:\tu\setup.exe")
WScript.Sleep 7000
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "a"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "NAME"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "Company"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "m"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 40000
WshShell.SendKeys "f"
WScript.Sleep 200
Wscript.Quit
agnitum latest
Set WshShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
WshShell.Run ("C:\ao\OUTPOSTPROINSTALL.EXE")
WScript.Sleep 12000
WshShell.SendKeys "n"
WScript.Sleep 2000
WshShell.SendKeys "{TAB 2}"
WScript.Sleep 500
WshShell.SendKeys "{UP}"
WScript.Sleep 500
WshShell.SendKeys "n"
WScript.Sleep 2000
WshShell.SendKeys "n"
WScript.Sleep 500
WshShell.SendKeys "n"
WScript.Sleep 500
WshShell.SendKeys "n"
WScript.Sleep 20000
WshShell.SendKeys "n"
WScript.Sleep 500
WshShell.SendKeys "{TAB 4}"
WScript.Sleep 500
WshShell.SendKeys " "
WScript.Sleep 500
WshShell.SendKeys "n"
WScript.Sleep 500
WshShell.SendKeys "{TAB 4}"
WScript.Sleep 500
WshShell.SendKeys " "
WScript.Sleep 500
WshShell.SendKeys "n"
WScript.Sleep 500
WshShell.SendKeys "f"
WScript.Sleep 500
WshShell.SendKeys "{TAB}"
WScript.Sleep 500
WshShell.SendKeys "{ENTER}"
WScript.Sleep 500
Wscript.Quit
winamp 5.03C
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("C:\winamp\winamp.exe")
WScript.Sleep 7000
WshShell.SendKeys "%a"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{DOWN 6}"
WScript.Sleep 200
WshShell.SendKeys "%n"
WScript.Sleep 200
WshShell.SendKeys "%n"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "%n"
WScript.Sleep 200
WshShell.SendKeys "%n"
WScript.Sleep 200
WshShell.SendKeys "i"
WScript.Sleep 27000
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{ENTER}"
WScript.Sleep 200
WshShell.Run ("C:\winamp\pskill.exe winamp.exe")
WScript.Sleep 200
Wscript.Quit
make sure pskill is in the same directory
spy sweeper 3
Set WshShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
WshShell.Run ("C:\ss\ss.exe")
WScript.Sleep 7000
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "XXXXXXXXXXXXXXXXX"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "%a"
WScript.Sleep 200
WshShell.SendKeys "%n"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "i"
WScript.Sleep 20000
WshShell.SendKeys "{ }"
WScript.Sleep 200
WshShell.SendKeys "f"
WScript.Sleep 200
Wscript.Quit
objectdock
Set WshShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
WshShell.Run ("C:\od\ObjectDock.exe")
WScript.Sleep 7000
WshShell.SendKeys "XXX-XXX-XXX-XXX-XX"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WScript.Sleep 200
WshShell.SendKeys "{ENTER}"
WScript.Sleep 200
WshShell.SendKeys "{TAB 2}"
WScript.Sleep 200
WshShell.SendKeys "{UP}"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 200
WshShell.SendKeys "n"
WScript.Sleep 25000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 200
Wscript.Quit
#46
Posted 27 July 2004 - 11:49 PM
make sure pskill is in the same folder as winamp
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("C:\winamp\winamp.exe")
WScript.Sleep 7000
WshShell.SendKeys "%a"
WScript.Sleep 500
WshShell.SendKeys "{TAB}"
WScript.Sleep 500
WshShell.SendKeys "{DOWN}"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{DOWN 6}"
WScript.Sleep 1000
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "%n"
WScript.Sleep 500
WshShell.SendKeys "%n"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{DOWN}"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{DOWN}"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{DOWN}"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{DOWN}"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{DOWN}"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{DOWN}"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "%n"
WScript.Sleep 500
WshShell.SendKeys "%n"
WScript.Sleep 500
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "i"
WScript.Sleep 30000
WshShell.SendKeys "{TAB 7}"
WScript.Sleep 1000
WshShell.SendKeys "{ }"
WScript.Sleep 500
WshShell.SendKeys "{TAB 2}"
WScript.Sleep 500
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1000
WshShell.Run ("C:\winamp\pskill.exe winamp.exe")
WScript.Sleep 500
Wscript.Quit
#47
Posted 04 August 2004 - 05:16 PM
Example: ("%systemdrive%\Install\MyApp\setup.exe")
What if MyApp is on a CD and I want to install it from there directly?
I assume it's here: %CDROM%\Install\MyApp\setup.exe
HUH?!
#48
Posted 04 August 2004 - 06:13 PM
#51
Posted 05 August 2004 - 04:01 AM
Quote
Here's an explanation:
It won't work from svcpack.inf or if you're running it from RunOnceEX/INF method. That is because, the relative directories will work only in context of being run from that folder, whereas the above methods run in a more direct level. It runs fine (atleast for me) if you do the same from either cmdlines/GUIrunonce using .CMDs/XPlode.
#52
Posted 05 August 2004 - 06:32 AM
prathapml, on Aug 5 2004, 01:01 PM, said:
hahaha
In fact, I invented an idea to run EXEs via JS or VBS from %CDROM% directly, under any method, RunOnceEX ... CMD ... etc!
It's completely MAZIN®'s script.
I posted my question just to see if there's an official script to do it.
However, I'll post it in Winamp thread when I prepare the text.
Thanks, prathapml.
#53
Posted 15 August 2004 - 10:35 AM
Set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.Run (".\FLY2000TV238B3.exe /S")
WScript.Sleep 100
WshShell.SendKeys "{ENTER}"
WScript.Sleep 1500
WshShell.SendKeys "{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "N"
WScript.Quit
This will install Fly 2000 TV 2.38 beta 3 quietly
#54
Posted 13 November 2004 - 07:52 PM
Here's what I want to do:
WshShell.run "C:\Program Files\My Program\run this file.exe"
(I know the 8.3 file name will run this, but is there a way to use the long file names?)
#55
Posted 14 November 2004 - 03:31 AM
SibTiger, on Nov 13 2004, 08:52 PM, said:
Here's what I want to do:
WshShell.run "C:\Program Files\My Program\run this file.exe"
(I know the 8.3 file name will run this, but is there a way to use the long file names?)
Add quotes = Chr(34)
Set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.Run Chr(34) & "C:\Program Files\My Program\run this file.exe" & Chr(34)
#57
Posted 15 November 2004 - 02:58 AM
need it for an install where files are extracted out of a cab. I could use the sleep command but it is a bit primitive and it will have to be set way over the extraction time just in case it is used on a slower computer. So the best is to wait untill everything is extracted and see if the extraction windows is still open.
also
what is the time of the sleep function
say for:
WScript.Sleep(200);
#58
Posted 15 November 2004 - 03:53 AM
That how you make it sleep.
1000 = 1 second
#59
Posted 22 November 2004 - 11:20 PM
Can someone with some coding experience post a sample? Let's suppose this scenario:
- Run setup.exe to install program: "MyProg"
- Window pops up with title: "MyProg Installation". Need ALT-N to continue.
- Window pops up with title: "MyProg File Associations". Need ALT-N to continue.
- Program installs. Final window title: "MyProg install complete" Need ALT-C to close.
#60
Posted 23 November 2004 - 05:35 AM
You have to make sure that you have the exact title for the windows you are waiting for. Try AutoIt to get this info.
set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.RUN ("setup.exe")
Do until WshShell.AppActivate ("MyProg Installation")
WScript.Sleep 2000
Loop
WScript.Sleep 1000
WshShell.SendKeys "%{n}"
Do until WshShell.AppActivate ("MyProg File Associations")
WScript.Sleep 2000
Loop
WScript.Sleep 1000
WshShell.SendKeys "%{n}"
Do until WshShell.AppActivate ("MyProg install complete")
WScript.Sleep 2000
Loop
WScript.Sleep 1000
WshShell.SendKeys "%{c}"
- ← My Quest for the Perfect Unattended CD/DVD
- Unattended Windows 2000/XP/2003
- silent install in AI Snapshot →



Help


Back to top









