Re: [Gambas-user] usb codebar reader how to handle events!?

2015-12-24 Thread Charlie
I can't see how you are supposed to tell if you are typing on a keyboard or using a barcode reader as they are both USB devices setup to look like a keyboard. It's probably possible but you'll need somebody who can write code to read USB ports and understands how they work - That's not me! OK

[Gambas-user] usb codebar reader how to handle events!?

2015-12-23 Thread PICCORO McKAY Lenz
now continues with strange petitions: now i have a usb metrologic code bar reader, of course in each plug and play changes the usb node, that was solved!! My problem are now that i want to detect when the input comes from this device and not from the keyboard! the reader returns chars! i can

Re: [Gambas-user] usb codebar reader how to handle events!?

2015-12-23 Thread Jack
Le 23/12/2015 16:59, PICCORO McKAY Lenz a écrit : > now continues with strange petitions: > > now i have a usb metrologic code bar reader, of course in each plug and > play changes the usb node, that was solved!! > > My problem are now that i want to detect when the input comes from this > device

Re: [Gambas-user] usb codebar reader how to handle events!?

2015-12-23 Thread PICCORO McKAY Lenz
Errr.. Jack! i have already preconfigured with prefix (an "a") and sufix (a "z"), i want without that!, i wnat detect the event itselft! 2015-12-23 11:45 GMT-04:30 Jack : > Hello, > > a barcode reader does not need to be declared in the system. It is > automatically

Re: [Gambas-user] usb codebar reader how to handle events!?

2015-12-23 Thread PICCORO McKAY Lenz
thanks charlie.. currently as i previusly posted, that's was doint! but my reader does not return "enter" or "carrige return" , only the code that reads! by now i can configure with "return" at the end of the read, or with a prefix and a sufix.. but i want to do not depend on those tricks! Lenz

Re: [Gambas-user] usb codebar reader how to handle events!?

2015-12-23 Thread Charlie
The barcode reader will only return the barcode information not the special characters that are needed to create it. Once all the barcode is sent the barcode reader will send a *Return key*. We can use Gambas to check for the *Return key* so we know the barcode has been completely read. If you

Re: [Gambas-user] usb codebar reader how to handle events!?

2015-12-23 Thread Fabien Bodard
hey jack : Textbox.Text = Mid$(Textbox.Text, 2, Len(Textbox.Text)) Textbox.Text = Right(Textbox.Text, -1) 2015-12-23 20:16 GMT+01:00 PICCORO McKAY Lenz : > thanks charlie.. currently as i previusly posted, that's was doint! but my > reader does not return "enter" or