跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] 开源分享一个 Windows 下扫码枪监听工具,用来监听转发扫描结果

发表于

其实扫码枪、条码枪都是一种 HID 设备,读取的原理就是监听键盘输入,因为之前我写过一个网页,通过监听 keypress 实现过,项目运行了一年不到,这次又来了个新需求,就是需要处于非活跃状态录入,如果不是活跃标签页,就无法监听,串口 API 其实也能用,不过已有的扫码枪不一定都能读串口,所以前端也不好做。

我所写的这个桌面端程序就是用来解决这一痛点的,打开后图标会显示到 Windows 托盘上后台运行,将条码枪输入的内容转发到指定后端接口上。 后端可以通过 http 转发的结果进行处理,纯前端可以通过 WebSocket 连接然后处理。

目前用了 2 周没问题,测试了火绒,Windows Defender 不报毒,使用的 Golang, 构建的 exe 文件体积大概 10MB 左右,可以自己编译,支持 Windows 7 以上环境运行。

仓库地址:

https://github.com/ij369/scanners-go

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.