Jump to content

A Question About Guictrlcreateinput


kmps
 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...