; https://www.autoitscript.com/forum/topic/211400-autoit-password-style/?do=findComment&comment=1529603
#include <GUIConstants.au3>
#include <WinAPIGdi.au3>
GUICreate("Login", 200, 100)
GUICtrlCreateLabel("", 10, 10, 180, 19, $SS_BLACKFRAME)
GUICtrlSetState(-1, $GUI_DISABLE)
Local $idInput = GUICtrlCreateInput("123456", 13, 11, 154, 17, $ES_PASSWORD, $WS_EX_TOOLWINDOW)
Local $idEye = GUICtrlCreateLabel("👁", 167, 11, 21, 17, $SS_CENTERIMAGE), $bHide = True
GUICtrlSetFont(-1, 14, 400, 0)
Local $idEyeSl = GUICtrlCreateLabel("/", 174, 8, 10, 21)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 16, 300)
Local $iDefault = GUICtrlSendMsg($idInput, $EM_GETPASSWORDCHAR, 0, 0)
GUISetState()
While True
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $idEye
$bHide = Not $bHide
GUICtrlSetState($idEyeSl, $bHide ? $GUI_SHOW : $GUI_HIDE)
GUICtrlSendMsg($idInput, $EM_SETPASSWORDCHAR, $bHide ? $iDefault : 0, 0)
_WinAPI_RedrawWindow(GUICtrlGetHandle($idInput))
EndSwitch
WEnd