kmps Posted April 29, 2006 Share Posted April 29, 2006 I'm now trying to make a Input dialog GUI script of myself: $InputDialogHd=GUICreate($caption,200,85,-1,-1,$WS_DLGFRAME) $EditPassWordHd=GUICtrlCreateInput("",10,12,179,20,BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD)) $ButtonOkHd=GUICtrlCreateButton("ok",15,38,50,23) $ButtonCancelHd=GUICtrlCreateButton("cancel",136,38,50,23) GUISetState() While 1 ... WEnd And I want the above dialog can act like this:once I had finished input my password and press "ENTER" key the button "ok" will be clicked by default just the same happend as I use the function InputBox() please tell me how I can get that act,thank you! Link to comment Share on other sites More sharing options...
HardCopy Posted April 29, 2006 Share Posted April 29, 2006 $ButtonOkHd=GUICtrlCreateButton("ok",15,38,50,23) GUICtrlSetState(-1,$GUI_DEFBUTTON) HardCopy Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad Link to comment Share on other sites More sharing options...
kmps Posted April 29, 2006 Author Share Posted April 29, 2006 thanks a lot! $ButtonOkHd=GUICtrlCreateButton("ok",15,38,50,23) GUICtrlSetState(-1,$GUI_DEFBUTTON) HardCopy 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