twain_library icon indicating copy to clipboard operation
twain_library copied to clipboard

How to automatically close the Source UI after the scan is complete?

Open dongshaoyang opened this issue 1 year ago • 1 comments

When I use the DTWAIN_AcquireFile function for acquisition with bShowUI set to true, the Source UI needs to be closed manually after the acquisition is complete. How can I make it close automatically? I didn't use the DTWAIN_SetTwainMode function to set of modal / modeless dialogs.

dongshaoyang avatar Jul 22 '24 06:07 dongshaoyang

You can try DTWAIN_SetMaxAcquisitions, and set the maximum number of acquisitions to 1. This should be called before DTWAIN_AcquireFile.

dynarithmic avatar Jul 22 '24 23:07 dynarithmic

The suggestion of using DTWAIN_SetMaxAcquisitions should solve the issue. Since this issue has been opened for a month, this will be closed.

dynarithmic avatar Aug 16 '24 04:08 dynarithmic