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

Re: reversing the process

Forums › TWAIN Classic › Simple TWAIN app question – reverse the process › Re: reversing the process

October 20, 2009 at 7:53 am #25056
spike
Participant
  • Topics - 10
  • Replies - 139
  • Total Posts - 149

This is called ‘push model’ – where the scan is initiated from the scanner instead of from the application.

I’m sure others know more about this than I do, but I have two suggestions:

In your code, open the scanner and poll the scanner for feeder loaded (ICAP_FEEDERLOADED) and when it shows true, wait a moment (in case user is straightening the paper) and then start a scan. User doesn’t even have to push a button. But only works if the scanner can (silently) poll and report feeder loaded.

Check out ‘STI’ – this is an older Microsoft scanner API, the ancestor of WIA. It allows scanners to generate events like button-presses, and applications (like yours) can register to receive notice of those events.
Or at least, an app can be launched… so you might have to have a little mini-app that gets launched on the button-press, and it sends a message to your main app…
Try google for STI scanner button press

Whoo! Found a guy who does his own STI registration by filling in the registry entries – muy macho:
http://icopy.sourceforge.net/?p=98

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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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