The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 Tylers Scripting

Subject:

 Re: OnKeyProcessedUp repeating speech?

Date:

 Mon, May 17, 2010 7:08:26 pm
Hi Martin,
I changed some things in your code, so try this.
begin VBScript
Dim keyEvent
Sub FNKeys(vk, km)
Select Case vk
Case 174
Speak "volume down"
Case 175
Speak "volume up"
Case 176
Sleep "1000"
End Select
End Sub
keyEvent = ConnectEvent (Keyboard, "OnKeyProcessedUp", "FNKeys")
Hth,
Tyler

----- Original Message -----
From: martin webster
To: gw-scripting@gwmicro.com
Date: Monday, May 17, 2010 12:34:02
Subject: OnKeyProcessedUp repeating speech?



Hi all,
below follows a snippit of my script which speaks the F/Not keys and what they do on my HP pro book laptop. If you hold down the F/Not key and press F11 this will turn the master volume down and if you hold down the F/Not key and hit F12 this turns the master volume up. The problem I am having with the below routine is that hitting F11 or F12 repeats the speech twice. When pressing F11 or F12 you hear "volume down volume down" or "volume up volume up". How can I stop this?. there is a HP notification window which opens when pressing any of the F/Not conbo keys, would this cause this and if so how do I block it.
begin VBScript
Dim keyEvent
Sub FNKeys(vk, km)
Select Case vk
Case 174
Speak "volume down"
Case 175
Speak "volume up"
End Select
End Sub
keyEvent = ConnectEvent (Keyboard, "OnKeyProcessedUp", "FNKeys")
Warm regards.
Martin Webster.





Tyler Juranek!
Working hard to promote student advocacy, one student at a time!