#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 492, 291, 232, 168) $Button1 = GUICtrlCreateButton("Button1", 176, 72, 107, 41, $WS_GROUP) $Button2 = GUICtrlCreateButton("Button1", 178, 193, 107, 41, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 EndSwitch WEnd
举报
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 492, 291, 232, 168) $Button1 = GUICtrlCreateButton("Button1", 176, 72, 107, 41, $WS_GROUP) $Button2 = GUICtrlCreateButton("Button1", 178, 193, 107, 41, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Case $Button1 msgbox(0,"","早上好") Case $Button2 msgbox(0,"","下午好") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 EndSwitch WEnd
您需要 登录 才可以下载或查看,没有账号?加入
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 492, 291, 232, 168) $Button1 = GUICtrlCreateButton("Button1", 176, 72, 107, 41, $WS_GROUP) $Button2 = GUICtrlCreateButton("Button1", 178, 193, 107, 41, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 msgbox(0, "", "早上好") Case $Button2 msgbox(0, "", "下午好") EndSwitch WEnd
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-25 08:00 , Processed in 0.082858 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.