找回密码
 加入
搜索
查看: 1480|回复: 2

GetCursorPos API函数如何转换为AU3函数?

[复制链接]
发表于 2009-11-18 21:36:13 | 显示全部楼层 |阅读模式
本帖最后由 soulss 于 2009-11-18 21:39 编辑

GetCursorPos如何转换为AU3函数?谢谢~
函数链接:
http://msdn.microsoft.com/en-us/library/ms648390(VS.85).aspx
发表于 2009-11-18 21:58:47 | 显示全部楼层
$_Struct=DllStructCreate("dword;dword")
$_Return=DllCall("user32.dll","int","GetCursorPos","ptr",DllStructGetPtr($_Struct))
$X=DllStructGetData($_Struct,1)
$Y=DllStructGetData($_Struct,2)
MsgBox(0,"","X=" & $X & @CRLF & "Y=" & $Y)
 楼主| 发表于 2009-11-18 22:05:01 | 显示全部楼层
Re 2#:
谢谢,学习了!~
PS: “新手上路”级别的会员不能评分?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 17:24 , Processed in 0.074093 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表