You'll get an event for each key released, not all of them at once.
You would then have to keep track yourself of whether or not they were
released in some sort of order that you care about. Your bewilderment
comes from needing more knowledge about how events work. I could consult
your local VBScript resource, and brush up on those. Once you have that
knowledge, Window-Eyes events will fall into place.
Aaron
On 4/23/2010 4:56 PM, David wrote:
HM, see if I get you correct here. YOu mean, I would need something like:
Sub Results( pressedkeys )
Speak "You pressed the following keys: "
If PressedKeys = VK_F Then Speak "F, "
If PressedKeys = VK_D Then Speak "D, "
IF PressedKeys = VK_S Then Speak "S, "
End Sub
Am I getting any closer? And if so, how do I pass the Event to the
sub? Sorry, but I am quite bewildered here.
----- Original Message -----
*From:* Aaron Smith <mailto:[email protected]>
*To:* [email protected] <mailto:[email protected]>
*Sent:* Friday, April 23, 2010 10:49 PM
*Subject:* Re: OnKeyUp - help needed
OnKeyUp is an event. Events can be monitored so that you can
perform some action when the event you're interested in happens.
In other words, you need to write a routine that accepts the
parameters passed by the event, and act accordingly when those
parameters mean something you're interested in (in this case, they
keys that are released).
Aaron
On 4/23/2010 4:19 PM, David wrote:
I need to check if the S D and F keys has been pressed, and if
they are pressed in any simultaneous combination.
I did read the chapter on OnKeyUp, and also the OnKeyProcessedUp.
But it seems my skills fell short here. If I try something like
the following, I get the message that Object does not support and
so forth.
Result = Keyboard.OnKeyUp( VK_f, 0 )
Am I totally lost, when trying to use the OnKeyUp? or, what is it
I am doing wrong. And, any input as to how for me to check more
than one key. Is it possible, in any way, to do kind of
OnKeyUp( VK_F & VK_D & VK_S, 0 )
Thanks for any feedback!
------------------------------------------------------------------------
I am using the Free version of SPAMfighter
<http://www.spamfighter.com/len>.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 1548 of my spam emails to date.
The Professional version does not have this message.
--
Aaron Smith
Product Support Specialist * Web Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.
--
Aaron Smith
Product Support Specialist * Web Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.