#include <GUIConstantsEx.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("快捷方式", 445, 322, 219, 164)
$combo=GUICtrlCreateCombo("", 90, 96, 113, 25)
$1 = GUICtrlSetData(-1, "10分钟后关机")
$2 = GUICtrlSetData(-1, "20分钟后关机")
$3 = GUICtrlSetData(-1, "30分钟后关机")
$queding = GUICtrlCreateButton("确定", 80, 192, 73, 25, 0)
$quxiao = GUICtrlCreateButton("取消", 280, 192, 73, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $queding
if "10分钟后关机" = GUICtrlRead($combo) then
msgbox (1,"","10分钟后关机")
exit
elseif "20分钟后关机"= GUICtrlRead($combo) then
msgbox (1,"","20分钟后关机")
exit
elseif "30分钟后关机"= GUICtrlRead($combo) then
msgbox (1,"","30分钟后关机")
exit
else
continueloop
endif
case $quxiao
Exit
endswitch
wend
|