J.J.,

I took a quick look because I knew this would be a simple app. The only thing I can come up with is you aren't hooking the OnHotkey. Let me start by saying I've never seen this fail...but if I change your OnHotkey to always return False (meaning I just changed your OnHotkey = True to OnHotkey = False) it still always works. So the Quit will shut down Window-Eyes even if the shutdown dialog comes up. So Quit can't be called when it fails.

Do we know when it fails if it says"existing"? My guess is that it is not saying this because your quickQuit never gets called in the case it doesn't work. So either your script isn't running properly or they tried to shut down before it was fully running or somebody else is eating the hotkey...

For those playing at home here is the code that does the work. It is very simple. Oh, by the way, I don't like that your OnHotkey function doesn't set the return value explicitly to False if the hotkey isn't the shutdown hotkey and isBeforeAction is true. VSScript is letting you get away with this by defaulting the return value to 0 which is false. Consider yourself flogged.


ConnectEvent Application, "OnHotkey", "OnHotkey"

Function OnHotkey(hotkeyId, isBeforeAction, defaultActionAborted)
if hotkeyId = hkShutdownWindowEyes and isBeforeAction then
quickQuit
OnHotkey = True
end if
end function

sub quickQuit()
Speak myStrings("exiting")
sleep 10000
Quit
end sub


Doug

On 6/22/2011 2:10 PM, J.J. Meddaugh wrote:
Hello. This is currently a known issue which has been reported, but I'm not able to reliably figure out exactly what is going wrong. Work take another look at this soon, and of course, anyone else is welcome to look at the code too.
Best Regards,
J.J. Meddaugh
A T Guys
Your Assistive Technology Experts
(269) 216-4798
http://www.ATGuys.com

    ----- Original Message -----
    *From:* Jeff Weiss <mailto:[email protected]>
    *To:* [email protected] <mailto:[email protected]>
    *Sent:* Wednesday, June 22, 2011 11:07 AM
    *Subject:* RE: Issue with Quick Quit

    After installing WE 7.5.1, I had that same issue.

    Just restarting the Quick Quit app, or restarting Window-Eyes took
    care of the problem for me.

    *From:*Sean Farrow [mailto:[email protected]]
    *Sent:* Wednesday, June 22, 2011 9:42 AM
    *To:* [email protected] <mailto:[email protected]>
    *Subject:* Issue with Quick Quit
    *Importance:* High

    Hi:

    I'm using the latest version of window-eyes, v7.5.1.

    When using the quick quit app, latest version I think given that
    I've just installed the upgrade to quickly change screen access
    technologies, I still sometimes get the quit window-Eyes Dialog
    appearing. Has anyone else observed this?

    If yes, does anyone know of a fix?

    Cheers

    Sean.

Reply via email to