Hi all,
the following VBScript should silence a key that is press and allow the 
keystroke to be processed by the appkication.  I pointed this at notepad, and 
it worked to some extent, but did not totally silence the key press. "h" was 
heard on the down press and all so on the key's release. I want the key to 
remain totally silent and allow the keystroke to be processed by the under 
lying app. What am I missing hear?.
begin VBScript:

Dim keyEvent
Function silenceKey(vk, km)
 If vk = vk_h Then
silenceKey = dkSilent 
 End If
End Function
keyEvent = ConnectEvent(keyBoard, "OnKeyUp", "silenceKey")
keyEvent = ConnectEvent(keyBoard, "OnKeyDown", "silenceKey")

Regards.
Martin Webster.





Reply via email to