Hi David,

As I understood it, A I never meant for you to be able to define a single
hotkey as being a double press of a certain key.  That is, their only intent
was that you could add additional functionality to your basic hotkey by
allowing the user to press it twice (so, one press reads something, then two
might spell it instead of reading it).  Their intent however was that the
spell function in this example, was always designed to be the second press
of the basic hotkey.  So, if the user changed the basic hotkey, then it
should be made clear in the documentation that this secondary function would
just be a second immediate press of whatever this key was.

If you have in mind two unrelated functions, which you may want the user to
be able to assign to two unrelated hotkeys, then I think you cannot use the
second press feature for either of them (or the user cannot); this can only
be something you program in, and make clear in your docs, if you want the
second press of a hotkey to do something.

It may not be what you want, but I hope this at least clears it up a bit.

Chip


-----Original Message-----
From: Scripting
[mailto:scripting-bounces+lists3717=comcast....@lists.window-eyes.com] On
Behalf Of David via Scripting
Sent: Wednesday, June 03, 2015 6:05 PM
To: GWScripting
Subject: Double Hotkey, and Hotkey Manager

Listers,
Sorry for the wrong term, but my memory fails me, as to the correct 
term. I am wondering if there has been any further develop on a lack I 
found earlier.

Say your app has a hotkey that needs to be pressed twice within a second 
or so - Like Alt-F12, Alt-F12 - to perform a certain task. Last time I 
attempted to incoporate such a hotkey in my project, I found that it did 
not work well with the hotkey manager. You can make this work first 
hand, when releasing the app. But if the user wants to redefine the 
hotkey - say to Ctrl-F12, the hotkey manager will redefine it to only a 
SINGLE press of the hotkey - meaning that the app will react upon the 
first press of the hotkey.

Thing is, I have an app  here, where I want function1 to take place when 
the hotkey is pressed once, and only once. Function2 should kick in, 
when the user double-press the same key-combination. Hope this makes 
sense. But how can I work this out, so that the user can redefine to any 
other key-combo, even if he wants a Single-/Double-version of another 
key-combo. Like in the example above.

Sorry for a messy message, but hope I came through clear enough that 
someone could please let me know, if there is any workaround here. Or, 
is this not possible to achieve the way things stands as  of current?

-- 
David

_______________________________________________
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/lists3717
%40comcast.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

_______________________________________________
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

Reply via email to