Ulugbek Posted March 15, 2016 Posted March 15, 2016 Hi All First Thank you Farshad for give permission for create topic.. Is it posible work with barcode read scanner? I developing now mini POS system Quote
Abaksoft Posted March 15, 2016 Posted March 15, 2016 Hello Ulugbek, No problem for scanning barecode. - Barecode is not depending of unigui. - just put your cursor on an UniEdit and scann your product. - you must creat a table wich contains, for exemple : ProductName, ExpirationDate, Price_Buy, Price, Barcode, Quantity. It's not difficult. Good luck... Quote
Ulugbek Posted March 15, 2016 Author Posted March 15, 2016 Thank you for you replyCan you share example code or source?For sampleOn web form i have 1) UniEditFindBarcode2) UniNumberAmount3) UniNumberQty4) UniDbGrid Basket List Item5) BigButton Pay6) BigButton ClearBut how set cursor to UniEditFindBarcode when start reading or before reading scannerIf cursor not setting on UniEditFindBarcode cursor staying other controls grid or uniamt Quote
erich.wanker Posted March 15, 2016 Posted March 15, 2016 Hello Ulugbek, Barcodescanner is the same as a keyboard ... the Barcodescanner scanns EAN Code or something else and sends it like the keyboard to the OS I think the best way is: Write a little programm with a global keyborad hook in delphi .. (a lot of tutorials in the web) if your keyboard hook becomes a lot of numbers in a short time (timestamp-based analysis) then you can assume - that the barcodescanner is the sender of the numbers... a human can not enter 12 digits in the same time like a barcodescanner ;-) Send via parameter a usernumber and the EAN-Code to your Server!! .. like www.domain.com/unigui.dll?user=123&ean=4564846 Search the running UNIGUI-session of the user and do with the EAN values what you want ... disadvantage: 1.) you must install the Trayicon-application on the client machine 2.) the client must have a open browser with your running unigui application .. but the user must not focus the browser window - focus the edit-field and so on ... a more stable version hth Erich Quote
docjones Posted April 12, 2016 Posted April 12, 2016 Barcode scanner devices generally can work like a usb keyboard, o like a serial com device. Working barcode scanner as usb keyboard is the simpliest way, reading the codebar is like if your keyboard write the code in the focused control. it's not necessary develope a keyboard hook, just put a unieditcontrol, focus on him, and read the codebar with the scanner.. or you can do a form that capture the onkeyevent, show this form , and capture the reading keys. Quote
Ulugbek Posted April 13, 2016 Author Posted April 13, 2016 Barcode scanner devices generally can work like a usb keyboard, o like a serial com device. Working barcode scanner as usb keyboard is the simpliest way, reading the codebar is like if your keyboard write the code in the focused control. it's not necessary develope a keyboard hook, just put a unieditcontrol, focus on him, and read the codebar with the scanner.. or you can do a form that capture the onkeyevent, show this form , and capture the reading keys. Can you give mini demo ? Quote
radiocab Posted April 13, 2016 Posted April 13, 2016 Сканер считывает шрих-код и отправляет строку контролу, который в фокусе.Если в фокусе поле - то отображается в тексте, если в фокусе форма - то ловить надо через onkeyevent. Quote
docjones Posted April 13, 2016 Posted April 13, 2016 What is key send barcode scanner ? sorry, i don't understand what are you asking. open a notepad or word, then scan the codebar and see what happened For your unigui app is the same, it's like if you are typing the code and pressing intro with the keyboard. Quote
Ulugbek Posted April 14, 2016 Author Posted April 14, 2016 Ok I undertstand if i set webfocus EditControl then send barcode string into editContorl and onkeyevent or onchange event i will be select from database..... But how detect if webfocus setting on other control like button or unidbgrid i need before scanning set web focus editcontrol Quote
docjones Posted April 14, 2016 Posted April 14, 2016 it not necesary put the focus in edit control, there are several ways to do it, you can show new form to read, or read in focused control, or read all keys presed in active form / all controls. See attached example. , it capture all keys pressed in all controls (no necessary focused on edit), and determine if all keys are pressed fast (when reading from scanner all keys are typed very fast) there are not diference using a non unigui app, the method is the same, you must capture all key's pressed and control when or where keys are pressed. unitestscanread.rar Quote
smartbcn Posted September 24, 2018 Posted September 24, 2018 On 4/14/2016 at 11:03 AM, docjones said: it not necesary put the focus in edit control, there are several ways to do it, you can show new form to read, or read in focused control, or read all keys presed in active form / all controls. See attached example. , it capture all keys pressed in all controls (no necessary focused on edit), and determine if all keys are pressed fast (when reading from scanner all keys are typed very fast) there are not diference using a non unigui app, the method is the same, you must capture all key's pressed and control when or where keys are pressed. unitestscanread.rar The link is broken. Is possible to download? Thank you Quote
Sherzod Posted September 24, 2018 Posted September 24, 2018 Hello, Which edition and build are you using ?! Link works, unfortunately, you don't have permission to download Quote
PauloAgape Posted August 1, 2019 Posted August 1, 2019 Preciso do exemplo de usar barcode no uniguui, alguem cnsegue, obrigado. Quote
Hayri ASLAN Posted August 1, 2019 Posted August 1, 2019 1 hour ago, PauloAgape said: Preciso do exemplo de usar barcode no uniguui, alguem cnsegue, obrigado. Can you please specify which edition and build of UniGUI are you using? Quote
Luis German Posted June 22, 2020 Posted June 22, 2020 Testing the project, i notice that it takes a long time to process the data. Many times when using code bar scanners, data process with big speed is requiered. How to process the data as soon a #13 character is receipt, that is eol is detected ?. I activate synchronous mode but i notice no change. Thanks for your soon help Luis. Quote
radiocab Posted June 29, 2020 Posted June 29, 2020 On 6/22/2020 at 8:00 PM, Luis German said: Many times when using code bar scanners, data process with big speed is requiered I used java script ListenEventEnable function when turn on the barcode listener it send event with full barcode string to obj when got #13 function ListenEventEnable(obj) { var barcode_i=""; var r_obj=obj document.addEventListener("keydown", onBackKeyDown, false); function onBackKeyDown(eve) { var key=eve.keyCode; if (key==13) { ajaxRequest(r_obj,"BARCODE",["value="+barcode_i]); barcode_i=""; } else barcode_i=barcode_i+String.fromCharCode((96 <= key && key <= 105) ? key-48 : key); } } // and turn off listener function ListenEventDisable() { document.removeEventListener("keydown",onBackKeyDown,false); } Quote
mierlp Posted June 29, 2020 Posted June 29, 2020 Hi, You can use an onkeydown event from the editbox where the barcode is read. if (key = vk_return) then begin // Step 1: // Search the database using a filter or query and check the barcode // only occurs once with a record count // Step 2: // Now do what you want to do now that the barcode has been found // Step 3: // Clear the field and focus on the edit field end; Quote
Hayri ASLAN Posted June 30, 2020 Posted June 30, 2020 Hi, I'm currently working on Mobile Barcode Scanner. You can see the uncompleted demo from here: https://yildizehm.com/Intibak/elk/MobileBarcodeScanner.dll/m 1 Quote
mierlp Posted June 30, 2020 Posted June 30, 2020 That would be a nice and usefull component. Would it be part of unigui? Quote
Hayri ASLAN Posted June 30, 2020 Posted June 30, 2020 Yes, it is an UniGUI component. It might be in UniGUI OpenSource package. 1 Quote
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.