Menu

#36 Surpress "Acquiring data" dialogue

Next_Release
open
None
3
2013-11-10
2013-11-09
Peter Nauta
No

I run iCopy on Win7 x64, icw a HP 5590 with ADF.

Having iCopy run the foreground makes it impossible to do anything else, because it focuses on the "acquiring data" window everytime. This means if you are typing something and press enter, it will cancel the scan batch. I suppose I could run it from the command line but that pretty much makes the GUI irrelevant.

Discussion

  • Matteo Rossi

    Matteo Rossi - 2013-11-09

    You are absolutely right, but the problem is that iCopy calls a function of the WIA APi which is responsible for the progress window that pops up when acquiring something. While there is another function that doesn't show any progress window, this is more difficult to use and has problems with some scanner drivers, so I decided not to use it, at least until I come to a solution to those problems. Unfortunately, the windows pops up even with the command line version.

    By the way the OS should be responsible of preventing windows from stealing focus to other applications, because this is a system-wide problem that can happen with other programs and not just with iCopy and I agree that it is very frustrating. While previous Windows versions had a registry hack to solve this problem, that hack is no longer working in Windows 7.

     
  • Peter Nauta

    Peter Nauta - 2013-11-09

    Yes, this is a rather annoying habit Windows has. XWindows in Unix variants at least had a "focus" function. OK, but could you not possibly do something like make it go to the background or something? If you have looked into it, I will have to live with it, by starting it on a separate laptop or something. I was scanning my school books (loose leaf) so I have quite a lot of batches to do.

     
  • Peter Nauta

    Peter Nauta - 2013-11-09

    Even tried Dexpot, no use. Still goes to active screen and cancels as I'm typing this :-(

     
  • Matteo Rossi

    Matteo Rossi - 2013-11-09

    I attached a version where I simply changed the function with the one that doesn't show the progress window. Please try it and see if it works. There are of course some problems with this workaround: the interface will be frozen until the scan is done, and you won't be able to cancel the acquisition.

     

    Last edit: Matteo Rossi 2013-11-09
  • Peter Nauta

    Peter Nauta - 2013-11-09

    Tried it on my laptop, hangs and after a while dumps a .Net error, see attachment. I will try tracing it later with sysinternals tools. Thanks for your help anyway.

     
  • Peter Nauta

    Peter Nauta - 2013-11-09

    I'm trying this on another machine, so will switch back to the old machine
    later, but the program seems to hang, and after a while gives me .Net
    0x8021000A. I could try sysinternals to see what went wrong.

     

    Last edit: Matteo Rossi 2013-11-10
  • Matteo Rossi

    Matteo Rossi - 2013-11-09

    Do you use the ADF? Does the crash occur with a single scan?

     
  • Peter Nauta

    Peter Nauta - 2013-11-10

    It seems that if I do not use the ADF, it has the same behaviour. The scanner momenarily resets, but does not start to scan. After 5 minutes or so, this error occurred (see attached files)

     
  • Matteo Rossi

    Matteo Rossi - 2013-11-10

    The error 0x8021000A is WIA_ERROR_DEVICE_COMMUNICATION, but I don't know why it happens with this function and it doesn't with the other one. Could you please attach the iCopy.log file that is located in the program directory or in C:\Users\Your Username\AppData\Local\iCopy?

    I tested the program with my Canon scanner and it works both with and without ADF

     

    Last edit: Matteo Rossi 2013-11-10
  • Peter Nauta

    Peter Nauta - 2013-11-10

    Sure.

     

Log in to post a comment.