EllenG Posted August 27, 2003 Posted August 27, 2003 Is there any way to "capture" the Enter key, to do the following: Signal the end of input (like the Tab key) Script another action depending on the field In other words, I would like to make the Enter key into a keyboard command that will then run a script depending on what field the cursor is in when the Enter key is pressed?
BobWeaver Posted August 27, 2003 Posted August 27, 2003 If you are already in a script, the pause step will wait for the enter key and then continue. So, you could structure a script to go to a field then pause. Then, when the user hits enter, it could perform another action based on the value of Status(CurrentFieldName).
jasonwood Posted August 27, 2003 Posted August 27, 2003 Since you said you want to run a script "depending" on what field the cursor is in when the inter key is pressed, you will also want to put a series of "If's" after the pause to check which field is the current field.
EllenG Posted August 27, 2003 Author Posted August 27, 2003 OK.. What am I doing wrong? I've tried using Pause in a script, but it does not recognize the Enter key as a user function to continue the script. All it does on Enter (in a text field) is a line break. That happens even if I set a character limit in the field definition. I've tried using a timed pause, with a loop, ending the loop on a patterncount when it detects the Enter symbol. That sort of works, but it also cuts off user input depending on how long it takes the user to enter data. I'm not an Access programmer, but I know that you can assign Events to a field and also define how the keys work; so that you can make the Enter key act like the Tab key, and also set certain events to happoen depending on what is entered in the field. That's what I am trying to accomplish, but it doesn't seem viable in FM..??
Anatoli Posted August 27, 2003 Posted August 27, 2003 RE: All it does on Enter (in a text field) is a line break. There are 2 keys. The rightmost next to numbers is Enter, the right -- Return -- between letters and numbers letters is doing line break. For further Events requirement you may research more Plugins for FM. HTH
Recommended Posts
This topic is 8019 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