-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
Return | ||
|
||
#l:: | ||
~#l:: | ||
; Run rundll32.exe user32.dll LockWorkStation,, Hide | ||
cmdScreenOff := "cmd /c start """" powershell (Add-Type '[DllImport(\""user32.dll\"")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)" | ||
Run %cmdScreenOff%,, Hide | ||
; cmdScreenOff := "cmd /c start """" powershell (Add-Type '[DllImport(\""user32.dll\"")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)" | ||
; SendMessage, 0x112, 0xF170, 2, , Program Manager | ||
SendMessage, 0x112, 0xF170, 2, , Program Manager | ||
Sleep 1000 | ||
SendMessage, 0x112, 0xF170, 2, , Program Manager | ||
; Run %cmdScreenOff%,, Hide | ||
Return | ||
|
||
; 创意参考: [按下Win+L键,玄机来了]( http://m.cfan.com.cn/article/105095 ) | ||
; 创意参考: [按下Win+L键,玄机来了]( http://m.cfan.com.cn/article/105095 ) |