找回密码
 加入
搜索
查看: 3899|回复: 4

[AU3基础] msgbox可以改变位置么?

[复制链接]
发表于 2011-1-5 13:26:21 | 显示全部楼层 |阅读模式
悬赏200金钱已解决
本帖最后由 tryhi 于 2011-1-5 19:29 编辑

msgbox可以改变显示的位置么?



就这个吧,2楼代码,惭愧!
$Timer = DllCallbackRegister("Timer", "int", "hwnd;uint;uint;dword")
$TimerDLL = DllCall("user32.dll", "uint", "SetTimer", "hwnd", 0, "uint", 0, "int", 5000, "ptr", DllCallbackGetPtr($Timer))
$Timer2 = DllCallbackRegister("Timer", "int", "hwnd;uint;uint;dword")
$Timer2DLL = DllCall("user32.dll", "uint", "SetTimer", "hwnd", 0, "uint", 0, "int", 8000, "ptr", DllCallbackGetPtr($Timer2))
$Timer3 = DllCallbackRegister("Timer", "int", "hwnd;uint;uint;dword")
$Timer3DLL = DllCall("user32.dll", "uint", "SetTimer", "hwnd", 0, "uint", 0, "int", 10000, "ptr", DllCallbackGetPtr($Timer3))
While 1
        GUIGetMsg()
WEnd
Func Timer($hWnd, $uiMsg, $idEvent, $dwTime)
        If $idEvent = $TimerDLL[0] Then
                MsgBox(0,"","线程1")
        ElseIf $idEvent = $Timer2DLL[0] Then
                MsgBox(0,"","线程2")
        ElseIf $idEvent = $Timer3DLL[0] Then
                MsgBox(0,"","线程3")
        EndIf
EndFunc

最佳答案

查看完整内容

作为高级会员,你居然不知道搜索?
发表于 2011-1-5 13:26:22 | 显示全部楼层
作为高级会员,你居然不知道搜索?

评分

参与人数 1金钱 +20 贡献 +5 收起 理由
tryhi + 20 + 5 搜过了,没找到,惭愧!

查看全部评分

 楼主| 发表于 2011-1-5 13:47:19 | 显示全部楼层
本帖最后由 tryhi 于 2011-1-5 13:59 编辑
作为高级会员,你居然不知道搜索?
ceoguang 发表于 2011-1-5 13:40


搜索过了,答案似乎是不可以,除非多线程移动,但不肯定,惭愧!
发表于 2011-1-5 18:25:18 | 显示全部楼层

评分

参与人数 1金钱 +30 贡献 +10 收起 理由
tryhi + 30 + 10 非常感谢!

查看全部评分

 楼主| 发表于 2011-1-5 19:29:20 | 显示全部楼层
本帖最后由 tryhi 于 2011-1-5 19:35 编辑

多谢版主帮忙……
原来用钩子。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-4 00:38 , Processed in 0.077701 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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