MacWise just looks for a dialog event for each keystroke and sends the character to a telnet host. The keystrokes are processed one at a time. The telnet host sees the character code and echos it back to the MacWise screen. I don't think I could do this another way. Each character needs to be evaluated to see if it is a control character or Control key or whatever before it is sent to the host. There is no problem typing as fast as I can. But the barcode scanner types faster than any human. I have asked my customer to let me barrow a barcode scanner so I can see where the failure is. I should have it next week. I suspect that _evKey events are being dropped but won't know until I can test with the scanner myself. Rich On Jun 5, 2008, at 11:46 AM, Edwards, Waverly wrote: > >>> > Is there some event or keyboard buffer in FBtoC that could be modified > to accept keyboard events faster? > Or maybe it is a buffer size issue for the events? > << > > > Curious... > > Are you reading the barcode and sending FB events or custom events. > > There is a finite number of events that can be pushed into the (old) > FB > event queue before they are read out. > I don't know the answer to your question but how about creating a > private queue where the simulated > key events occur. If you use a statically sized queue you can monitor > when the user is going too fast > for input or two you could have a dynamically sized queue and not have > to worry about how fast the user > is going but you would have latency in recognition or delayed error > responses if the user is scanning > a lot of items quickly. > > > W. > > -----Original Message----- > From: Rich Love [mailto:richlove@...] > Sent: Thursday, June 05, 2008 12:09 PM > To: futurebasic@... > Subject: [FB] FBtoC Keyboard typing speed > > I have a customer that uses a USB barcode scanner to scan data into my > MacWise terminal emulation window. > He has a problem with characters getting dropped and not being > displayed > when he uses the scanner. > I re-compiled MacWise as a FB app and he says it works perfect. > > The barcode scanner simulates typing on the keyboard at a faster rate > than you could actually type. > FBtoC can't keep up with the keyboard speed when using the scanner. > > I am using On Dialog to get the keyboard events. > I have events set to 1/60 second with poke long event - 8, 1 > > > Is there some event or keyboard buffer in FBtoC that could be modified > to accept keyboard events faster? > Or maybe it is a buffer size issue for the events? > > > Rich > > -- > To unsubscribe, send ANY message to: > futurebasic-unsubscribe@... > > -- > To unsubscribe, send ANY message to: futurebasic-unsubscribe@... >