PowerShell-mouse_position.ps1
Add-Type -AssemblyName System.Windows.Forms
for (1>3){
$X = [System.Windows.Forms.Cursor]::Position.X
$Y = [System.Windows.Forms.Cursor]::Position.Y
Write-Output "X: $X | Y: $Y"
sleep 0.1;
}
PowerShell-mouse_position.ps1
Add-Type -AssemblyName System.Windows.Forms
for (1>3){
$X = [System.Windows.Forms.Cursor]::Position.X
$Y = [System.Windows.Forms.Cursor]::Position.Y
Write-Output "X: $X | Y: $Y"
sleep 0.1;
}