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 7795763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:09:46+00:00 2026-06-01T23:09:46+00:00

Our reception has a barcode scanner plugged into a Macbook Mini, which is used

  • 0

Our reception has a barcode scanner plugged into a Macbook Mini, which is used by the receptionist. When people ‘check in’, they use the barcode scanner to scan their membership card, which then writes to a browser window.

If the receptionist has something else open, and therefore the relevant browser window is not the focus, then the input gets ignored.

So far, I have figured out that the input looks to OSX like a keyboard. My plan is to intercept the input from that ‘keyboard’ and use AppleScript to always send it to the same browser window.

I realise the whole thing can be improved – use a dedicated micro-device that just makes a CURL request using an API. However, for the moment, there is no API, no micro-device, and I need a solution ASAP.

So how do I intercept input from a specific keyboard? Or is there another quick solution?

  • 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-06-01T23:09:48+00:00Added an answer on June 1, 2026 at 11:09 pm

    I had to do something similar, on windows though. In my case the browser window usually was not open and I had to open it and browse somewhere specific with the barcode data.

    I discovered that many barcode scanners can emulate a serial port even though they have a USB connection, including the one I had.

    In most programming languages serial port data is very easy to read so the solution that I went with was a Java windows service that receives serial port scans and opens the appropriate URL when scanned. I posted some of the bare bones scan reader code here some time ago.

    Anyway, you could see if your model can emulate serial port data and then you can capture it for your purposes, I think it would be better than a keyboard hook.

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

Sidebar

Related Questions

Our data model is separated into schemas on two databases. The schemas are used
Our site has a list of games and we get paid everytime someone signs
Our lovely app that downloads mp3s from our server into a local file on
Our school's project only allows us to compile the c program into 64-bit application
Our company has recent started switching from Blackberries to iPhones and the biggest complaint
Our app (before authentication) has Customers and Widgets. As you'd expect each customer has
I have a .txt file on our webserver which gets updated and replaced by
Our company has until bought a lot VS Pro/Premium and Ultimate Licenses, and each
I am developing an HTA that will run as a kiosk in our reception
Our Rails 3 application has models Person and Message . Messages can be specific

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.