65.9K
CodeProject is changing. Read more.
Home

Lock Your Computer with Mouse

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.63/5 (8 votes)

Jul 17, 2012

CPOL
viewsIcon

21683

Locking the Computer using Mouse Click instead of Alt+Cntrl_del

Introduction

This tip discusses how to create a desktop shortcut key to lock computer just with mouse click in Windows OS.

Steps

  • Right click on your desktop anywhere and select New, under that, select ShortCutKey, click ok.
  • After clicking ok on shortcut, create wizard will open. That wizard asks to Type the location of item in browse text box.
  • Enter the following text in browse textbox:
    rundll32 user32.dll, LockWorkStation 
  • After entering the above item, click Next. Now that will ask to Type a name for this ShortCut. Enter the name that you want here. I am entering name of shortcut as Lock Computer and click finish.
  • Now our shortcut key is ready to use. If you double click on that icon, automatically our computer will lock without using Cntrl+Alt+L key.
  • After creating a shortcut key, it will display without icon. We can change that icon also by going to Properties, Change icon Button.

You have KeyBoard shortcuts to lock, but this is just an alternative way.