Untitled

mail@pastecode.io avatar
unknown
plain_text
16 days ago
350 B
1
Indexable
Never
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
}
Leave a Comment