omnipower321
asked on
Track mouse click from PowerShell
Hello,
I am able to track mouse X and Y coords within PowerShell by using the [System.Windows.Forms.Curs or]::Posit ion assembely. This can track X and Y coords outside of the PowerShell session.
Is there anyway to track the mouse click event, regardless of what is being clicked? Ultimately I am looking to track X & Y at time of mouse click anywhere in the OS.
Thank you for any info.
I am able to track mouse X and Y coords within PowerShell by using the [System.Windows.Forms.Curs
Is there anyway to track the mouse click event, regardless of what is being clicked? Ultimately I am looking to track X & Y at time of mouse click anywhere in the OS.
Thank you for any info.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yikes, I think this is a bit out of my league, but I will attempt to decipher. Thanks!
check this post as an example of low-level keyboard hooking via powershell:
http://waynes-world-it.blogspot.com/2008/06/powershell-low-level-keyboard-hook.html