*!* 将代码放在Timer控件,inteval...100看效果.
DECLARE LONG GetCursorPos IN WIN32API STRING @
LOCAL structPos, posX, posY
structPos = REPLICATE(CHR(0), 8)
IF GetCursorPos(@structPos)=1
posX = CTOBIN(LEFT(structPos,4),"4RS")
posY = CTOBIN(RIGHT(structPos,4),"4RS")
?posX,PosY,posX+PosY*65536 &&这里就是相对于屏幕的当前坐标内部转换值,lParam
ENDIF
[此贴子已经被作者于2021-10-26 15:37编辑过]