Sign in to follow this  
Followers 0
Morthawt

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

3 posts in this topic




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

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  
Followers 0