Jump to content

Recommended Posts

Posted

ok i have a gui with an input box and some defualt text in the box. I would like for the text in the input box to be highlighted when the GUI is started.

also how can i make pressing "enter" on my keyboard activate a button on the GUI

Posted

You will want to take a look at the _GUICtrlEditSetSel() UDF (included with AutoIt and mentioned in the help file) for setting the selection and possibly ControlFocus() for giving focus to that control if this doesn't happen automatically.

A button with the $BS_DEFPUSHBUTTON style will be activated when a user presses the Enter key.

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
×
×
  • Create New...