Nach 2 Tagen suchen, hab ich nun in der MSDN eine Funktion gefunden um einen Infotext in Inputs einzufügen. Villeicht kanns ja mal jemand gebrauchen...
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
Opt('MustDeclareVars', 1)
[/autoit] [autoit][/autoit] [autoit]Example()
[/autoit] [autoit][/autoit] [autoit]Func Example()
Local $msg, $Input1, $Input2
GUICreate("Input Beispiel", 320, 120)
[/autoit] [autoit][/autoit] [autoit]$Input1 = GUICtrlCreateInput("", 10, 35, 300, 20)
_GUICtrlEdit_SetCueBanner(-1, "Ich bin ein Text,")
$Input2 = GUICtrlCreateInput("", 10, 70, 300, 20)
_GUICtrlEdit_SetCueBanner(-1, "und ich auch...")
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
MsgBox(0, "Dein Text ohne die CueBanner:", GuiCtrlRead($Input1) & @CR & GuiCtrlRead($Input2))
EndFunc ;==>Example
; #FUNCTION# ====================================================================================================================
; Name...........: _GUICtrlEdit_SetCueBanner
; Description ...: Displays a bannertext that disappears when the user clicks in the control
; Syntax.........: _GUICtrlEdit_SetCueBanner($hWnd, $sText)
; Parameters ....: $hWnd - Handle to the control
; $sText - String for text of CueBanner (Unicode)
; Return values .: Success - True
; Failure - False
; Author ........: Christian Korittke (Ahnungslos)
; Modified.......:
; Remarks .......: Minimun OS Windows XP, can't use on multiline edit controls
; Related .......:
; Link ..........:
; Example .......: Yes
; ===============================================================================================================================
Func _GUICtrlEdit_SetCueBanner($hWnd, $sText)
If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)
If Not StringLen($sText) Then Return False
Local $tagCueBannerText = "WCHAR Text[" & StringLen($sText) + 1 & "]"
Local $tTT = DllStructCreate($tagCueBannerText)
DllStructSetData($tTT, "Text", $sText)
Return _SendMessage($hWnd,$EM_SETCUEBANNER, FALSE, DllStructGetPtr($tTT))
EndFunc ;==>_GUICtrlEdit_SetCueBanner
Ich hoffe mal das es so eine Funktion noch nicht gibt, Google hat zumindest nichts gefunden^^