Jump to content
Sign in to follow this  
Morthawt

Making enter button default to pressing the right button to submit input

Recommended Posts

smartee

hi Morthawt,

Have a look at the GUICtrlSetState() function, you may be interested in states $GUI_DEFBUTTON,$GUI_FOCUS. Also, look at/search GUISetAccelerators() in the helpfile.

Hope this helps

-smartee

Share this post


Link to post
Share on other sites
pieeater

you could use HotKeySet()

HotKeySet("{enter}", "check")

Func check()
    $txt=ControlGetText("","",$input1)
    If $txt == "CrAzY" Then func1()
    If $txt == "holy impossability" Then func2()
EndFunc

if the text from the inbox is CrAzY then func1() will happen


[spoiler]My UDFs: Login UDF[/spoiler]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.