ah, hab jetzt nochmal geschaut und die schönere lösung gefunden
GUICtrlSetState(-1,$GUI_FOCUS)
$pw = GUICtrlCreateInput("", 168, 205, 185, 21, -1, $WS_EX_CLIENTEDGE)
GUICtrlSetState(-1,$GUI_FOCUS)
GUICtrlSetFont(-1 , 8.5, 400, 0, "Tahoma")
GUICtrlSetStyle(-1,$ES_PASSWORD)
mein problem ist jetzt nur noch das das feld kein passwort feld ist sondern alles klartext anzeigt. warum?