找回密码
 加入
搜索
查看: 1916|回复: 2

[AU3基础] 請問怎樣可以密密錯覺會有提示,3次錯誤後才自動關閉

[复制链接]
发表于 2014-6-12 16:54:28 | 显示全部楼层 |阅读模式
If InputBox('Clone SysTEM', '        CitiNET Computer System        ' & @LF & _
                '       Please Enter The Password           ' & @LF & @LF & _
                '        ', '', '*M', -1, 150) = $pass Then



請問怎樣可以密密錯覺會有提示,3次錯誤後才自動關閉
发表于 2014-6-12 17:06:54 | 显示全部楼层
Local $i = 0, $pass = "cashi", $iput
While $i < 3
        $iput = InputBox('Clone SysTEM', '        CitiNET Computer System        ' & @LF & _
                        '       Please Enter The Password           ' & @LF & @LF & _
                        '        ', '', '*M', -1, 150)
        If @error Then ExitLoop
        If $iput = $pass Then
                MsgBox(0, 0, "密码正确")
        Else
                $i += 1
                MsgBox(0, 0, "第"&$i&"次密码错误")
        EndIf
WEnd
Exit
 楼主| 发表于 2014-6-12 18:36:23 | 显示全部楼层
回复 2# shenrenba


謝謝你幫忙,謝謝
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-4 02:59 , Processed in 0.078943 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表