#include <GuiListView.au3>
#include <WindowsConstants.au3>
$Form1_1 = GUICreate("Form1", 621, 198, 192, 114)
$Input1 = GUICtrlCreateInput("帐号", 16, 24, 121, 21)
$Input2 = GUICtrlCreateInput("", 17, 53, 121, 21)
$ListView2 = GUICtrlCreateListView("帐号|密码|系统方式", 384, 24, 225, 137)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 60)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 80)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 75)
$Button1 = GUICtrlCreateButton("提交", 64, 96, 57, 33)
$ListView1 = GUICtrlCreateListView("帐号|密码", 144, 24, 177, 137)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 70)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 100)
$Button2 = GUICtrlCreateButton("通过→", 328, 72, 49, 33)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case - 3
Exit
Case $Button1
$a = GUICtrlRead($Input1)
$b = GUICtrlRead($Input2)
GUICtrlCreateListViewItem($a & "|" & $b, $ListView1)
Case $Button2
$aItem = _GUICtrlListView_GetSelectedIndices($ListView1, True)
If UBound($aItem) > 1 Then
$sText = _GUICtrlListView_GetItemText($ListView1, $aItem[1], 0)
GUICtrlCreateListViewItem($sText & '|密码已隐藏|' & '系统注册', $ListView2)
EndIf
EndSwitch
WEnd