DECLARE INTEGER GetCursorPos IN Win32API ; STRING @ lpPoint ThisForm.Timer1.Interval = 500and in a timers timer event add
This.Interval = 0 cBuffer = SPACE(8) iResult = GetCursorPos( @cBuffer ) xCoord = ASC( cBuffer ) + ( ASC( SUBSTR( cBuffer, 2, 1 )) * 256 ) yCoord = ASC( SUBSTR( cBuffer, 5, 1 )) + ( ASC( SUBSTR( cBuffer, 6, 1 )) * 256 ) wait wind transform( xCoord ) + " " + transform( yCoord ) nowait noclear this.interval = 250Hope this helps.