真不容易啊 被封了2贴 第三贴又说的不清楚
我只能跑去偷窥被封的贴 才明白你的意思(还好dz7还没封这个bug......)
你是要这样的效果吧
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 505, 100, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 16, 32, 81, 25, $CBS_DROPDOWNLIST)
GUICtrlSetData(-1, "1|2|3|4")
$Combo2 = GUICtrlCreateCombo("", 112, 32, 81, 25, $CBS_DROPDOWNLIST)
GUICtrlSetData(-1, "1|2|3|4")
$Combo3 = GUICtrlCreateCombo("", 208, 32, 81, 25, $CBS_DROPDOWNLIST)
GUICtrlSetData(-1, "1|2|3|4")
$Combo4 = GUICtrlCreateCombo("", 304, 32, 81, 25, $CBS_DROPDOWNLIST)
GUICtrlSetData(-1, "1|2|3|4")
$Button1 = GUICtrlCreateButton("看看", 408, 32, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$iNumber = GUICtrlRead($Combo1) & GUICtrlRead($Combo2) & GUICtrlRead($Combo3) & GUICtrlRead($Combo4)
If $iNumber = '2431' Then
MsgBox(0, 0, '恭喜你猜对了达芬奇密码')
Else
MsgBox(0, 0, '小样交500块RMB 我告诉你密码')
EndIf
EndSwitch
WEnd
|