Home › Forums › TWAIN Classic › Transition from state 5 to 6 › Reply To: Transition from state 5 to 6
as far as I understand that, by setting showUI=FALSE and DAT_USERINTERFACE MSG_ENABLEDS I am in state 5 and the source knows that there is something to scan. then it should send a message to the application with XFERREADY. which brings it to state 6 and then I can get the picture with DG_IMAGE, DAT_IMAGEFILEXFER, MSG_GET which takes place in state 7.
the only thing which I still don’t understand is if I have to do anything special to make the source send the XFERREADY message like sending requests if there are any messages ready for me.
The only thing I found in the spec was MSG_PROCESSEVENT but I understood that this is only needed if I want to use Windows messages to start the scan process.
>>SCAN BUTTON
yes I looked up a few windows commands (GetSTILaunchInformation, RegisterLaunchApplication,…) which looked useful but I want to have a program which doesn’t only work in windows.
I also found MSG_DEVICEEVENT and CAP_DEVICEEVENT but they are unfortunately not supported by most devices, but maybe with the new TWAIN 2.0….hopefully