看来你是很长时间没用AU3了,忘的比较彻底
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 428, 184, -1, -1)
$Button1 = GUICtrlCreateButton("全屏", 48, 72, 137, 49, 0)
$Button2 = GUICtrlCreateButton("窗口", 248, 72, 145, 49, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
Run("E:\单机游戏\CS1.5\hlds.exe")
Exit
Case $Button2
Run("E:\单机游戏\CS1.5\cs1.5.exe")
Exit
EndSwitch
WEnd
|