alienkillaz Posted September 3, 2005 Share Posted September 3, 2005 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 Link to comment Share on other sites More sharing options...
LxP Posted September 3, 2005 Share Posted September 3, 2005 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. 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