Sign in to follow this  
Followers 0
alienkillaz

have an input box hightlighted

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

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