找回密码
 加入
搜索
查看: 2589|回复: 4

[AU3基础] 【已解决】如何显示带星号的密码

[复制链接]
发表于 2015-3-28 12:17:48 | 显示全部楼层 |阅读模式
本帖最后由 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
发表于 2015-3-28 13:40:45 | 显示全部楼层
$Input1 = GUICtrlCreateInput("Input1", 96, 32, 169, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))

评分

参与人数 1金钱 +10 收起 理由
dnvplj + 10 乐于助人

查看全部评分

 楼主| 发表于 2015-3-28 14:44:12 | 显示全部楼层
回复 2# lpxx
感谢“lpxx”朋友的回复,问题解决了。
发表于 2015-3-29 17:23:23 | 显示全部楼层
学习。。。。。。。。。。
发表于 2015-12-3 22:18:20 | 显示全部楼层
使用GUIGTRLREAD密码获取会不会出现密码不能全部获取到的问题?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-17 19:29 , Processed in 0.074946 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表