for ($i = 0; $i -lt 1000; $i++) {
(New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
# Optional: Add a small delay (e.g., 10 milliseconds) to prevent overwhelming the system
Start-Sleep -Milliseconds 10
}
Note:- Start-Sleep -Milliseconds 10 // Fastest
Start-Sleep -Milliseconds 100 //More Fast
Start-Sleep -Milliseconds 1000 //Slow
No comments:
Post a Comment