lin6163 发表于 2009-2-1 22:45:26

怎么做这样一个窗口!

运行起来后只有两个按扭 A和B
点A按扭之后运行x:\a.exe
点B按扭之后运行x:\B.exe

怒月 发表于 2009-2-1 23:35:20

帮助里就有作按扭的例子,找找就行了

ceoguang 发表于 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

ynqjflying52 发表于 2009-2-2 13:08:52

建议多看下帮助
页: [1]
查看完整版本: 怎么做这样一个窗口!