Sign in to follow this  
Followers 0
jezr74

Focus on button after pressing enter

3 posts in this topic

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

Share this post


Link to post
Share on other sites



GuiCtrlSetState and $GUI_DEFBUTTON

too easy.. thanks

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