function GetCursorXY:TPoint; begin if not Winapi.Windows.GetCursorPos(Result) then begin Result := Point(Screen.Width div 2, Screen.Height div 2); end; end; procedure TForm1.Timer1Timer(Sender: TObject); begin text:=GetCursorXY.X.ToString+' '+ GetCursorXY.Y.ToString; end;
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.07584810256958 seconds