shounei 发表于 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








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

shounei 发表于 2009-4-28 20:39:21

呵呵是BitAND
搞定了

sensel 发表于 2009-4-28 20:41:39

去看GUICtrlCreateInput的风格部分,看$ES_PASSWORD是什么

hollandmfq 发表于 2014-5-6 12:27:02

雷锋精神传天下!谢谢分享!
页: [1]
查看完整版本: 怎么让输入到对话框的字可以显示出来