本帖最后由 haopp1 于 2014-3-11 12:44 编辑
求救。 我在第一个对话框输入的admin 第二个对话框 输入的 1234 怎么写到文本中就成了 4——5了 在线等。。。
忘记发代码了#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("登录", 281, 166, 318, 460)
$Group2 = GUICtrlCreateGroup("请输入用户名密码", 5, 19, 269, 135)
GUICtrlSetColor(-1, 0xFF00FF)
$Input1 = GUICtrlCreateInput("", 92, 47, 120, 21)
$Input3 = GUICtrlCreateInput("", 92, 75, 120, 21)
$Label1 = GUICtrlCreateLabel("用户名", 44, 52, 47, 17)
$Label3 = GUICtrlCreateLabel("密码", 44, 80, 39, 17)
$Button1 = GUICtrlCreateButton("写入", 56, 112, 49, 25)
$Button2 = GUICtrlCreateButton("取消", 160, 112, 57, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Dl()
Case $Button2
Exit
EndSwitch
WEnd
GUIDelete()
Func Dl()
IniWrite("C:\config.ini", "","",$Input1&"_"& $Input3)
EndFunc
|