Tuesday, November 4, 2008

Funny MS Word Trick

b4 going into it : do it on ur own risk.

This next prank is a little strange. I hope it makes sense. What this prank does is, when ever you press spacebar it copies the word between the first space and the next. Then it takes that word and from 5 to 1 second it will delete the word. Confusing? Well in the most simple terms it copies words while you are typing them. Then a few seconds after you typed that word it will delete that word. Try it out yourself and you’ll see the frustration it can cause.

Step 1: Open Microsoft Word

Step 2: Press Alt F11

Step 3: Copy the code below into your normal template: (retype any “)

Quote:
Sub AddKeyBinding()

With Application
CustomizationContext = NormalTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeySpacebar), KeyCategory:=wdKeyCategoryCommand, _
Command:=”Timer”
End With

End Sub

Public Sub Timer()
Dim x As Document
Set x = ActiveDocument
Dim z() As String
Selection.TypeText Text:=” ”
counter = CStr(Int((10 - 1 + 1) * Rnd + 1))
Application.OnTime When:=Now + TimeValue(”00:00:” + counter), _
Name:=”removeit”

End Sub

Sub removeit()
Dim x As Document
Set x = ActiveDocument

counter = CStr(Int((x.Words.Count - 1 + 1) * Rnd + 1))
x.Words(counter).Delete

End Sub
Step 4: Click Play

Step 5: Let them figure out how to fix it
---------------

What do you think of when you think of Tourettes? Random swear words right? This next prank does exactly that. While you are typing in a word document or outlook a random swear word will appear. The words will appear in random increments and the words them selves are random. The words and the time gap is determined by you.

Step 1: Open Microsoft Word
Step 2: Press Alt F-11 (This will open the VBA Editor
Step 3: Select your Normal Template by double clicking “This Document”
Step 4: Copy the code below into your normal template. Remember to re-type any “s, they dont always transfer over correctly in the copy/paste process.

Quote:
Sub typeRand()
Dim counter As String
counter = CStr(Int((30 - 1 + 1) * Rnd + 1))

Application.OnTime When:=Now + TimeValue(”00:00:” + counter), _
Name:=”TimedClose”

End Sub

Sub TimedClose()

Dim maindocument As Document
Set maindocument = activedocument
counter = CStr(Int((5 - 1 + 1) * Rnd + 1))

Select Case counter
Case 1
Selection.TypeText Text:=” **** ”
Case 2
Selection.TypeText Text:=” ASSHOLE ”
Case 3
Selection.TypeText Text:=” **** ”
Case 4
Selection.TypeText Text:=” BITCH ”
Case 5
Selection.TypeText Text:=” DICK ”
End Select

Call typeRand

End Sub
Step 5: Close Microsoft Word

Step 6: Enjoy

If you have done this correctly the code will load when the person loads Word. Currently there are 5 swear words. They randomly appear any where between 30 and 1 second. This code will load the second they start using word. So if the person doesn’t even type it will start going. It will affect both word and outlook. Below are some tips on how to modify the code.

Edit Swear Words

You can add any number of words you want. To increase the number of swear words only takes a couple tweaks

If you want to have a total of 20 swear words change the 5 in bold to 20.

Before:

counter = CStr(Int((5 - 1 + 1) * Rnd + 1))

After

counter = CStr(Int((20 - 1 + 1) * Rnd + 1))

The next step is to add the swear words. Currently there are 5 swear words. To add a new swear word, repeat the following till you reached the desired amount. After the last statement Case 5, Add Case 6

Case 5
Selection.TypeText Text:=” DICK ”

Case 6

Selection.TypeText Text:=” COCK EATER “

Case 7

Selection.TypeText Text:=” **** Lover “

When you have added all the swear words you want make sure to finish with, End Select.

Edit Time Range

To change the random number range do as follows:

The maximum number comes first and is in bold

counter = CStr(Int((30 - 1 + 1) * Rnd + 1))

To change the maxium simply change the number 30 to something less than or equal to 59

To change the minimum number change the numbers in bold

counter = CStr(Int((20 - 1 + 1) * Rnd + 1))

I recommend keep this at 1 second but changing it wont hurt

How to Reverse the code

Press Alt-F11 and re-open your normal document. Erase the code and restart word.

PS : dont blame me if u messed up anything

Monday, November 3, 2008

Windows Run Commands

Accessibility Controls---------access.cpl

Add Hardware Wizard---------hdwwiz.cpl

Add/Remove Programs--------appwiz.cpl

Administrative Tools----------control admintools

Automatic Updates-----------wuaucpl.cpl

Bluetooth Transfer Wizard-----fsquirt

Calculator--------------------calc

Certificate Manager-----------certmgr.msc

Character Map---------------charmap

Check Disk Utility-------------chkdsk

Clipboard Viewer--------------clipbrd

Command Prompt-------------cmd

Component Services----------dcomcnfg

Computer Management-------compmgmt.msc

timedate.cpl-----------------ddeshare

Device Manager--------------devmgmt.msc

Direct X Control Panel (If Installed)*-----directx.cpl

Direct X Troubleshooter-------dxdiag

Disk Cleanup Utility-----------cleanmgr

Disk Defragment--------------dfrg.msc

Disk Management-------------diskmgmt.msc

Disk Partition Manager--------diskpart

Display Properties------------control desktop

Display Properties------------desk.cpl

Display Properties (w/Appearance Tab Preselected)----control color

Dr. Watson System Troubleshooting Utility--------drwtsn32

Driver Verifier Utility-----------verifier

Event Viewer------------------eventvwr.msc

File Signature Verification Tool-----sigverif

Findfast-----------------findfast.cpl

Folders Properties--------control folders

Fonts-------------------control fonts

Fonts Folder------------fonts

Free Cell Card Game-----freecell

Game Controllers--------joy.cpl

Group Policy Editor (XP Prof)--------gpedit.msc

Hearts Card Game------------------mshearts

Iexpress Wizard--------------------iexpress

Indexing Service-------------------ciadv.msc

Internet Properties-----------------inetcpl.cpl

IP Configuration (Display Connection Configuration)-----ipconfig /all

IP Configuration (Display DNS Cache Contents)--ipconfig /displaydns

IP Configuration (Delete DNS Cache Contents)-------ipconfig /flushdns

IP Configuration (Release All Connections)-----------ipconfig /release

IP Configuration (Renew All Connections)------------ipconfig /renew

IP Config(Refreshes DHCP & Re-Registers DNS)-ipconfig /registerdns

IP Configuration (Display DHCP Class ID)-------ipconfig /showclassid

IP Configuration (Modifies DHCP Class ID)--------ipconfig /setclassid

Java Control Panel (If Installed)--------------------jpicpl32.cpl

Java Control Panel (If Installed)--------------------javaws

Keyboard Properties-------------------------------control keyboard

Local Security Settings----------------------------secpol.msc

Local Users and Groups----------------------------lusrmgr.msc

Logs You Out Of Windows-------------------------logoff

Microsoft Chat-----------------------------------winchat

Minesweeper Game-------------------------------winmine

Mouse Properties---------------------------------control mouse

Mouse Properties---------------------------------main.cpl

Network Connections--------------------control netconnections

Network Connections-----------------------------ncpa.cpl

Network Setup Wizard---------------------------netsetup.cpl

Notepad----------------------------------------notepad

Nview Desktop Manager (If Installed)------------nvtuicpl.cpl

Object Packager--------------------------------packager

ODBC Data Source Administrator-----------------odbccp32.cpl

On Screen Keyboard(virtual Keyboard)-----------osk

Opens AC3 Filter (If Installed)-------------------ac3filter.cpl

Password Properties----------------------------password.cpl

Performance Monitor----------------------------perfmon.msc

Performance Monitor----------------------------perfmon

Phone and Modem Options----------------------telephon.cpl

Power Configuration----------------------------powercfg.cpl

Printers and Faxes-----------------------------control printers

Printers Folder---------------------------------printers

Private Character Editor------------------------eudcedit

Quicktime (If Installed)-------------------------QuickTime.cpl

Regional Settings------------------------------intl.cpl

Registry Editor--------------------------------regedit

Registry Editor--------------------------------regedit32

Remote Desktop------------------------------mstsc

Removable Storage---------------------------ntmsmgr.msc

Removable Storage Operator Requests---------ntmsoprq.msc

Resultant Set of Policy (XP Prof)--------------rsop.msc

Scanners and Cameras-----------------------sticpl.cpl

Scheduled Tasks----------------------------control schedtasks

Security Center-----------------------------wscui.cpl

Services------------------------------------services.msc

Shared Folders------------------------------fsmgmt.msc

Shuts Down Windows------------------------shutdown

Sounds and Audio---------------------------mmsys.cpl

Spider Solitare Card Game-------------------spider

SQL Client Configuration---------------------cliconfg

System Configuration Editor------------------sysedit

System Configuration Utility------------------msconfig

System File Checker Utility (Scan Immediately)------sfc /scannow

System File Checker Utility (Scan Once At Next Boot)---sfc /scanonce

System File Checker Utility (Scan On Every Boot)-------sfc /scanboot

System File Checker Utility (Return to Default Setting)---sfc /revert

System File Checker Utility (Purge File Cache)------sfc /purgecache

System File Checker Utility (Set Cache Size to size x)-sfc /cachesize=x

System Properties-------------------------------------sysdm.cpl

Task Manager-----------------------------------------taskmgr

Telnet Client------------------------------------------telnet

User Account Management-----------------------------nusrmgr.cpl

Utility Manager----------------------------------------utilman

Windows Firewall--------------------------------------firewall.cpl
Windows Magnifier-------------------------------------magnify

Windows Management Infrastructure-------------------wmimgmt.msc

Windows System Security Tool-------------------------syskey

Windows Update Launches-----------------------------wupdmgr

Windows XP Tour Wizard-------------------------------tourstart

Wordpad----------------------------------------------write

FTP---------------------------------------------------ftp
don_will is offline Reply With Quote
Your Ad Here