added feature: re-use WIN+L as a hotkey in bug.n by using the function Manager_lockWorkStation()
This commit is contained in:
parent
5cb9422b7e
commit
ad0c3bcaa2
1 changed files with 10 additions and 0 deletions
|
@ -238,6 +238,16 @@ Manager_getWindowList() {
|
||||||
Clipboard := text
|
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) {
|
Manager_loop(index, increment, lowerBound, upperBound) {
|
||||||
index += increment
|
index += increment
|
||||||
If (index > upperBound)
|
If (index > upperBound)
|
||||||
|
|
Loading…
Reference in a new issue