ok again this code "yes is parts of codes" i did do this all by hand.
if any of you have a problum with this please just back off.
al this does is popup your wordpad and wright some stuff the delet it.
then merlin pops up and says stuff the the wordpad again
its nuthing realy
no point to it but if you wanted to start vbs it will help teach you.
you have to save this in notepad as a .vbs
msgbox("Do you want to begin?"),3,("WARNING")
Set wshshell = wscript.CreateObject("WScript.Shell")
Wshshell.run "Wordpad"
wscript.sleep 1000
wshshell.sendkeys "D"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys "w"
wscript.sleep 100
wshshell.sendkeys "n"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "n"
wscript.sleep 100
wshshell.sendkeys "g"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "V"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "r"
wscript.sleep 100
wshshell.sendkeys "u"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "P"
wscript.sleep 100
wshshell.sendkeys "l"
wscript.sleep 100
wshshell.sendkeys "e"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys "e"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "W"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "t"
wscript.sleep 1000
wshshell.sendkeys "."
wscript.sleep 1000
wshshell.sendkeys "."
wscript.sleep 1000
wshshell.sendkeys "."
wscript.sleep 1000
wshshell.sendkeys "."
wscript.sleep 1000
wshshell.sendkeys "."
wscript.sleep 1000
wshshell.sendkeys " "
wscript.sleep 1000
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "D"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys "w"
wscript.sleep 100
wshshell.sendkeys "n"
wscript.sleep 100
wshshell.sendkeys "l"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "d"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "C"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys "m"
wscript.sleep 100
wshshell.sendkeys "p"
wscript.sleep 100
wshshell.sendkeys "l"
wscript.sleep 100
wshshell.sendkeys "e"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "t"
wscript.sleep 100
wshshell.sendkeys "."
wscript.sleep 1000
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 1000
wscript.sleep 1000
StrAgentName2 = "MERLIN"
StrAgentPath2 = "C:\Windows\Msagent\Chars\" & strAgentName2 & ".Acs"
Set objAgent2 = CreateObject("Agent.Control.2")
ObjAgent2.Connected = TRUE
ObjAgent2.Characters.Load strAgentName2, strAgentPath2
Set objPeter = objAgent2.Characters.Character(strAgentName2)
ObjPeter.MoveTo 400,550
ObjPeter.Show
ObjPeter.Play "GetAttention"
ObjPeter.Play "GetAttentionReturn"
objpeter.play "Wave"
ObjPeter.Speak("Hi I'm merlin, I'm here to take control of your computer")
Wscript.Sleep 2000
Wscript.Sleep 1000
objpeter.speak("First im going to take a nap.")
Wscript.Sleep 1000
objpeter.play "Idle3_1"
Wscript.Sleep 1000
Wscript.Sleep 1000
Wscript.Sleep 1000
objpeter.speak("never mind")
Wscript.Sleep 1000
Wscript.Sleep 1000
Wscript.Sleep 1000
objpeter.play "DoMagic2"
Wscript.Sleep 1000
Wscript.Sleep 1000
Wscript.Sleep 1000
Wscript.Sleep 1000
Wscript.Sleep 1000
objpeter.speak("Well it looks like im done here")
Wscript.Sleep 1000
Wscript.Sleep 1000
objpeter.hide
Do While objPeter.Visible = True
Loop
wscript.sleep 1000
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "T"
wscript.sleep 100
wshshell.sendkeys "h"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "V"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "r"
wscript.sleep 100
wshshell.sendkeys "u"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "c"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "l"
wscript.sleep 100
wshshell.sendkeys "l"
wscript.sleep 100
wshshell.sendkeys "e"
wscript.sleep 100
wshshell.sendkeys "d"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "Q"
wscript.sleep 100
wshshell.sendkeys "u"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "c"
wscript.sleep 100
wshshell.sendkeys "k"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "K"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "l"
wscript.sleep 100
wshshell.sendkeys "l"
wscript.sleep 100
wshshell.sendkeys "."
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 1000
wshshell.sendkeys "I"
wscript.sleep 100
wshshell.sendkeys "t"
wscript.sleep 100
wshshell.sendkeys "'"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "m"
wscript.sleep 100
wshshell.sendkeys "a"
wscript.sleep 100
wshshell.sendkeys "d"
wscript.sleep 100
wshshell.sendkeys "e"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "t"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "j"
wscript.sleep 100
wshshell.sendkeys "u"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys "t"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "p"
wscript.sleep 100
wshshell.sendkeys "i"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys "s"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "y"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys "u"
wscript.sleep 100
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys "f"
wscript.sleep 100
wshshell.sendkeys "f"
wscript.sleep 100
wshshell.sendkeys "."
wscript.sleep 1000
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
wscript.sleep 100
wshshell.sendkeys "{bs}"
Seems pointless... Just a basic... Type this... and you didn't even type downloading correctly... you did Downing... -.- really... Pretty much what it does is a 1000ms (1s) timer between each letter... then deletes it. to type the next thing... Really... Pointless... Reminds me of the endless cycle of Javascript Pop-ups... Pretty much anyone with "BASIC" knowledge could script this....
-.- VBS just seems like a weaker (not as portable) Javascript based language.
ok useless script not even pertaining to this but oh well im bored
<html>
<body>
<script type="text/vbscript">
document.write("I am bored lets go eat!")
</script>
</body>
</html>
an odd example given that it is doomed to not work outside of IE or any browser that includes a VBS interpreter. Firefox & Chrome don't, to name a couple :P document.write() is a method of the DOM (Document Object Model), an environment which, within a browser, is shared by both VBS and JavaScript. now, JavaScript IS supported by many of the popular browsers, so that's the script type we should prefer in these cases.
of course, it still serves as a introduction of sorts to the syntax of VBS, even if its use within a webpage is anything but commonplace.
i'm pleased to see you didn't post it as a new snippet though ;) perhaps Tweek could take a page out of your book
http://www.mactech.com/articles/mactech/Vol.15/15.09/ScriptingLanguages/index.html
Volume Number: 15 (1999)
Issue Number: 9
Column Tag: Systems
Scripting Languages
by Rich Morin and Vicki Brown
A Cross-OS Perspective
Background
Ask most computer users (or programmers) about scripting languages and you'll get a wide variety of answers. Most users, however, will give you examples of languages they "know" are scripting languages - AppleScript, the Unix shells, Visual Basic, JavaScript, Perl, Tcl/Tk...
Ask about system programming languages and you'll be given a different set of examples. This time C, C++, Java, and/or Pascal will be mentioned. Everyone knows which languages fit which categories, but not everyone can explain why. And what about languages such as Perl, which seem to have elements of both?
imo you should explain what the snippit does for people who are browsing and are interested, perhaphs explain the purpose of it ._.
the problem is he has no more idea about this snippet than the average user. he's found a few VBS examples online, ran them, observed that if he copies and pastes various parts then he can add on to and reproduce existing behaviour (something that any primate on this planet is capable of doing :P), and crudely pieced these snippets together.
ok, this shows that he's perhaps trying to learn the language, which is admirable. but we do not need to see all points of his learning curve, especially not these snippets that he himself cannot adequately explain and into which he's put little to no effort.
wscript.sleep 1000 is a kinda time limit to when you want the person to do something.
what you meant to say is "pause the currently executing script (thread) for 1000ms (1 second)". this is what happens when you don't understand something, you spew nonsense and it leaves those users who were actually interested in your snippet uninformed, or worse, misinformed.