twbradio Posted October 17, 2005 Share Posted October 17, 2005 I have an application that presents a row of iclons and an input box for the user to use for certain support functions at a corporate site. I use on event mode to process commands. Is there a way to determine if the carriage return has been pressed in the input box so that a function can be performed. I have searched the forum and the help file in the past, but the words carriage, return and enter are a bit too common . Thank you, Tom Brown Anyone have a TRS 80 Model III for sale? Link to comment Share on other sites More sharing options...
w0uter Posted October 17, 2005 Share Posted October 17, 2005 cant you just hotkeyset {enter} ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
BigDod Posted October 17, 2005 Share Posted October 17, 2005 I have an application that presents a row of iclons and an input box for the user to use for certain support functions at a corporate site. I use on event mode to process commands. Is there a way to determine if the carriage return has been pressed in the input box so that a function can be performed. I have searched the forum and the help file in the past, but the words carriage, return and enter are a bit too common . Thank you,Tom BrownYou could always put a button on your GUI and make it the default button, thus when enter is hit it presses the button. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
w0uter Posted October 17, 2005 Share Posted October 17, 2005 You could always put a button on your GUI and make it the default button, thus when enter is hit it presses the button.inputbox has more priority to capture the enter key then a default button. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
seandisanti Posted October 17, 2005 Share Posted October 17, 2005 I have an application that presents a row of iclons and an input box for the user to use for certain support functions at a corporate site. I use on event mode to process commands. Is there a way to determine if the carriage return has been pressed in the input box so that a function can be performed. I have searched the forum and the help file in the past, but the words carriage, return and enter are a bit too common . Thank you,Tom Browneither of the two suggestions posted would work, or if you REALLY wanted to reinvent the wheel and waste processor time, you could make an adlib function that uses _IsPressed() to watch for the enter key...personally i'd go with the default button solution if there's a button that does the same thing as enter, if no button, use the hotkey to call the function... Link to comment Share on other sites More sharing options...
seandisanti Posted October 17, 2005 Share Posted October 17, 2005 inputbox has more priority to capture the enter key then a default button.wouldn't that only be true if it's a multi-line? Link to comment Share on other sites More sharing options...
twbradio Posted October 17, 2005 Author Share Posted October 17, 2005 :"> I knew this would happen ... so I searched for the default button in the help file and got a ton of results, but didn't see what I was looking for. I had come to the conclusion that the default button was a vicious rumor that I had tortured myself with. For some reason I didn't think to look at the GUICTRLSetState entry until I searched for default button encased in quotes. :"> So, the default button idea works just fine. Thank you for your input. I've spent so much time on some of the more radical portions of the new language that I have obviously missed a few of the basics.Tomwouldn't that only be true if it's a multi-line? Anyone have a TRS 80 Model III for sale? Link to comment Share on other sites More sharing options...
w0uter Posted October 17, 2005 Share Posted October 17, 2005 (edited) i experienced otherwise. but maby he will have more luck then me.[edit] my memory was wrong: http://www.autoitscript.com/forum/index.ph...topic=14926&hl= [/edit] Edited October 17, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
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