Advertisement
davideugenepeterson

CTRL+ALT+DELETE

Nov 21st, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #if GetKeyState("ScrollLock", "P" = 1) ; if scrolllock is being pressed("P") is true in this argument(=1) then enable 4 functions  
  2.     1::Run taskmgr  ;Opens up task manager when scrolllock + 1 is pressed  
  3.     2::DllCall("user32.dll\LockWorkStation") ;Locks station when scrolllock + 2 is pressed   
  4.     3::shutdown -l -t 00 ;Logs out when scrolllock + 3 is pressed  
  5.     4::shutdown, 9 ;Shuts down when scrolllock + 4 is pressed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement