jezr74 Posted November 28, 2006 Share Posted November 28, 2006 Hi There, Can anyone guide me on how to control the focus within a gui. I have made a simple logon gui. consisting of two inputs (username and password), and two buttons, enter, which will continue running the script if the creds are correct and exit gui. After typing in username and password, it would be good if I can just press the Enter key, and it automaticlly selects the Enter button. Currently I have to either tab or click the enter button. Hope this makes sense. thanks in advance. jtsm Link to comment Share on other sites More sharing options...
GaryFrost Posted November 28, 2006 Share Posted November 28, 2006 GuiCtrlSetState and $GUI_DEFBUTTON SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
jezr74 Posted November 28, 2006 Author Share Posted November 28, 2006 GuiCtrlSetState and $GUI_DEFBUTTONtoo easy.. thanks 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