Jump to content
Sign in to follow this  

Focus on button after pressing enter

Recommended Posts

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.


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...