autoit password book
#include <GUIConstantsEx.au3>
#include "GUIScrollbars_Ex.au3"
Global $buttonList[100] = [0]
; Create GUI with red background
$hGUI = GUICreate("PasswordBook", 400, 600)
GUISetBkColor(0xf5f5f5, $hGUI)
; To get cursor keys to scroll GUI, create controls AFTER GUISetState
GUISetState()
Do
$iCount = InputBox("Password Input", "Password","", "*", 240, 130)
; if input is none or click cancel button, then exit the script
; if input some password but is wrong,then repeat the password input until the password is right
If $iCount == '' Then
Exit
EndIf
Until $iCount == '你的密码'
; Create button to show scrolling
For $i = $buttonList[0] + 1 To 10
$buttonList[$i] = GUICtrlCreateButton($i, 10, $i * 35 , 300, 30)
Next
; Generate scrollbars - Yes, this is all you need to do!!!!!!!
_GUIScrollbars_Generate($hGUI, 400, 1000)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $buttonList[1]
MsgBox(0,'title','hello 1')
Case $buttonList[2]
MsgBox(0,'title','hello 2')
Case $buttonList[3]
MsgBox(0,'title','hello 3')
EndSwitch
_GUIScrollbars_EventMonitor()
WEnd
标签:Case,GUIScrollbars,passwordbook,autoit,password,hello,buttonList
From: https://www.cnblogs.com/zhuoss/p/16794660.html