1 2 3 4 5 6 7 8 9 |
$resolucion = [System.Windows.Forms.Screen]::AllScreens.bounds | Select-Object Width,Height while($true){ $xaleatoria = Get-Random (1..$resolucion.Width) $yaleatoria = Get-Random (1..$resolucion.Height) $xaleatoria,$yaleatoria [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($xaleatoria,$yaleatoria) Start-Sleep -Seconds 2 } |