#include <WindowsConstants.au3>
GUICreate("Form1", 280, 250)
$But1 = GUICtrlCreateButton("按钮1", 40, 40, 75, 25, $WS_GROUP)
$But2 = GUICtrlCreateButton("按钮2", 160, 40, 75, 25, $WS_GROUP)
$But3 = GUICtrlCreateButton("按钮3", 40, 144, 75, 25, $WS_GROUP)
$But4 = GUICtrlCreateButton("按钮4", 160, 144, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
AdlibRegister('abc', 5000)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $But1, $But2, $But3, $But4
AdlibUnRegister('abc')
abc()
EndSwitch
WEnd
Func abc()
MsgBox(64, '', '')
EndFunc
|