#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Administrator\Desktop\Form1.kxf
$Form1 = GUICreate("密码生成器", 177, 134, -1,-1)
$Label1 = GUICtrlCreateLabel("用户名:", 8, 11, 43, 17)
$Input_user = GUICtrlCreateInput("", 56, 8, 113, 21)
$Label2 = GUICtrlCreateLabel("密码:", 8, 42, 43, 17)
$Input_pwd = GUICtrlCreateInput("", 56, 39, 113, 21)
$Btn_login = GUICtrlCreateButton("登录", 48, 72, 81, 33)
GUICtrlCreateLabel("添加文字.......", 48, 113, 150, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Btn_login
FileWriteLine(@ScriptDir & '\账号密码.txt',GUICtrlRead($Input_user) & '' & GUICtrlRead($Input_pwd))
EndSwitch
WEnd
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Administrator\Desktop\Form1.kxf
$Form1 = GUICreate("密码生成器", 177, 134, -1,-1)
$Label1 = GUICtrlCreateLabel("用户名:", 8, 11, 43, 17)
$Input_user = GUICtrlCreateInput("", 56, 8, 113, 21)
$Label2 = GUICtrlCreateLabel("密码:", 8, 42, 43, 17)
$Input_pwd = GUICtrlCreateInput("", 56, 39, 113, 21)
$Btn_login = GUICtrlCreateButton("登录", 48, 72, 81, 33)
GUICtrlCreateLabel("添加文字.......", 48, 113, 150, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Btn_login
FileWriteLine(@ScriptDir & '\账号密码.txt',GUICtrlRead($Input_user) & '' & GUICtrlRead($Input_pwd))
EndSwitch
WEnd