找回密码
 加入
搜索
查看: 1632|回复: 3

怎么让输入到对话框的字可以显示出来

[复制链接]
发表于 2009-4-28 20:33:16 | 显示全部楼层 |阅读模式
本帖最后由 shounei 于 2009-4-28 21:24 编辑

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
GUISetIcon("008.ico")
$Form2 = GUICreate("密码对话框", 251, 99, -1, -1)
$1 = GUICtrlCreateInput("", 8, 32, 233, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
$2 = GUICtrlCreateButton("确定(&O)", 86, 64, 75, 25, 0)
$3 = GUICtrlCreateButton("取消(&C)", 167, 64, 75, 25, 0)
$4 = GUICtrlCreateLabel("请输入密码:", 8, 12, 76, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $2
                        $w=GUICtrlRead($1)
                                IniWrite(@ScriptDir & "\QQNetBar.ini" , "账号","na",$w)
                        Exit

        EndSwitch
WEnd








怎么让输入到对话框的字可以显示出来
 楼主| 发表于 2009-4-28 20:39:21 | 显示全部楼层
呵呵是  BitAND
搞定了
发表于 2009-4-28 20:41:39 | 显示全部楼层
去看GUICtrlCreateInput的风格部分,看$ES_PASSWORD是什么
发表于 2014-5-6 12:27:02 | 显示全部楼层
雷锋精神传天下!谢谢分享!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-28 07:20 , Processed in 0.079535 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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