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
To: [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.
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.
--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 1548 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
The Professional version does not have this message