|
例如:
两个小按钮,点第一个打开baidu,点第二个新开IE打开google,这时有两个IE窗口,一个baidu,一个google。
现在不行啊~~
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 32, 88, 89, 33, 0)
$Button2 = GUICtrlCreateButton("Button2", 152, 88, 89, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute("www.baidu.com")
Case $Button2
ShellExecute("www.google.com")
EndSwitch
WEnd |
|