[Gambas-user] how to detect if input comes from keyboard

2015-12-23 Thread PICCORO McKAY Lenz
ok if i have some input devices, and only one keyboard, how can i discriminate if the chars input comes from the keyboard or from other inpput device example /dev/input/event7 as usb! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com

[Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread PICCORO McKAY Lenz
i have a non printable char in a string, that i have to remove: non printable char "Ⱶ" how to remove from string! when i try to print to frontend, got a error asertion failed in gtk when i try to print to console output got a rombo with and "?" inside! how gambas manage this king of chars?

[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] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread PICCORO McKAY Lenz
i resend the char discovered by me, and the returnet by asc 195 and not the same.. in any of the case i workaround using predefined constants and removing "extra" bytes from the string.. there's no way to detect that char from a serial device... must be a bug in the printer.. thanks all for help

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] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Charlie
Have a look at this code, note that the "Ⱶ" character is Chr(195) see here *Public Sub form_Open() Dim sString As String sString = Chr(195) & "Hello World" & Chr(195) Print sString sString = Replace(sString, Chr(195), "") Print sString End* -- View this message

Re: [Gambas-user] Variation in output

2015-12-23 Thread Charlie
Thanks for this Zainudin A. It does work as you described. Can you tell me why this works and why it doesn't work in a Home directory? Thanks. -- View this message in context: http://gambas.8142.n7.nabble.com/Variation-in-output-tp54889p55085.html Sent from the gambas-user mailing list archive

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] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Ru Vuott
opsss.. only a little adjustment: ** Public Sub Main() Dim s As String = "abcd efg" & Chr(195) & "hil mnop" Dim bb As Byte[] Dim b As Byte Print s bb = Byte[].FromString(s) For b = 0 To bb.Max If

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Ru Vuott
If the problematic character is > 127, you could use IsAscii() function: Public Sub Main() Dim s As String = "abcd efg" & Chr(195) & "hil mnop" Dim bb As Byte[] Dim b As Byte Dim i As Integer Print s With bb = Byte[].FromString(s) i = .Count End With

Re: [Gambas-user] Release of Gambas 3.8.4

2015-12-23 Thread Fabien Bodard
2015-12-22 18:17 GMT+01:00 PICCORO McKAY Lenz : > 2015-12-22 4:43 GMT-04:30 Jack : > >> Now Gambas works on windows and Mac. >> > > ohh no! Well it's just a workaround... but it allow to use gambas programs hosted on another system linux >

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

Re: [Gambas-user] Variation in output

2015-12-23 Thread zainudin ahmad
Because I use "inxi" from the directory "/tmp/Execute_bug", Maybe you can try - Delete this line: Chmod "/tmp/Execute_bug/inxi" To "rwx" - And changing: Shell "/tmp/Execute_bug/inxi -n -Z -c0" To sNetwork become: Shell "inxi -n -Z -c0" To sNetwork On Thu, Dec 24, 2015 at 12:02 AM,

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Fabien Bodard
Can you write the output to a file and send it to me ? 2015-12-23 20:14 GMT+01:00 PICCORO McKAY Lenz : > i resend the char discovered by me, and the returnet by asc 195 and not the > same.. > > in any of the case i workaround using predefined constants and removing >