Hi, thank you for all the great information! I was able to get it working,
although in the end my sister got help from someone else on this list. I
definitely saved the information provided for future reference.
Thanks,
Timothy Breitenfeldt
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Udo Egner-Walter
Sent: Sunday, November 13, 2022 7:56 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Modifying JAWS Pitch Temporarily
Hi Timothy,
sorry, there are wrong chars in the mail text. So I created a PDF-Document,
Word-Document and HTML-Document with the code and short description. You can
find it here.
<https://e1.pcloud.link/publink/show?code=VZuDKQZsAAUUGR3AM5iLAfR5xnHLjyxyHB7>
I have added a view lines: if you press shift key again the trapkeys function
is turned off and the following key in't capitalized.
To download all files press the download button and select the second entry in
the popup list which will create a zip archive and download it.
Hope this helps
Udo
Am 13.11.2022 um 13:44 schrieb Udo Egner-Walter <udo.egner-walter@xxxxxx>:
Hi Timothy,
sorry for answering so late but I found your message in my spam folder
šŸ˜¢
Maybe you could use something like the following. It was a quick script so be
careful and test it to avoid unforeseen actions:
Place the line:
shift´iftScript
into your default.jkm file and add this script:
<Script Start>
Globals
; for storing information if shift was pressed
int bShift
Script ShiftScript ()
; shift key was pressed so ...
; ... say a message
SayString ("Shift was pressed")
; ... play a sound
; command for playing sound goes here (have a look at FSDN)
; store information that shift was pressed
bShift ´rue
; trap keys (keys that weren't assigned to ; scripts like single
letters
TrapKeys (True, True)
EndScript
; event called during key press
Void Function KeyPressedEvent (int nKey, string strKeyName, int
nIsBrailleKey, int nIsScriptKey)
; if shift was pressed
If bShift then
; convert key beeing pressed to upper case and write it
TypeString (StringUpper (strKeyName))
; store information that shift isn't pressed any more
bShift ´alse
; no more trapping keys because our shift key was typed
TrapKeys (False, False)
EndIf ; If bShift then
; pass on event to JAWS so other KeyPressedEvents are fired
KeyPressedEvent (nKey, strKeyName, nIsBrailleKey, nIsScriptKey)
EndFunction
<Script End>
I hope this helps. Let me know if something goes wrong or the script should
be expanded.
Happy scripting
Udo
Am 31.10.2022 um 04:20 schrieb timothyjb310@xxxxxxxxx:
Hi, I am new to the list.
I am working on a project using auto hotkey. The project is a type of
sticky keys script for my sister to use who can only type with one
hand. Basicly basically she wants the script to make the shift key
behave very similarly to the IOS keyboard for specifically
letters/numbers, where you can press the shift key to toggle it on
and off, and as soon as you press a character key, it flips shift
mode off. Built in sticky keys is not what she wants, the only thing that is
wanted is a sticky shift key.
I have a script that I found that mostly does this in auto hot key,
however for some reason JAWS does not read the typed capitalized
letter in a hire pitch like what would be expected. NVDA does, but I
just cannot get JAWS to identify the letter as capitalized. JAWS is
reading the letter though. I setup the auto hot key script to connect
to the JAWS COM object thinking that I could possibly use an API call
to force the pitch change, although I am not seeing that as an
option. However, I can run jaws scrips through the JAWS API. I am not
familiar with JAWS scripting, and was not able to find an answer with
my own research. So, is it possible to say make a call using the JAWS
COM object API to run a function or script to change the pitch of jaws,
speak the letter using the COM API, then revert the pitch back to normal?
This is the best solution I have come up with to provide a seamless
experience, although I did consider two other options. The first was
to just play a sound to signify the letter was capitalized, and the
second was to just prepend the word "cap" before the letter. Neither
option is ideal, since of course a seamless user experience would be
best. So is this even possible to change the pitch using JAWS scripting?
Thanks,
Timothy Breitenfeldt
__________ļæ½
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts
__________ļæ½
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts