This project has moved. For the latest updates, please go here.

Scanner button

May 4, 2015 at 8:56 AM
Hello,

I have one more question. Is it possible to subscribe to scan button events and retrieve scanned images?

Thanks
Coordinator
May 4, 2015 at 7:38 PM
Hello, GennadyBaranov.
The question is not entirely correspond to the Saraff.Twain.NET, however try the following:
Supporting AutoPlay
How to Register a Handler for a Device Event
Creating Push-Model Aware Applications
Registry Entries for Still Image Devices
How to teach scanners to scan silently by buttons without windows and crutches?

Sample for ABBYY FineReader
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\WIA_{E84BA8E6-BD8C-4CDB-B913-3803EE725330}]
"DefaultIcon"="sti.dll,0"
"Action"="ABBYY FineReader 10"
"InitCmdLine"="/WiaCmd;C:\\Program Files (x86)\\ABBYY FineReader 10\\AbbyySti.exe /clsid {C942B3A5-8DD2-4D83-81B8-21F7645EFA73} /StiDevice:%1 /StiEvent:%2;"
"Provider"="ABBYY FineReader 10"
"CLSID"="{A55803CC-4D53-404c-8557-FD63DBA95D24}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\StillImage\Registered Applications]
"ABBYY FineReader 10"="C:\\Program Files (x86)\\ABBYY FineReader 10\\AbbyySti.exe /clsid {C942B3A5-8DD2-4D83-81B8-21F7645EFA73} /StiDevice:%1 /StiEvent:%2"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StillImage\Events\STIProxyEvent\{E84BA8E6-BD8C-4CDB-B913-3803EE725330}]
"Name"="ABBYY FineReader 10"
"Desc"="ABBYY FineReader 10"
"Icon"="sti.dll,0"
"Cmdline"="C:\\Program Files (x86)\\ABBYY FineReader 10\\AbbyySti.exe /clsid {C942B3A5-8DD2-4D83-81B8-21F7645EFA73} /StiDevice:%1 /StiEvent:%2"
Marked as answer by SARAFF on 5/10/2015 at 12:11 AM