|
发表于 2009-11-6 09:48:14
|
显示全部楼层
本帖最后由 xz00311 于 2009-11-6 09:49 编辑
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
Local $nMsg, $Form1 ,$msg ,$Button1 ,$i
$Form1 = GUICreate("Form1", 406, 162, 192, 124)
$Button1 = GUICtrlCreateButton("打开work", 80, 56, 153, 41)
GUICtrlSetState(-1, $GUI_DEFBUTTON)
GUISetState(@SW_SHOW)
$i = "111.doc";在桌面上建一个work文档
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button1
ShellExecute($i)
ExitLoop
EndSelect
WEnd
你看看行不行符不符合你的要求 |
|