【已解决】如何显示带星号的密码
本帖最后由 dnvplj 于 2015-3-28 14:45 编辑请教各位朋友,下面的代码中在输入密码时,如何让其用星号显示。#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 288, 133, 192, 124)
$Group1 = GUICtrlCreateGroup("", 8, 8, 273, 89)
$Label1 = GUICtrlCreateLabel("输入密码:", 24, 32, 64, 17)
$Label2 = GUICtrlCreateLabel("确认密码:", 24, 64, 64, 17)
$Input1 = GUICtrlCreateInput("", 96, 32, 169, 21)
$Input2 = GUICtrlCreateInput("", 96, 64, 169, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("确定", 80, 104, 65, 25)
$Button2 = GUICtrlCreateButton("取消", 152, 104, 65, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Case $Button2
Exit
EndSwitch
WEnd $Input1 = GUICtrlCreateInput("Input1", 96, 32, 169, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
回复 2# lpxx
感谢“lpxx”朋友的回复,问题解决了。 学习。。。。。。。。。。 使用GUIGTRLREAD密码获取会不会出现密码不能全部获取到的问题?
页:
[1]