soulss 发表于 2009-11-18 21:36:13

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

本帖最后由 soulss 于 2009-11-18 21:39 编辑

GetCursorPos如何转换为AU3函数?谢谢~
函数链接:
http://msdn.microsoft.com/en-us/library/ms648390(VS.85).aspx

bing614 发表于 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)

soulss 发表于 2009-11-18 22:05:01

Re 2#:
谢谢,学习了!~
PS: “新手上路”级别的会员不能评分?
页: [1]
查看完整版本: GetCursorPos API函数如何转换为AU3函数?