Senin, 14 Februari 2011

Powershell- Powertips: Setting Mouse Position

I get emails from powershell.com that are worth sharing (and remembering). These are not my scripts. Signup for daily PowerTips here: http://powershell.com/cs/.PowerShell can place the mouse cursor anywhere on your screen. Here's the code:[system.Reflection.Assembly]::LoadWithPartialName("Microsoft.Forms") | Out-Null[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(500,100)This would have placed the cursor at x=500 and y=100. ...

Pages 321234 »

 
Powered by Blogger