Posts

Showing posts from March, 2026

PowerShell script that simulates human-like mouse movement

Image
 It’s a little script that moves the mouse around naturally so the computer doesn’t go idle. If You Want to Demo It Open PowerShell Paste the script Let them watch the cursor move Stop with Ctrl + C Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing $screen = [System.Windows.Forms.Screen]::PrimaryScreen.Bounds $rand = New-Object System.Random function Ease-InOut($t) {     # Smooth acceleration curve (cosine based)     return 0.5 * (1 - [Math]::Cos($t * [Math]::PI)) } while ($true) {     $start = [System.Windows.Forms.Cursor]::Position | Select-Object -First 1     $startX = [double]$start.X     $startY = [double]$start.Y     # Random distant target     $endX = $rand.Next(0, $screen.Width)     $endY = $rand.Next(0, $screen.Height)     # Random duration between 1.5–3 seconds     $duration = $rand.NextDouble() * 1.5 + 1.5     $steps = ...