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

怎么做这样一个窗口!

[复制链接]
发表于 2009-2-1 22:45:26 | 显示全部楼层 |阅读模式
运行起来后只有两个按扭 A和B
点A按扭之后运行x:\a.exe
点B按扭之后运行x:\B.exe
发表于 2009-2-1 23:35:20 | 显示全部楼层
帮助里就有作按扭的例子,找找就行了
发表于 2009-2-1 23:46:33 | 显示全部楼层
$Form1 = GUICreate("示例", 225, 90, -1, -1)
$Button1 = GUICtrlCreateButton("A", 8, 8, 99, 73, 0)
$Button2 = GUICtrlCreateButton("B", 117, 8, 99, 73, 0)
GUISetState(@SW_SHOW)

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case -3
                        Exit
                Case $Button1
                        Run("x:\a.exe")
                Case $Button2
                        Run("x:\b.exe")
        EndSwitch
WEnd
发表于 2009-2-2 13:08:52 | 显示全部楼层
建议多看下帮助
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 07:31 , Processed in 0.070525 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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