|
Basic VBS Tutorial (Useful for trolling friends)
|
|
04-24-2012, 01:57 AM
|
|||
|
|||
|
Basic VBS Tutorial (Useful for trolling friends)
Hello,
Im going to show you some really basic VBS (Visual Basic Script) code. First of all, your gonna need notepad, so open that up. Now here is the code you can use: To show a popup you use: Code: msgbox"Your Text Here!!"Code: msgbox"this is the first message"Code: inputbox("your question?")You can assign a userinput to a variable Code: userinput = inputbox("whats ur input??")Code: name = inputbox("Whats your name?")This will work: "hello" +name +" welcome" Although this wont: "hello" +name " welcome" Now, the next pieces of code are just for fun, they dont need explanation: Code: Set oWS = WScript.CreateObject("WScript.Shell")Code: Dim oWMPCode: Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")and finally, an script youll always find useful : Code: doSave the code youve put into notepad as yourcodename.vbs (not .vbs.txt) Thats it, I hope youll troll a lot of friends(or enemies)(or teachers xD) |
|||
|
04-28-2012, 02:49 PM
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
Thanks very much. I will surely try this.
Do you know how I can restart a computer with it? Thanks Carstensz Pyramid Server and FreeVPS very much my VPS18.
|
|||
|
04-28-2012, 07:02 PM
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
I'm not sure if this still works on the new Windows versions but try it out:
Code: Set WSHShell = WScript.CreateObject("WScript.Shell") |
|||
|
04-28-2012, 07:46 PM
(This post was last modified: 04-28-2012 07:46 PM by Doraemon.)
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
it is similar with visual basic...
if you know how to code in visual basic, you should know this too |
|||
|
04-28-2012, 09:02 PM
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
this thread can damage friend computer ?
im scare to try it...
|
|||
|
04-28-2012, 09:54 PM
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
None of the scripts from above can damage your computer.
|
|||
|
04-28-2012, 11:05 PM
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
no i think is possible if this script can make our computer not started in normal.
|
|||
|
04-29-2012, 01:13 AM
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
They can't damage your computer, I repeat it a last time.
To stop your computer from booting normally someone must be so stupid to put the restart script into autostart.... |
|||
|
04-29-2012, 02:00 AM
(This post was last modified: 04-29-2012 02:07 AM by Matthew425.)
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
It won't make your pc not start. But for the msgbox, i believe its soppose to be msgbox("Text Here").
You can also customize the msgbox with styles, like msgbox("Hello",MsgBoxStyle.Exclamation) You can get the rest of the styles here: http://msdn.microsoft.com/en-us/library/...s.80).aspx |
|||
|
04-29-2012, 03:28 AM
|
|||
|
|||
|
RE: Basic VBS Tutorial (Useful for trolling friends)
interesting, can you make it a service so most people won't know how to stop it?
|
|||
|
« Next Oldest | Next Newest »
|
| User(s) browsing this thread: |
| 1 Guest(s) |







![[Image: logo.png]](http://doraemon.cat/cn/logo.png)

