Click here to Skip to main content
13,199,318 members (66,982 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


8 bookmarked
Posted 17 Jul 2012

Lock Your Computer with Mouse

, 26 Jul 2012
Rate this:
Please Sign up or sign in to vote.
Locking the Computer using Mouse Click instead of Alt+Cntrl_del


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


  • 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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

peru j
India India
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMy vote of 5 Pin
Renju Vinod28-Aug-12 20:47
memberRenju Vinod28-Aug-12 20:47 
GeneralMy vote of 1 Pin
Hrdli-ka24-Aug-12 2:15
memberHrdli-ka24-Aug-12 2:15 
GeneralMy vote of 4 Pin
GPUToaster™27-Jul-12 0:33
memberGPUToaster™27-Jul-12 0:33 
Questiongd Pin
syedaliaizazuddin26-Jul-12 18:27
groupsyedaliaizazuddin26-Jul-12 18:27 
GeneralMy vote of 3 Pin
syedaliaizazuddin26-Jul-12 18:27
groupsyedaliaizazuddin26-Jul-12 18:27 
GeneralMy vote of 4 Pin
Kudredin26-Jul-12 5:35
memberKudredin26-Jul-12 5:35 
GeneralMy vote of 2 Pin
Nisarg S Shah18-Jul-12 1:29
memberNisarg S Shah18-Jul-12 1:29 
GeneralMy vote of 5 Pin
Cory Shirts17-Jul-12 8:50
memberCory Shirts17-Jul-12 8:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171020.1 | Last Updated 26 Jul 2012
Article Copyright 2012 by peru j
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid