From cad5515b7e215b24beb4db86c0579f618f09cfcb Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 8 Oct 2024 17:22:51 +0200 Subject: [PATCH] keys.ps1 --- powershell/keys.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 powershell/keys.ps1 diff --git a/powershell/keys.ps1 b/powershell/keys.ps1 new file mode 100644 index 0000000..9b3d9b8 --- /dev/null +++ b/powershell/keys.ps1 @@ -0,0 +1,9 @@ +# Press Ctrl key between 15-30 seconds random interval +Add-Type -AssemblyName System.Windows.Forms + +while ($true) +{ + [System.Windows.Forms.SendKeys]::SendWait("^") + $seconds = Get-Random -Minimum 15 -Maximum 30 + Start-Sleep -Seconds $seconds +}