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
![](https://images.gutefrage.net/media/user/GrakaVII/1489282012736_nmmslarge__40_40_720_720_4a5fc093638cdf4046f93bf84d646af4.png?v=1489282015000)
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)