snow Posted March 17, 2022 Share Posted March 17, 2022 Hello, in my VCL application the user can scan a barcode. The barcode is processed via the OnKeyPress-Event (KeyPreview = true) of the active form. In VCL, here I also get control characters like e.g. #14 (SO), #15 (SI) or #29 (GS). If I do the same in UniGUI, unfortuantely all control characters are filtered out. Is there any chance to get these characters to be transmitted as well? Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2022 Share Posted March 17, 2022 53 minutes ago, snow said: If I do the same in UniGUI, unfortuantely all control characters are filtered out. Hello, Can you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
snow Posted March 17, 2022 Author Share Posted March 17, 2022 If I scan the following example barcode (contains non-visible Field Separator GS = #29) ASCII chars: #31#32#33#29#34#35#36 Visible text: 123456 in VCL I get the #29 char in OnKeyDown of the form whereas in UnGUI application I don't (just #31#32#33#34#35#36). Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2022 Share Posted March 17, 2022 1 minute ago, snow said: whereas in UnGUI application I don't (just #31#32#33#34#35#36). Is it possible to attach a test case? Quote Link to comment Share on other sites More sharing options...
snow Posted March 17, 2022 Author Share Posted March 17, 2022 I attached two basic projects (VCL + UniGUI) plus a barcode to reproduce the problem. In VCL control char #29 is caught in FormKeyPress and displayed in the Memo, in UniGUI it isn't. Thanks in advance examples.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 18, 2022 Share Posted March 18, 2022 18 hours ago, snow said: I attached two basic projects (VCL + UniGUI) plus a barcode to reproduce the problem. In VCL control char #29 is caught in FormKeyPress and displayed in the Memo, in UniGUI it isn't. Hello, I will try to check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 18, 2022 Share Posted March 18, 2022 23 hours ago, snow said: If I scan the following example barcode (contains non-visible Field Separator GS = #29) Sorry again for the clarification. How do you pass this data to the app? Quote Link to comment Share on other sites More sharing options...
snow Posted March 18, 2022 Author Share Posted March 18, 2022 One way is by using a simple barcode scanner connected to the PC via USB (e.g. Honeywell MS9540) and scanning the barcode while the application is focused. The other way is using a handheld scanner (e.g. from Zebra with Android) and running the Web app in the browser of that device (VCL app via RDP). So for testing purposes number one should be easier. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 18, 2022 Share Posted March 18, 2022 So far I haven't been able to find a way to pass these values... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.