找回密码
 加入
搜索
查看: 6408|回复: 9

[系统综合] [已解决]求助大大,关于登陆密码框的密码显示样式

  [复制链接]
发表于 2010-2-4 11:14:16 | 显示全部楼层 |阅读模式
本帖最后由 a62105400 于 2010-11-29 18:22 编辑

最近在写个软件,写到登陆密码这里我用input来接受密码 ,input加了$ES_PASSWORD 样式 ,当输入密码时是显示****号, 当我看别人的程序有的显示是●●●●,比如AU3论坛登陆密码,QQ2009都是显示●,有办法改变显示的这个样式吗?
找了好久都没有办法
求助各位大大了!


已解决 非常感谢5楼的大大提供的函数
在帮助里的例子
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GuiEdit.au3>
#include <GuiConstantsEx.au3>

Opt('MustDeclareVars', 1)

$Debug_Ed = False ; Check ClassName being passed to Edit functions, set to True and use a handle to another control to see it work

_Main()

Func _Main()
    Local $hEdit

    ; Create GUI
    GUICreate("(Internal) Edit Get Password Char", 400, 300)
    $hEdit = GUICtrlCreateInput("Test of build-in control", 2, 2, 394, 25, $ES_PASSWORD)
    GUISetState()

    MsgBox(4096, "Information", "Password Char: " & _GUICtrlEdit_GetPasswordChar($hEdit))

    _GUICtrlEdit_SetPasswordChar($hEdit, "$") ; change password char to $
    
    MsgBox(4096, "Information", "Password Char: " & _GUICtrlEdit_GetPasswordChar($hEdit))

    _GUICtrlEdit_SetPasswordChar($hEdit) ; display characters typed by the user.

    MsgBox(4096, "Information", "Password Char: " & _GUICtrlEdit_GetPasswordChar($hEdit))

    ; Loop until user exits
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main
发表于 2010-2-4 12:26:34 | 显示全部楼层
$passwd = InputBox("Security Check", "Enter your password.", "", "●")
发表于 2010-2-4 12:59:38 | 显示全部楼层
$passwd = InputBox("Security Check", "Enter your password.", "", "●")
boyhong 发表于 2010-2-4 12:26



    对,就是那样,想显示什么就什么,很爽
 楼主| 发表于 2010-2-4 14:26:15 | 显示全部楼层
饿。。。。。我知道这样也行,不过还是希望能直接把*换成●感觉才爽啊
发表于 2010-2-4 15:26:14 | 显示全部楼层
闲的蛋疼。。。。

#Include <GuiEdit.au3>
_GUICtrlEdit_SetPasswordChar($hWnd[, $cDisplayChar = "0"])
发表于 2010-2-4 20:38:19 | 显示全部楼层
呵呵学习一下。。
发表于 2010-2-6 16:02:25 | 显示全部楼层
呵呵  又学到经典了  拿钱闪人
发表于 2015-7-2 23:14:06 | 显示全部楼层
学习学习,留标记
发表于 2016-1-3 16:48:33 | 显示全部楼层
呵呵  又学到经典了
发表于 2017-3-11 15:35:02 | 显示全部楼层
不错很实用,又学习又拿钱真好
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-16 17:11 , Processed in 0.082882 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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