Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

VBScript (Tutorial): Annoying Script

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,563
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 6, 2008

what it does:
if taskmanager is open then the script will close it. or if it's closed when you try to open it back up it will but only untill you click okay on the messagebox. also it will display a msgbox every "certain amount of time you inputed"
--------------------------------------------------------------------------------­--------
Code:

do
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Process WHERE Name = 'taskmgr.exe'")
For Each objProcess in colProcessList objProcess.Terminate()
Next
set wshshell = wscript.createobject("Wscript.shell")
wscript.sleep 1000

loop
---------------------------------------
Things that can be edited in the code:
to change the time do this
wscript.sleep 100000 = 1 Minute
wscript.sleep 10000 = 10 seconds
wscript.sleep 1000 = 1 second

the time is done in millesconds
and to make it kill another task instead of taskmgr.exe do this
("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'") -(only change the part with '.exe'
--------------------------------------------------------------------------------­--------
Also please comment on my videos. if you have a idea for a tutorial i should do post in in the comments or send it to my email.

email: partymaster1994@yahoo.com
--------------------------------------------------------------------------------­--------
I hope this was helpful i thought of this idea myself. anyway thank you for watching.

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (stupidgaylogincrap)

  • To All I am sorry about the crappy quality :(

    This was when i was a n00b @ camtasia Studio 5

    (I am probably going to regret this comment)

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • @stupidgaylogincrap I wouldnt regret it.

  • no. this doesnt work

  • VBSCRIPT

  • It just said error on line 3. :?(

  • Great!

  • yeah NP

  • thnx

    Np

  • 0 - ok button only 1 - ok and cancel 2 - abort, retry and ignore 3 - yes no and cancel 4 - yes and no 5 - retry and cancel TO CHANGE THE SYMBOL (RIGHT NUMBER) 16 - critical message icon 32 - warning icon 48 - warning message 64 - info message sry about not getting to you quicker :(
  • Np xD

    U know U can make pop msgbox?

    can U chage the icon in the msgbox? and tell me plz

  • Thanks for watching :)

    Glad you like it

  • kooooooooooooooooooooooooool

    10/5

  • thanks and If your interested in visual basic 2005 tutorials im going to make more.

    right now Ive made a VB 2005 tutorial - Notepad. i just havent uploaded it.

  • Can't wait to see more! =)!!!!!!!

  • glad that you like it = )

    Im going to make more videos so be on the lookout.

  • thats cool

  • Code is in the description.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more