#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region --- CodeWizard generated code Start ---
$Form1 = GUICreate("网吧维护工具", 288, 106)
$Group1 = GUICtrlCreateGroup("", 8, 1, 273, 97)
$pwd = GUICtrlCreateInput("", 24, 24, 241, 21,$ES_PASSWORD)
$Button1 = GUICtrlCreateButton("确定", 106, 60, 75, 25, 0)
$Button2 = GUICtrlCreateButton("取消", 192, 60, 75, 25, 0)
$Button3 = GUICtrlCreateButton("关机", 20, 60, 75, 25, 0)
$Form2 = GUICreate("网吧维护工具", 488, 406)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISwitch($Form1)
GUISetState(@SW_SHOW)
#EndRegion --- CodeWizard generated code End ---
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
if GUICtrlRead($pwd) = "12345" Then
GUISwitch($Form2)
GUISetState(@sw_show)
GUISwitch($form1)
GUISetState(@SW_HIDE)
Else
TrayTip("提示","密码输入有误,请重试",3,1)
Sleep(1000)
EndIf
case $Button2
Exit
case $Button3
WinClose("Program Manager")
EndSwitch
WEnd
我有MD5.AU3码嘛 ,
这段代码,我想换成,MD5验证密码,然后密码要可以修改的. |