[jawsscripts] Re: switch to configuration

  • From: "Reed Poynter" <Reed.Poynter@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 1 Dec 2008 10:51:47 -0800

Hi Nicol,

Sorry.  I didn't realize that you actually had configuration files named
"1", "2", etc.  I assumed that you were mistakenly placing the menu item
number in the SwitchToConfiguration statement.  :)  So much for assumptions.
:)

Perhaps another approach to this would be to create a separate script for
each of your dictionaries and assign each one to its own key.  If you to
this, JAWS will not loose focus on Internet Explorer.

Script  SwitchToDictionary1 () ; assign it to something like control+shift+1

SwitchToConfiguration ("1") 

EndScript

Script SwitchToDictionary2 () ; assign it to something like control+shift+2

SwitchToConfiguration ("2") 

EndScript

Reed
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Nicol Oosthuizen
Sent: 2008/11/30 22:47
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: switch to configuration


It looks the same as my script.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Reed Poynter
Sent: 27 November 2008 01:07 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: switch to configuration

Hi Nicol,

Try this...

Script SwitchToDictionary  ()

var
 String   menu,
Int  dictionary

Let menu = "1|2|3|4|5|6|7|8"
Let dictionary = DlgSelectItemInList (menu, "please select a dictionary to
switch to", 0, 1)

If dictionary == 1Then
SwitchToConfiguration ("Adobe")

ElIf dictionary == 2 then
SwitchToConfiguration ("AudibleManager")

ElIf dictionary == 3 Then
SwitchToConfiguration ("HyperTerminal")

ElIf dictionary == 4 Then
SwitchToConfiguration ("IECustomSettings")

ElIf dictionary == 5 Then
SwitchToConfiguration ("Internet Explorer")

ElIf dictionary == 6 then
SwitchToConfiguration ("LogonUI")

ElIf dictionary == 7 then
SwitchToConfiguration ("Lotus Notes")

ElIf dictionary == 8 Then
SwitchToConfiguration ("default")
EndIf

Say (GetActiveConfiguration ()+" configuration", 0, 0)

EndScript

Your SwitchToConfiguration  has to include the name of your configuration
Notice the "say" statement just before the endscript.

Assign this script to a key, compile and try it.
After you have done this, see if you can assign a comment to each of your
menu choices.  So, for example, when you go down through the menu you will
hear, 1. Adobe 2. AudibleManager 3. HyperTerminal And so on.

Hope this works.

Reed 

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Nicol Oosthuizen
Sent: 2008/11/26 01:24
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] switch to configuration


Hi all
I'm battling with a script.

I want to create a menu so that I can choose an option from the menu and
jaws must switch to the base configuration I have selected. The script
compiles fine without any errors but when I choose a number from the menu
jaws does not switch to that configuration. If I  press the assigned
keystroke it pops up the menu I have created and I can move between options
fine, but when I press enter on  an option it does nothing. It doesn't
switch to that base configuration.

Please can someone have  a look at my script.

Script SwitchToDictionary ()

var

 String   menu,

Int  dictionary

Let menu = "1|2|3|4|5|6|7|8"

Let dictionary = DlgSelectItemInList (menu, "please select a dictionary to
switch to", 0, 1)

If dictionary == 1Then

SwitchToConfiguration ("1")

ElIf dictionary == 2 then

SwitchToConfiguration ("2")

ElIf dictionary == 3 Then

SwitchToConfiguration ("3")

ElIf dictionary == 4 Then

SwitchToConfiguration ("4")

ElIf dictionary == 5 Then

SwitchToConfiguration ("5")

ElIf dictionary == 6 then

SwitchToConfiguration ("6")

ElIf dictionary == 7 then

SwitchToConfiguration ("7")

ElIf dictionary == 8 Then

SwitchToConfiguration ("8")

EndIf

 

EndScript


Please Note: This email and its contents are subject to our email legal
notice which can be viewed at http://www.sars.gov.za/Email_Disclaimer.pdf 

__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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



__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Please Note: This email and its contents are subject to our email legal
notice which can be viewed at http://www.sars.gov.za/Email_Disclaimer.pdf
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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



__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: