added feature: re-use WIN+L as a hotkey in bug.n by using the function Manager_lockWorkStation()

This commit is contained in:
joten 2012-06-06 21:14:40 +02:00
parent 5cb9422b7e
commit ad0c3bcaa2
1 changed files with 10 additions and 0 deletions

View File

@ -238,6 +238,16 @@ Manager_getWindowList() {
Clipboard := text
}
Manager_lockWorkStation() {
Global Config_shellMsgDelay
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 0
Sleep, % Config_shellMsgDelay
DllCall("LockWorkStation")
Sleep, % 4 * Config_shellMsgDelay
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 1
}
Manager_loop(index, increment, lowerBound, upperBound) {
index += increment
If (index > upperBound)