Monday, 16 December 2013

Make the Microsoft office assistant popup and say something

1) This prank will only work if you have Office installed. In spite of making your PC says it’s more attractive way.

On Error Resume Next

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 700,300
objPeter.Show

objPeter.Play “GetAttention”
objPeter.Play “GetAttentionReturn”

objPeter.Speak(”your message here”)
Wscript.Sleep 1000
Set objAction= objPeter.Hide
Do While objPeter.Visible = True
Wscript.Sleep 250
Loop

Error message
This prank will show a error message on screen

lol = msgbox(”your message here”)










2) A Scribbling Notepad
This is a scribbling Notepad, once you start it you feel like someone (ROBOT) is typing a message for you.

Set wshshell = wscript.CreateObject(”WScript.Shell”)
Wshshell.run “Notepad”
wscript.sleep 400
wshshell.sendkeys “H”
wscript.sleep 100
wshshell.sendkeys “i”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 200
wshshell.sendkeys “I”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “m”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 100
wshshell.sendkeys “R”
wscript.sleep 100
wshshell.sendkeys “i”
wscript.sleep 100
wshshell.sendkeys “t”
wscript.sleep 100
wshshell.sendkeys “e”
wscript.sleep 100
wshshell.sendkeys “s”
wscript.sleep 100
wshshell.sendkeys “h”
wscript.sleep 200
wshshell.sendkeys ” ”
wscript.sleep 100
wshshell.sendkeys “K”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “w”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “d”
wscript.sleep 100
wshshell.sendkeys “k”
wscript.sleep 100
wshshell.sendkeys “a”
wscript.sleep 100
wshshell.sendkeys “r”

No comments:

Post a Comment