本帖最后由 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
|