Sunday, 1 March 2015

Fun with Easy VBS!

A Beginners guide to fun, and easy to do visual basic script. VSB may seem hard to some, but in fact it is really easy. Windows can even run it without a compiler! If you know javascript, it should be really easy for you.

STEP 1: BASIC MESSAGE BOXES


Ok so lets go over the Basics.

Have you ever seen a message box like the one below,
you probaly have. These are used to alert users of whatever you want to say.

You can create your own by using the Function Msgbox

So the code to a message box that says hi would look like this,

Msgbox("hi")

Alternately you can make an unkillable message box by making a simple loop by using the Do, Loop commands.

Now that we covered message boxes, lets move to more advanced message boxes.
STEP 2: GAMES AND STUFF


If you ever wonder how to make text games than look no further. I might be wrong, but I believe that they used vbs. Now a lot of vb scripts use a compiler, but windows doesn't need one. Just type cscript before the file path, now if you know how to make bat files, then you can automate this process, but we wont get into that in this instructable.

Here is a little game i made

Option Explicit

Dim Answer

'types the question

Wscript.StdOut.Write "Nice Day Isin't it? "
answer = Wscript.StdIn.ReadLine

'if you type yes t

If answer="yes" Then
Wscript.echo ("I hope it stays this way")

'If you type no

ElseIf answer="no" Then

Wscript.echo ("I hope it gets better")

'anything else

Else

Wscript.Echo ("GoodDay to you")

'end

End If

now basically save this as .vbs and use the method before to run it.
STEP 3: THE AUTO TYPER


This code it to type something over and over again. I don't know how it is useful, but if you run it, you'll have to kill it in the task list

set shellobj = CreateObject("WScript.Shell")
shellobj.run "cmd"

do

shellobj.sendkeys "Y"
wscript.sleep 200
Shellobj.sendkeys "o "
wscript.sleep 200

loop

How to make an "SECRET" Folder on your computer

Here is an instructables on How to make an "SECRET" Folder on your computer. This is useful when you're using a computer that many other people use. e.g family and friends. With these steps, the file is invisible because we are not hiding it, we are just give it a transparent icon and a space at its name, but someone can select it if they know where it is in desktop or any folder.

STEP 1: THE FIRST STEP. PERIOD.

Create a new folder in your specified directory. I will be taking this on the Desktop.

Right Click -> New -> Folder, and a new folder will be created in that directory. Rename that folder.

Here's the trick--- you have to press Alt + 255. Keep holding 'Alt' while pressing those numbers. Holding the Alt and typing those numbers will name the folder as a space, pretty much giving it no name.

STEP 2: THE SECOND STEP. PERIOD.

Right Click the Unnamed folder, go to Properties, then to Customize, and then click Change Icon.Here is the trick, go to the middle and you should see some blank spaces. Those are transparent icons, select one of those then press OK -> Apply -> OK.

STEP 3: A TIP. PERIOD.

For it to work on your laptop, you need to keep holding down the Alt key. You will also need to hold the FN(function) key and type the numbers "255." These are over the letters k, i, i. Let go of all of the keys and hit enter. Holding the Alt and typing those numbers will name the folder as a space, pretty much giving it no name.

P.S.- Make sure num lock is 'on' if on laptops.

STEP 4: OH SNAP!

Enjoy your folder(s) while keeping them hidden...!

To show your hidden files/folder/icon, do the following:

Double click Computer icon, Click tools, then folder options.When the window pops up, click view on the top tab.Then look for the show hidden files and folder.And when you have found it, click on show hidden files and folderClick apply or ok.Voila! your file and folder appeared.This method works BETTER with the transparent icons.

How to freak out your friends (with their computer) [Tricks and Fun Volume 1]

In this instructable I will show you how to do stuff on anyone's computer and freak them out!

Note: Please read the instructions carefully before trying to attempt this. No harm can be caused by this .vbs file. If you use the instructions wrongly (i.e mistake in typing codes) i will not be held for anything.

The first instructable will show you how to make a message box that comes alot of times onto the screen.
What the message box says is up to you.

You will need about 4-9 minutes to do (one of these) so try to convince your friend to let you use the computer alone for a while, or, do this when they are at the washroom!

Now, lets continue with the Instructables!!

STEP 1:

STEP 2: STEP ONE: OPENING NOTEPAD AND OTHER INFORMATION [FAKE VIRUS FUN (1)]



Step One:

Open Notepad by going to start > run > type notepad > enter. or by start > all programs > accessories > Notepad.

Then, write this code

msgbox "Windows has encountered an serious error and cannot continue.",89, "ERROR"

IMPORTANT NOTE: You MUST put all of the code on one line and not like this (for example):

msgbox "Windows has encountered an serious
error and cannot continue.",89, "ERROR".

If you wish to write your own message, then just replace the Windows has encountered an serious error and cannot continue. with your message.
STEP 3: STEP TWO: THE CRITICAL (WELL, NOT SO REALLY...) PART!



Step Two:

First we Copy the file that we saved, then , we go to....

Start > All programs > Startup.

Once we see the folder "Startup" we double click it. Once you do that you will see the "Startup" folder.

[Continue to step 3, and don't close that folder!!!]
STEP 4: STEP 3: THE NOT SO HARD PART -COPY & PASTE-


Step 3:

you already copied the file into the Startup folder right? ok you did.

Now, copy the File again and paste it into the startup folder as many times as you like. After that,
anyone that opens that user will get those messages (as many times as you opened it) each time he/she turns on her computer.

STEP 5: THE RESULT!!!

The Result will be ALOT of messages making your friend think theirs a virus on his/her computer!

Pop up message trick

Hi everyone!
Here is a fun, funny, and easy way to annoy your friends and family members by (harmlessly) messing with their computers. This one is a simple batch file that makes a message box pop up that says anything you want. The trick: no matter how many times you click OK, the message will never go away! Have fun!

STEP 1: THE BATCH FILE


1: Open notepad (under Start > All Programs > Accesories > Notepad
Copy and paste these lines into Notepad:

@echo off
:top
msg * Insert your message here
goto top

Be sure to delete "insert your message here" and replace it with your own message!

STEP 2: SAVING THE FILE

Go to File and click Save As.

First look at "Save as File Type" near the bottom. It should say "Text Documents". Change it to "All Files".

Type the name of your file into the "File Name" box, and be sure to end it with ".bat" instead of ".txt"

Save it to your "My Documents" folder.

STEP 3: THE FUNNY PART

Now, if you click on the batch file (which should look like a box with a gear inside it) in your Documents folder, the message should pop up. It will only go away if you restart the computer.

To make it begin automatically when you (or someone else) logs in, copy the file from the Documents folder.

Go to "My Computer", then go to:
Local Disk > Documents and Settings > (Username of Person you want to annoy) > Start Menu > Programs > Startup.

Paste the batch file  into the Startup folder.

Now it will run whenever they log in, and the person will never be able to find it!