Hi. I am trying to, on the fly, if a certain word is typed into a gui input box, then turn it into a password field to shield the next input from being viewed, so I can perform more options based on the password entered. I have tried a switch with a case looking for a word, which worked, but it does not alter the input to have a password style: heres the little snippet that works because the msgbox pops up, so I know it is varifying the right word. It just does not alter the field to a password field. Case $usedport = 'tools' GUICtrlSetStyle($port, $ES_PASSWORD) MsgBox(0, '', 'test') What am I doing wrong? Thanks