seiryklav Posted March 24, 2007 Share Posted March 24, 2007 ;Guicreated $child = GUICreate("logon", 200, 100,) GUISetState(@SW_SHOW, $child) GUISetOnEvent($GUI_EVENT_CLOSE, "childclose") ;Buttons $ok1 = GUICtrlCreateButton("OK", 140, 25, 50, 30) GUICtrlSetOnEvent(-1, "writeini") ;Inputs GUICtrlCreateInput("", 10, 20, 75, 20) GUICtrlCreateInput("", 10, 65, 75, 20) ;Labels $user = GUICtrlCreateLabel("Username", 10, 5, 75, 12) $pass = GUICtrlCreateLabel("Password", 10, 50, 75, 12,"" ,$ES_PASSWORD) ;GUICtrlSetState(-1, $ES_PASSWORD) I want the password to be asteriks when it is typed it, and then im going to have another window popup confirming the password... This code isnt making the password asteriks.. help please??? ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
BrettF Posted March 24, 2007 Share Posted March 24, 2007 (edited) Just make the input box have the style : "$ES_PASSWORD" EDIT: I've never seen a $ES_PASSWORD style on a label.... Edited March 24, 2007 by bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
seiryklav Posted March 24, 2007 Author Share Posted March 24, 2007 (edited) i just tried $pass = GUICtrlCreateLabel("Password", 10, 50, 75, 12) GUICtrlSetStyle($pass, $ES_PASSWORD) and it doesn't work EDIT: *slaps self in head* IM SUCH A NOOB!!! lol.. now it works, when applied to an actual input... Edited March 24, 2007 by seiryklav ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
seiryklav Posted March 24, 2007 Author Share Posted March 24, 2007 now that i got that working... For some reason when i open a new gui from a previous gui, and i "X" the window, the parent window of the one recently "Xed" doesn't want to "X" out.... i'm going to post the code for this whole shabang... its a guiscript to automatically sign me into myspace... i know it can be done simpler (cause i have one that works), but i want to make it complicated, to learn more about Autoit.. here goes expandcollapse popup#include <GUIConstants.au3> Opt("GUIOnEventMode", 1) Global $regis = 1, $child = 1, $confirm = 1 #Region ### START Koda GUI section ### Form= $parent1 = GUICreate("Myspace", 197, 205, 193, 115) GUISetBkColor(0xFF0000) GUISetOnEvent($GUI_EVENT_CLOSE, "MyspaceClose") $Myspace = GUICtrlCreateButton("Myspace", 112, 152, 75, 25, $BS_DEFPUSHBUTTON) GUICtrlSetOnEvent(-1, "MyspaceClick") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Func myspaceclick() If FileExists("/Temp/myspace.ini") Then $Myspace = 1 EndIf If Not FileExists("/Temp/myspace.ini") Then $Myspace = 0 EndIf If $Myspace = 0 Then $regis = GUICreate("Register", 200, 100) GUISetState(@SW_SHOW, $regis) GUISetOnEvent($GUI_EVENT_CLOSE, "childclose2") GUICtrlCreateLabel("Register for Myspace Auto Logon?", 5, 20, 200, 20) GUICtrlCreateButton("OK", 55, 60, 50, 30) GUICtrlSetOnEvent(-1, "myspacelogin") GUICtrlCreateButton("Cancel", 115, 60, 50, 30) GUICtrlSetOnEvent(-1, "childclose2") EndIf If $Myspace = 1 Then Run("C:\Program Files\Mozilla Firefox\firefox.exe") EndIf EndFunc ;==>myspaceclick While 1 Sleep(100) WEnd Func myspacelogin() Local $regis = 0 If $regis = 0 Then GUIDelete($regis) EndIf ;Guicreated $child = GUICreate("logon", 200, 100,) GUISetOnEvent($GUI_EVENT_CLOSE, "childclose") GUISetState(@SW_SHOW, $child) ;Buttons $ok1 = GUICtrlCreateButton("OK", 140, 25, 50, 30) GUICtrlSetOnEvent(-1, "confirmpass") ;Inputs GUICtrlCreateInput("", 10, 20, 75, 20) $pass = GUICtrlCreateInput("", 10, 65, 75, 20, $ES_PASSWORD) ;Labels GUICtrlCreateLabel("Username", 10, 5, 75, 12) GUICtrlCreateLabel("Password", 10, 50, 75, 12) EndFunc ;==>myspacelogin Func confirmpass() $confirm = GUICreate("Confirm", 200, 100) GUISetOnEvent($GUI_EVENT_CLOSE, "confirmclose") GUISetState(@SW_SHOW, $confirm) GUICtrlCreateLabel("Please confirm your password.", 10, 5, 75, 12) GUICtrlCreateInput("", 10, 65, 75, 20) GUICtrlCreateInput("", 10, 65, 75, 20) GUICtrlCreateButton("OK", 140, 25, 50, 30) EndFunc ;==>confirmpass Func MyspaceClose() Exit EndFunc ;==>MyspaceClose Func childclose() GUIDelete() EndFunc ;==>childclose Func childclose2() GUIDelete() EndFunc ;==>childclose2 Func confirmclose() GUIDelete() EndFunc ;==>confirmclose ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
nfwu Posted March 24, 2007 Share Posted March 24, 2007 (edited) Multipule GUIs, dude. Save the window ids of the seperate GUIs and use those for the GUIDelete() and what not. #) edit: You'd wanna save those in global variables. Edited March 24, 2007 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
seiryklav Posted March 24, 2007 Author Share Posted March 24, 2007 (edited) so it would look something like this Global $parent, $child, $child2 do i have that right??? EDIT: guess i do.. it works now.. sweet Edited March 24, 2007 by seiryklav ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
seiryklav Posted March 24, 2007 Author Share Posted March 24, 2007 im scouring the help file, but cant find what im looking for now how can i make a child GUI be created, NOT on top of the parent??? ContactAim- bluehydrolic Link to comment Share on other sites More sharing options...
BrettF Posted March 24, 2007 Share Posted March 24, 2007 so it would look something like this Global $parent, $child, $child2 do i have that right??? EDIT: guess i do.. it works now.. sweet Yup Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now