AutoIt

AutoIt is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.

AutoIt - Get current mouse position coordinates

23 Feb, 2013
How to get current mouse position coordinates? You can create a simple script that shows a message box with coordinates on key-press.