Newbies Craig Sanders Posted January 27, 2001 Newbies Posted January 27, 2001 I want to use single keys on the keyboard (probably the "z" to "?" row) to tally data points in various categories: "z", for example, might increase the numerical value of fieldone by 1, "x" might increase the value of fieldtwo, and so forth. Pressing the key has to do the whole job--pressing "return", for example, would make the process too inefficient. Is it possible for me to seize control of the keyboard in this way? Thanks.
BobWeaver Posted January 29, 2001 Posted January 29, 2001 Rather than use applescript or any other script that executes whenever you type a single key, why not just go into a global text field (called keyboardInput) and start hitting keys. When you are done, you can run a filemaker script Does the tallying like this: code: # CharCount is a global number field Set Field [CharCount, Calculation:1] Loop Exit Loop If [CharCount>Length(keyboardInput)] If [Middle(KeyboardInput,CharCount,1)="z" #tally the z field End If If [Middle(KeyboardInput,CharCount,1)="x" #tally the x field End If If [Middle(KeyboardInput,CharCount,1)="c" #tally the c field End If If [Middle(KeyboardInput,CharCount,1)="v" #tally the v field End If # and so on for each possible key #Go to the next character Set Field [CharCount, Calculation: CharCount+1] End Loop
Newbies Craig Sanders Posted January 30, 2001 Author Newbies Posted January 30, 2001 Thanks for the suggestion--it's just what I needed.
Recommended Posts
This topic is 8700 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