回复 2# afan 谢谢A版哥。。您给的这个参数。俺慢慢消化下。。刚搜索看到顽固不化大哥的一个相类似的例子。。改了下可用。。但还是需要慢慢消化...谢谢您。。。。#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 496, 108, 272, 233)
$Checkbox1 = GUICtrlCreateCheckbox("星号", 312, 32, 97, 57)
GUICtrlSetState($Checkbox1, $gui_checked)
$Input1 = GUICtrlCreateInput("Input1", 64, 48, 225, 21, BitOR($ES_PASSWORD, $ES_AUTOHSCROLL))
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
$yes = False
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
$a = GUICtrlRead($Input1)
GUICtrlDelete($Input1)
If $yes = False Then
$Input1 = GUICtrlCreateInput("", 64, 48, 225, 21, $ES_AUTOHSCROLL)
$yes = True
Else
$Input1 = GUICtrlCreateInput("", 64, 48, 225, 21, BitOR($ES_PASSWORD, $ES_AUTOHSCROLL))
$yes = False
EndIf
GUICtrlSetData($Input1, $a)
EndSwitch
WEnd
|