Von daher bleibt vermutlich nur der Workaround, zwei Controls zu erstellen und miteinander auszutauschen:
Haha...so ging es mir auch...nach einer Stunde rumprobieren den Style zu ändern habe ich es dann so gemacht:
BigRox So lange der Mousecursor über dem Button ist und gedrückt bleibt, so lange wird der Klartext angezeigt
C
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Misc.au3>
Opt("MustDeclareVars", 1)
Opt("GUIOnEventMode", 1)
Global $idButton, $idGUI_Msg, $idInp_Passwort0, $idInp_Passwort1, $idBtn_PWAnzeigen, $ggci, $gui
$gui = GUICreate("Include-Datei suchen:", 830, 261, -1, -1, BitOR($WS_CAPTION, $WS_SYSMENU))
GUISetBkColor(0x3680FF)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEButton")
$idInp_Passwort0 = GUICtrlCreateInput("", 226, 31, 380, 36)
GUICtrlSetFont(-1, 16, 800, 0, "Times New Roman")
GUICtrlSetState($idInp_Passwort0, $GUI_HIDE)
$idInp_Passwort1 = GUICtrlCreateInput("", 226, 31, 380, 36, $ES_PASSWORD)
GUICtrlSetFont(-1, 16, 800, 0, "Times New Roman")
;GUICtrlSetData(-1, "Das ist aber schön.")
$idBtn_PWAnzeigen = GUICtrlCreateButton("Passwort anzeigen.", 65, 130, 220, 40)
GUICtrlSetFont(-1, 14, 400, 0, "Times New Roman")
GUICtrlSetBkColor(-1, 0x2FF130)
GUISetOnEvent($GUI_EVENT_PRIMARYDOWN, "PWAnzeigen")
GUISetState(@SW_SHOW)
While 1
Sleep(100)
WEnd
Func PWAnzeigen()
$ggci = GUIGetCursorInfo($gui)
If $ggci[4] = $idBtn_PWAnzeigen Then
GUICtrlSetData($idInp_Passwort0, GUICtrlRead($idInp_Passwort1))
GUICtrlSetState($idInp_Passwort1, $GUI_HIDE)
GUICtrlSetState($idInp_Passwort0, $GUI_SHOW)
While _IsPressed("01") ;_WinAPI_Mouse_Event ( $MOUSEEVENTF_LEFTDOWN)
Sleep(10)
WEnd
GUICtrlSetState($idInp_Passwort0, $GUI_HIDE)
GUICtrlSetState($idInp_Passwort1, $GUI_SHOW)
EndIf
EndFunc ;==>PWAnzeigen
Func CLOSEButton()
MsgBox($MB_OK, "GUI Event", 'Passwort: "' & GUICtrlRead($idInp_Passwort1) & '"' & @CRLF & @CRLF & "Das Programm wird jetzt beendet.")
GUIDelete()
Exit
EndFunc ;==>CLOSEButton
Alles anzeigen
Ich hab zwar meist keine Ahnung, aber Suchen und Finden funktioniert noch super
Du Glücklicher...Suchen funktioniert bei mir EINWANDFREI.....nur mit dem Finden habe ich Probleme...