#include Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client ******* Very Important ******** Global $ycalc = .90 * @DesktopHeight Global $Xcalc = .90 * @DesktopWidth HotKeySet("{ESC}", "Terminate") ; a way out of this While 1 Sleep(50) _MGP() WEnd Func _MGP() $pos = MouseGetPos() If $pos[1] > $ycalc Or $pos[0] > $Xcalc Then Return ToolTip('X: ' & $pos[0] & ', Y: ' & $pos[1], 10, 10) ToolTip('X: ' & $pos[0] & ', Y: ' & $pos[1]) EndFunc ;==>_MGP Func Terminate() Exit 0 EndFunc ;==>Terminate