Mandu Posted January 15, 2008 Posted January 15, 2008 I have a login dialog window with one field, into which the user types his initials. There are two buttons, Continue and Cancel. Continue is the default button, and as such I want the user to be able to hit RETURN (or the normal ENTER key on a PC) in lieu of clicking Continue. I'm having difficulty doing that. The login is driven by a script which creates the dialog window, positions the cursor in the name field, sets a global variable to "Continue", and then Pauses. In the dialog window, the name field's behavior is set to "move to next field" for RETURN, TAB, and ENTER (to not do that would allow return/tab/enter to be inserted in the name field). Both the Continue button and the Cancel button are programmed to resume the script; in addition, Cancel button is bound to a script that sets the global variable to "Cancel". After Pause Script, the main script checks the global variable to see if Continue or Cancel was indicated. I can't get the script to resume when I hit RETURN, however. Is there any way to do that? Thanks, Chap
Recommended Posts
This topic is 6157 days old. Please don't post here. Open a new topic instead.
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