The ClientToScreen function converts the client coordinates of a specified point to screen coordinates. --------------------------------- 只能把窗口中的坐标转换到以屏幕为标准啊 还得挂钩子楼主,现在有很多屏幕取词的程序(一般都是挂钩子),里面就有这样的操作 看看明白了
用个timer就可以取了...procedure TForm1.Timer1Timer(Sender: TObject); var aa:TPoint; begin getcursorpos(aa); label2.Caption:=inttostr(aa.x); label3.Caption:=inttostr(aa.Y); end;
----------
我也知道
用这个可以实现
但是具体代码我也不清楚了
---------------------------------
只能把窗口中的坐标转换到以屏幕为标准啊
还得挂钩子楼主,现在有很多屏幕取词的程序(一般都是挂钩子),里面就有这样的操作
看看明白了
var aa:TPoint;
begin
getcursorpos(aa);
label2.Caption:=inttostr(aa.x);
label3.Caption:=inttostr(aa.Y);
end;