Mausposition und Tastendruck mit PowershellScript?
Hallo,
ich habe viel gesucht, habe aber nichts gefunden, was mir weiterhilft.
Kann mir jemand sagen, wie ich den Mauscursor bewegen (z.B. X = 500, Y = 600) und eine Tasteneingabe für Maus oder Tastatur machen kann?
VG
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)