Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7650821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:21:04+00:00 2026-05-31T11:21:04+00:00

I want to prompt the user to scan a bar code or RFID tag.

  • 0

I want to prompt the user to scan a bar code or RFID tag. That (I guess) means either MessageDlg() or a small form – I don’t care which and invite advice.

When I read a scan over serial port or HID (or timer or WM_xxxx), I want to close that prompt.

What is the simplest way to go about that? Thankls

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:21:06+00:00Added an answer on May 31, 2026 at 11:21 am

    We have this feature in our application with even 1 more integrated step to start with.
    I will describe it fully, as it might be useful to you.

    We have a modal dialog that allows the user to enter the Serial Id for a device by either keying it in with the keyboard or just scanning the barcode tag.

    Step 1. We have a menu item with a Hot Key (Shortcut Ctrl+Alt+N for instance). We have configured the scanner so that it sends this preamble whenever it scans a barcode. (Manual equivalent of keying in the shortcut). That opens the modal dialog.

    Step 2. The Focus is in a Edit box to get the Serial ID either from the user and the keyboard or from the scanner reading the barcode.

    Step 3. There are an [OK] and a [Cancel] buttons. The OK button has Default:=True and ModalResult:=mrOK. The Cancel button has Cancel:=True and ModalResult:=mrCancel. The scanner is set to postfix the scanned string with Enter which has the same effect as the user hitting the [Enter] key or clicking the OK button: it closes the modal dialog with mrOK in the ModalResult so we can read the Edit.text to get the SerialID.

    Step 3bis. The user presses [Esc] or click on Cancel or closes the dialog with the title bar close button: it closes the dialog with anything but mrOK and we discard whatever is in the Edit…

    Works very well in our case with any scanner working as an HID emulation (keyboard) and where we can configure the preamble. (sending Enter at the end was by default in all the scanners we tried).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a form with a date and I want prompt the user if
I want to prompt the user that something special has happened, so I want
Before the user closes the form I want to prompt with a confirmation box.
I want to make a javascript function that will prompt user to put space
I prompt the user if they want to order fish, once they are done
I want to compile C code from the Command Prompt in Windows. I have
I really want to prompt my user to keep the session alive, shortly before
I want to prompt the user for a number and then use NCalc to
I want to prompt a user to cut from a 'last' command along with
I want to prompt a user via command line & ask what specific rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.