Untitled

 avatar
unknown
plain_text
10 months ago
350 B
5
Indexable
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing

function Simulate-Click {
    $pos = [System.Windows.Forms.Cursor]::Position
    $mouse_event = [System.Windows.Forms.MouseButtons]::Left
    [System.Windows.Forms.SendKeys]::SendWait("{LEFTCLICK}")
}

while ($true) {
    Simulate-Click
    Start-Sleep -Seconds 20
}
Editor is loading...
Leave a Comment