When reading bar-codes the gun adds an "Enter" at the end. In a spreadsheet if the focus was on cell A1 once the bar-code is read the focus will be in cell A2 as if "Enter" had been pressed.
In Gambas using gb.gtk toolkit this works: - .... CatchBarcodeEnter = Key.Code If Key.Code = Key.Enter Or CatchBarcodeEnter = 65293 Then .... It does not work without the 65293 part. This is not recommended as we are warned: - "Never compare the value of this property with a numeric constant, because the key codes may depend on the underlying toolkit. Always use the constants defined in this class!" Do you know how I might get around this? Thanks, Charlie -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-catch-a-bar-code-Enter-tp48645.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user