[Gambas-user] Keyboard input help requested

Rolf-Werner Eilert eilert-sprachen at ...221...
Thu Mar 15 10:22:33 CET 2012


Am 15.03.2012 10:12, schrieb Cogier:
>
> I have a barcode reader that will sent the result of a scan to any text
> editor, or word processor as it  emulates a keyboard.
>
> What I can't seem to do is get Gambas to read the string produced, it must
> be similar to reading a file but all my efforts so far have failed.
>
> Any help would be appreciated.

Depends on the interface - what does the reader's manual say about that? 
Does it produce input under Linux anyway? And if so, what exactly 
happens and when?

 From what you say, it runs this way: The user scans, the scanner says 
BEEP, and a string is sent (as if from the keyboard) to the GUI object 
currently having the focus. Right? Keyboard input is read via KeyCodes 
in Gambas, so maybe your approach is just the wrong one (not file, not 
string, but _KeyPressed)? Did you try a TextBox, and did it have the focus?

Regards

Rolf




More information about the User mailing list