Update exit.ps1
This commit is contained in:
parent
0bb85db044
commit
e11a06b61e
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
Add-Type -AssemblyName WindowsBase
|
||||
Add-Type -AssemblyName PresentationCore
|
||||
$Lctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'LeftCtrl')
|
||||
$Rctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'RightCtrl')
|
||||
|
||||
|
||||
Add-Type -AssemblyName PresentationCore,PresentationFramework
|
||||
|
||||
while($true){
|
||||
$Lctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'LeftCtrl')
|
||||
$Rctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'RightCtrl')
|
||||
if(((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt")) -or ($Rctrl -and $Lctrl)){
|
||||
sleep 10
|
||||
Remove-Item "$env:appdata\-locker" -Recurse -Force;
|
||||
|
|
Loading…
Reference in a new issue