fschreiner Posted August 15, 2006 Posted August 15, 2006 Hi, I'm a autoit newbie and I have just build my first GUI. Now I've got a short question. There are 3 Input fields and 2 Buttons (OK and Cancel) in my GUI. At the startup the focus is set to the first input field. Up to now, everythig's all right. Now I want that the Return key has the same function as a click on the OK Button. At the moment nothing happens when pressing return if the focus is on an input field. Many thanks for your answers!!!
MHz Posted August 15, 2006 Posted August 15, 2006 Hi,Perhaps you want to set a default button by using the button style $BS_DEFPUSHBUTTON.Creates a push button with a heavy black border. If the button is in a dialog box, the user can select the button by pressing the ENTER key, even when the button does not have the input focus. This style is useful for enabling the user to quickly select the most likely option, or default.
blademonkey Posted August 15, 2006 Posted August 15, 2006 You know, i tried that too, and that didnt work for my script. ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung
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