[jawsscripts] Re: How to Get JAWS to Automatically Activate JAWS cursor When CMD Window Is Populated?

  • From: "Panes, James" <james.panes@xxxxxxx>
  • To: "'jawsscripts@xxxxxxxxxxxxx'" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 31 Jul 2015 12:50:16 +0000

The only thing I would add to Geoff's tutorial is that the hot key to start the
JAWS script manager is:
Insert+0 or JAWSKey+0 or Capsloc+0 for a notebook.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
Sent: Thursday, July 30, 2015 8:22 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: How to Get JAWS to Automatically Activate JAWS
cursor When CMD Window Is Populated?

Hi JooYoung.

Did you ever get this sorted?

AutoStartEvent ()
is a function that runs whenever a new program gains focus.

And
AutoFinishEvent ()
is a function that runs whenever the program loses focus, e.g. when you
altTab away from it or some other program opens in the foreground etc.

So, it's in these functions that you place your JawsCursor () and PCCursor
() functions.


if your brand knew to this lark, then try this:


1. bring focus to the CMD.exe window.

2. hit JawsKey +f2, then s until ScriptManager option gains focus, and hit
enter.
You should then be placed in presumably a new blank script file entitled,
CMD.jss.

tip: hit upDown arrows and check that the file is blank.

3. paste in the following default lines in the top of this presumably blank
file,
which are a good idea to have at the top of any script file you write for an
application.


include "hjconst.jsh"

include "hjGlobal.jsh"

include "common.jsm"


4. below these lines, hit Control+E, to bring up the new Script dialog, and
fill in the following parameters thusly:
ScriptName: AutoStartEvent
Cam be attached to key: leave this at it's default state of unchecked,
because you are writing a userFunction, not a Script, so it doesn't need a
hotkey.
Synopsis: write a brief description if you like, of what your function is
doing/why it's there. i.e. something like "AutoActivates JawsCursor when app
gains focus."
Description: you can leave blank, but if you want a longer description,
here's where you would write it.
Category: set to cursor.
FunctionReturns: Set to "Void."
ReturnDescription: you can leave blank.
Then tab to ok and press spaceBar.

Now you should be in the centre of a blank new userFunction, which should
look like this:

Void Function AutostartEvent ()


EndFunction

now in between these lines, paste in something like the folowing, making
sure the syntax is correct.
I.e. all Parentheses, commas, quotation marks etc, are properly in place:

JawsCursor ()

SayUsingVoice (VCTX_JAWSCURSOR, "Jaws", OT_Cursor)

; now call default version of this function so as to not miss anything
standard that is needed

AutoStartEvent ()


Then, below the EndFunction line,
Repeat the process from the Control+E step, except this time, you would
write the newScript/function name as:
AutoFinishEvent

Then, after creating the new blank AutoFinishEvent function, and insuring
that your focused between the
Void Function AutoFinishEvent ()
and
EndFunction
lines,
paste the following:
PcCursor ()

SayUsingVoice (VCTX_PCCURSOR, "Pc", Ot_Cursor)

; now call default version of this function so as to not miss anything
standard that is needed

AutoFinishEvent ()


Then, hit control+S, to see if your brand new script file saves/compiles
successfully.

Hope this helps.


----- Original Message -----
From: "JooYoung Seo" <jzs323@xxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, July 16, 2015 4:18 AM
Subject: [jawsscripts] Re: How to Get JAWS to Automatically Activate JAWS
cursor When CMD Window Is Populated?


On 7/15/15, Peter Torpey <ptorpey00@xxxxxxxxx> wrote:
Try writing a script for cmd.exe

Use the AutoStartEvent function to turn on the JAWS cursor.
Use the AutoFinishEvent function to turn on the PC cursor.

--Pete

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of JooYoung Seo
Sent: Wednesday, July 15, 2015 12:58 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] How to Get JAWS to Automatically Activate JAWS
cursor
When CMD Window Is Populated?

Hi all,
I am JooYoung Seo, who is a new member of this list.
I hope I will be able to learn lot from many expertiesabout scripting.
Can anybody help me to perform the following task?:
I want to get JAWS to automatically activate JAWS cursor when CMD
window is populated and back to PC cursor when the window closes.
I think I may need to use JAWSCursor() function, but have no idea
about how toapply this function in the script.
Any assistance will be greatly appreciated.
Thank you in advance.

JooYoung
__________�

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




--
JooYoung Seo
--------------------
Graduate Student,
Learning, Design, and Technology
Learning and Performance Systems
The Pennsylvania State University
Phone: +1 (814) 777-5836
E-mail: jzs323@xxxxxxx
__________�

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


_______________________________________________________________________
If you received this email in error, please advise the sender (by return email
or otherwise) immediately. You have consented to receive the attached
electronically at the above-noted email address; please retain a copy of this
confirmation for future reference.

Si vous recevez ce courriel par erreur, veuillez en aviser l'expéditeur
immédiatement, par retour de courriel ou par un autre moyen. Vous avez accepté
de recevoir le(s) document(s) ci-joint(s) par voie électronique à l'adresse
courriel indiquée ci-dessus; veuillez conserver une copie de cette confirmation
pour les fins de reference future.
__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

Other related posts: