Cool Vbs scripts

Cool Vbs scripts

Epic
  20% (3)
Great
  20% (3)
Cool
  20% (3)
Works
  0% (0)
Awesome
  0% (0)
Random
  0% (0)
Doesnt work
  0% (0)
Fail
  20% (3)
Boring
  6% (1)
Epic fail
  13% (2)

Total Votes: 15

Author Message
CØLLØSUS

  • Total Posts : 21
  • Scores: 0
  • Reward points : 0
  • Joined: 1/3/2011
  • Status: offline
Cool Vbs scripts Thursday, January 06, 2011 8:54 PM (permalink)
0
This is my first Post. Here is a Vbs Script Text spammer and Some other Scripts, Hope they work :s
=========================================================
 
Msgbox "Hey im a Script"
Set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.Run ("Script.vbs")
 
THIS ONLY WORKS IF YOU NAME THIS SCRIPT, SCRIPT.VBS!!
=========================================================
LET YOUR COMPUTER TALK!!!!!!!!!!!
You can change the StrText,
 
Do
StrText=("I know a song that gets on everybodys nerves everybodys nerves everybodys nerves")
strText2=("I know a song that gets on everybodys nerves and this is how it goes")
set ObjVoice = CreateObject("SAPI.SpVoice")
ObjVoice.Speak StrText
ObjVoice.Speak StrText2
Loop
 
=========================================================
Change the Title of your internet browser
 
Shl.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
\Main\Start Page",
www.google.nl
=========================================================
System beep!
 
Set oWS = WScript.CreateObject("WScript.Shell")
oWS.Run "%comspec% /c echo " & Chr(07), 0, True
 
===========================================================
A System beep that Doesnt stop
 
do
Set oWS = WScript.CreateObject("WScript.Shell")
oWS.Run "%comspec% /c echo " & Chr(07), 0, True
loop
==========================================================
A Simple Message box
 
Msgbox "Yo i am a script"
 
==========================================================
A Simple message box that doesnt stop
Do
Msgbox "yo i am a script"
Loop
=========================================================
A Random vbs script
 
Dim oWMP
Dim colCDROMs, i
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
oWMP.close
Set colCDROMs = Nothing
Set oWMP = Nothing
 
==========================================================
a Random Vbs script that doesnt stop
 
Do
Dim oWMP
Dim colCDROMs, i
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
oWMP.close
Set colCDROMs = Nothing
Set oWMP = Nothing
Loop
 
===========================================================
This script will change someone's Msn name
 
Public WithEvents msn As MessengerAPI.Messenger
Private Sub Form_Load()
Set msn = New MessengerAPI.Messenger
End Sub
Private Sub Timer1_Timer()
msn.OptionsPages 0, MOPT_GENERAL_PAGE
Pause 0.5
SendKeys " Hier plaats je je tekst"
Pause 0.5
SendKeys "{ENTER}"
SendKeys "{ENTER}"
Me.Show
End Sub
Sub Pause(interval)
Current = Timer
Do While Timer - Current < Val(interval)
DoEvents
Loop
End Sub
 
=========================================================
An Inputbox
 
A=Inputbox ("What's your haircolor")
msgbox "Looks cool"+a
==========================================================
a Password
 
a=inputbox("What's the Password:")
if a="LOL" then
msgbox"Logged in!"
else
msgbox"Invalid password!"
end if
===========================================================
A Password that wont close till you Enter the Right password
You can also change the password
 
 
a=inputbox("Password:")
if a="LOL" then
msgbox"logged in!"
else
msgbox"Wrong password!"
Set WshShell = WScript.CreateObject ("WScript.Shell")
WshShell.Run ("Yourscript.vbs")
end if
===========================================================
Text spammer, To annoy som1 with
 
 
set shell = createobject ("wscript.shell")

strtext = inputbox ("Write down your message you like to spam")
strtimes = inputbox ("How many times do you like to spam?")
strspeed = inputbox ("How fast do you like to spam? (1000 = one per sec, 100 = 10 per sec etc)")
strtimeneed = inputbox ("How many SECONDS do you need to get to your victems input box?")

If not isnumeric (strtimes & strspeed & strtimeneed) then
msgbox "You entered something else then a number on Times, Speed and/or Time need. shutting down"
wscript.quit
End If
strtimeneed2 = strtimeneed * 1000
do
msgbox "You have " & strtimeneed & " seconds to get to your input area where you are going to spam."
wscript.sleep strtimeneed2
shell.sendkeys ("Spambot activated" & "{enter}")
for i=0 to strtimes
shell.sendkeys (strtext & "{enter}")
wscript.sleep strspeed
Next
shell.sendkeys ("Spambot deactivated" & "{enter}")
wscript.sleep strspeed * strtimes / 10
returnvalue=MsgBox ("Want to spam again with the same info?",36)
If returnvalue=6 Then
Msgbox "Ok Spambot will activate again"
End If
If returnvalue=7 Then
msgbox "Shutting down"
wscript.quit
End IF
loop
============================================================
 
 
#1
    ebgreen

    • Total Posts : 8219
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:Cool Vbs scripts Friday, January 07, 2011 3:15 AM (permalink)
    0
    The post a script section is generally intended to showcase the right way to do things. Please at the least start following best practices with regard to variable naming and indentation.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      ehvbs

      • Total Posts : 3320
      • Scores: 112
      • Reward points : 0
      • Joined: 6/22/2005
      • Location: Germany
      • Status: offline
      Re:Cool Vbs scripts Friday, January 07, 2011 7:56 AM (permalink)
      0
      I second that. Programming is about solving problems, not annoying people.
       
      #3
        Brandon Flyte

        • Total Posts : 3
        • Scores: 0
        • Reward points : 0
        • Joined: 1/10/2011
        • Status: offline
        Re:Cool Vbs scripts Monday, January 10, 2011 10:41 PM (permalink)
        0
        great scripts
         
        #4
          ZooBeast

          • Total Posts : 8
          • Scores: 0
          • Reward points : 0
          • Joined: 9/17/2009
          • Status: offline
          Re:Cool Vbs scripts Friday, February 04, 2011 6:09 AM (permalink)
          0
          CØLLØSUS said
          THIS ONLY WORKS IF YOU NAME THIS SCRIPT, SCRIPT.VBS!!
          You Shouldn't HardCode The Script Name Into Your Code Use
          WScript.ScriptName
          or
          WScript.ScriptFullName
           
           
          #5

            Online Bookmarks Sharing: Share/Bookmark

            Jump to:

            Current active users

            There are 0 members and 1 guests.

            Icon Legend and Permission

            • New Messages
            • No New Messages
            • Hot Topic w/ New Messages
            • Hot Topic w/o New Messages
            • Locked w/ New Messages
            • Locked w/o New Messages
            • Read Message
            • Post New Thread
            • Reply to message
            • Post New Poll
            • Submit Vote
            • Post reward post
            • Delete my own posts
            • Delete my own threads
            • Rate post

            2000-2012 ASPPlayground.NET Forum Version 3.9