找回密码
 加入
搜索
查看: 2356|回复: 3

[AU3基础] DM插件在数据结构方面问题求教(active x调用)

[复制链接]
发表于 2010-9-11 10:45:14 | 显示全部楼层 |阅读模式
本帖最后由 拉风晓晓 于 2010-9-11 15:10 编辑
Run(@ComSpec & ' /k ' & 'regsvr32 /s ' & @SystemDir & "\dm.dll", "", @SW_HIDE);系统注册DM
$aa = ObjCreate("dm.dmsoft")
;~ $rect   = DllStructCreate("int;int;int;int")
;~ ConsoleWrite($aa.ver())
Global $x1,$y1,$x2,$y2,$hwnd,$w,$h
$aa.GetWindowRect($hwnd,$x1,$y1,$x2,$y2) 
MsgBox(0,"","x1="$x1&" y1="$y1)
ProcessClose("cmd.exe")
Exit
求改错,应该是在数据结构方面
插件在下面,游戏方面的NO.1

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2010-9-11 14:03:38 | 显示全部楼层
本帖最后由 拉风晓晓 于 2010-9-11 15:10 编辑
Run(@ComSpec & ' /k ' & 'regsvr32 /s ' & @SystemDir & "\dm.dll", "", @SW_HIDE)
ProcessClose("cmd.exe")
$aa = ObjCreate("dm.dmsoft")
Sleep(2000)
ConsoleWrite($aa.ver()&@CRLF)
$dll=DllOpen(@SystemDir & "\dm.dll")
Global $x1,$y1,$x2,$y2,$hwnd
$arect = DllStructCreate("long;long;long;long")
Global $hwnd   = WinGetHandle("")
ConsoleWrite($hwnd)
DllCall($dll,"long","GetWindowRect","hwnd",$hwnd, "long",$x1,"long",$y1,"long",$x2,"long",$y2) ; 关键这里错
$l = DllStructGetData($arect,1)
$t = DllStructGetData($arect,2)
$r = DllStructGetData($arect,3)
$b = DllStructGetData($arect,4)
MsgBox(0,"","x1="&$l&" y1="&$t&"x2="&$r&" y2="&$b)
Exit
这样也不行,可以正常执行,但值为0
发表于 2010-9-11 14:08:21 | 显示全部楼层
压缩包有病毒哦
 楼主| 发表于 2010-9-11 14:59:05 | 显示全部楼层
http://bbs.vrbrothers.com/forum. ... #pid701156pid701156
原地址在按键精灵论坛,上面为下载链接
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 15:52 , Processed in 0.077823 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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