Matt Malyschko Posted May 25, 2011 Posted May 25, 2011 Hi there, I am trying to implement using a barcode scanner with FMP. The usb scanner sends the return keycode after each input (as do most scanners). After each input, I want to move to the next field. My script is quite simple: if code(get(triggerkeycode)) = 10 or code(get(triggerkeycode)) = 13 (both return and enter) Go To Field(Field 2) end if Which has been attached as a script trigger on OnObjectKeystroke. This works fine, however, after moving to the next field, it still sends the return code and the new field gets a new line. Is there anyway I could send null or not send anything at all after it goes to the next field? Thanks heaps!
comment Posted May 25, 2011 Posted May 25, 2011 This works fine, however, after moving to the next field, it still sends the return code and the new field gets a new line. Add this step before End If: Exit Script [Result:0] See also: http://www.filemaker.com/11help/html/edit_layout.10.34.html#1029649
Matt Malyschko Posted May 25, 2011 Author Posted May 25, 2011 Add this step before End If: Exit Script [Result:0] See also: http://www.filemaker.com/11help/html/edit_layout.10.34.html#1029649 Thankyou very much!
Recommended Posts
This topic is 5281 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