Forums › All Things TWAIN › Changing TWAIN driver defaults
- This topic is empty.
-
AuthorPosts
-
MattH
- Topics - 102
- Replies - 197
- Total Posts - 299
I have an application running in a Citrix farm that is used by 300-ish people. There are four or five different scanner models in use, but they are all Canons (C240, M140, 2050C, etc) Before they can scan for the first time, they have to launch the scanner interface and downgrade the quality to 200dpi + Black and White or the application will timeout and I will need to terminate their Citrix session. Once those settings are selected, they persist, however … If a User opens an application like Acrobat Pro and scans from there using the default settings of the driver, they will once again have to change the settings in the Citrix app. Which they forget to do. Constantly.
Is there a way (preferably using powershell or command scripts) to change the TWAIN driver defaults so that my app, and Acrobat (and whatever other scan app is being used) will just pick those up and Users won’t have to be manually changing scan preferences?
MarkM- Topics - 102
- Replies - 197
- Total Posts - 299
There are two registry entries on Windows for applications that follow the Specification and use the TWAIN DSM to report the default. The value is collected by the DSM and reported back to the application through the DG_CONTROL / DAT_IDENTITY / MSG_GETDEFAULT operation.
For 32-bit applications (using TWAIN_32.DLL or TWAINDSM.DLL, it doesn’t matter) set:
key: Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\TWAIN\Default Source
value: C:\Windows\twain_32\(rest of path to desired .ds file)For 64-bit applications set:
key: Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\TWAIN64\Default Source
value: C:\Windows\twain_64\(rest of path to desired .ds file) -
AuthorPosts