Saturday, December 29, 2012

Want to Turnoff Monitor & Lock PC at the same time by a simple shortcut ???

Want to Turnoff Monitor & Lock PC at the same time by a simple shortcut ???
Step1: First download & install Autohotkey (just 2Mb simple program) from the below link. 
(Autohotkey is a very famous simple tool to automate ur work in windows.)

Step2: Save the below script as a Turn_Off_Monitor&LockPC.ahk file then open the Turn_Off_Monitor&LockPC.ahk. 
When you press Alt + Pausebreak key in your computer, your computer monitor is turned off & your PC is locked instantly !!!

; Turn Off Monitor & Lock PC
!Pause::
Sleep, 1000
SendMessage,0x112,0xF170,2,,Program Manager
DllCall("LockWorkStation")
Return

Know more about AutoHotKey from the below link.
http://www.autohotkey.com/docs/Tutorial.htm

No comments:

Post a Comment