Sign in to follow this  
Followers 0
kmps

A Question About Guictrlcreateinput

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



$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

Share this post


Link to post
Share on other sites

thanks a lot!

$ButtonOkHd=GUICtrlCreateButton("ok",15,38,50,23)
GUICtrlSetState(-1,$GUI_DEFBUTTON)

HardCopy

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0