Hi Curtis, Jonathan's idea is right here. Actually, I have a method in mind whereby one can use a global hotkey which starts a thirty second timer, giving the user the opportunity to Alt-tab to the window they wish to have focus. The beauty of this approach is that it bypasses the need to have hotkeys enabled in any set file since they are disabled in the Kurzweil set file, k1000.set. In addition, a second hotkey will toggle the refocusing behaviour. This came to me over the course of the day today, and it seems elegant to me. Submitting the question here was and is intended for the stimulation it always provides to app developers.
Cheers, Rod -----Original Message----- From: Scripting [mailto:scripting-bounces+rod_hutton=hotmail....@lists.window-eyes.com] On Behalf Of Curtis Delzer via Scripting Sent: January 13, 2016 9:18 PM To: Jonathan C. Cohn <jon.c.c...@gmail.com>; Window-Eyes Scripting List <scripting@lists.window-eyes.com> Subject: Re: Scanner utility causes loss of focus the thing is, however, suppose we're running window-eyes, and need to use the scanner utility, what would happen then? I've had to have my scanner "print" a document. At 05:16 PM 1/13/2016, you wrote: >I would just create a global hot key that puts focus back and then >click the appropriate control you could probably even have it only >active when twain panel is active. > > >Jonathan Cohn > > > On Jan 13, 2016, at 7:58 PM, Rod Hutton via Scripting > <scripting@lists.window-eyes.com> wrote: > > > > Hi, > > > > I just thought I'd put out this question to you insightful people > before I go through the effort of writing a Window-Eyes app to address it. > > On the Kurzweil list, some users are having the issue of Kurzweil > 1000 losing focus during a scan, making it impossible to control > the scan process until the scan process completes, whereas, > normally, you can always interrupt a scan. > > Stephen Baum, from Kurzweil tech support writes: > > > > The Plustek scanner puts up a calibration dialog at the beginning > of a scan, which takes focus away from Kurzweil 1000. That same > dialog disappears later on in the scan, and focus returns to > Kurzweil 1000. It is annoying, and as I've posted a number of > times, I think it is a violation of the TWAIN specification on the > part of Plustek. > > > > End of quote from Stephen Baum > > > > Now I know it wouldn't be very difficult to create a Window-Eyes > app to detect the loss of focus and return it to Kurzweil. > > However, I thought I'd put the question out to you, that is, is > there a way of preventing focus loss within Windows using any means > you may be aware of? > > > > Thanks, > > > > Rod > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > <http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachme nts/20160114/6ba5c6f1/attachment.htm> > > _______________________________________________ > > Any views or opinions presented in this email are solely those of > the author and do not necessarily represent those of Ai Squared. > > > > For membership options, visit > http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/jon.c.coh n%40gmail.com. > > For subscription options, visit > http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com > > List archives can be found at > http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com >_______________________________________________ >Any views or opinions presented in this email are solely those of >the author and do not necessarily represent those of Ai Squared. > >For membership options, visit >http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/curtis10 14%40verizon.net. >For subscription options, visit >http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com >List archives can be found at >http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachme nts/20160113/d0d8c1b3/attachment.htm> _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/rod_hutto n%40hotmail.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com