回复 1# 3131210
誰說不可以的 請看下面範例
#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <StaticConstants.au3>
#include <HotKeyInput.au3>
#include <HotKey_21b.au3>
;Opt('SendCapslockMode', 0)
;Opt('TrayMenuMode', 3)
$Exists = "LP快捷幫助" ;判?是否只?行一?程序
If WinExists($Exists) Then
WinSetState($Exists, "", @SW_SHOW)
MsgBox(262144, '警告', '不要重复!')
Exit
EndIf
AutoItWinSetTitle($Exists) ;修改程序窗口的??名
$MyForm = GUICreate($Exists, 385, 370)
$Save = GUICtrlCreateButton('保存配置', 8, 330, 70, 30)
$Reset = GUICtrlCreateButton('重置配置', 108, 330, 70, 30)
GUISetState()
WinSetState($MyForm,"",@SW_HIDE )
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|