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