TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Reply To: detecting if feeder are ready or not

Forums › TWAIN Classic › detecting if feeder are ready or not › Reply To: detecting if feeder are ready or not

August 31, 2007 at 11:13 am #24130
gabe
Participant
  • Topics - 9
  • Replies - 583
  • Total Posts - 592

depends somewhat on how they send the dialog.
If they post the dialog to your handle you should be able to catch createWindow event with a cbtHook and the user will hear the error but (at least on my machines) the dialog is closed (post message with the controlId) before it even shows up. If however they run the dialog on another thread (I have a hp that does this)… then the cbt hook may not catch it (mine doesn’t). For those cases I have a second thread that I fire up to poll for windows that exist during the execution of the triplet that didn’t exist before the triplet was sent. Those dialogs show up for a moment before they’re closed. While the polling method is a bit slower (<100ms slower in most cases) it offers more accurate information (or I'm doing something wrong in my cbthook) In the cbthook the controlId is sometimes off, the controlId may be reported at 1 for OK and the polling thread says that the controlId for the ok button is 2. so far the detection with polling has never been wrong and the cbtHook has been *mostly* correct.

someone elses sample boxeater:
http://cschubert.net/html/boxeater.html

.

Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in