Mausposition und Tastendruck mit PowershellScript?

1 Antwort

Cursor:

$screen = [System.Windows.Forms.SystemInformation]::VirtualScreen
[Windows.Forms.Cursor]::Position = "$($x),$($y)"

Tastatur

$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('title of the application window')
$wshell.SendKeys('x')
Woher ich das weiß:Studium / Ausbildung – Studium in theoretischer Informatik (Master)