moin. OT_MESSAGE is a constant defined in HJConst.JSH. You need to INCLUDE this file. Basics of scripting covers INCLUDE. From: FreeLists Mailing List Manager <ecartis@xxxxxxxxxxxxx> To: jawsscripts digest users <ecartis@xxxxxxxxxxxxx> Sent: Thursday, November 15, 2012 11:10 PM Subject: jawsscripts Digest V6 #248 jawsscripts Digest   Thu, 15 Nov 2012   Volume: 06 Issue: 248 In This Issue:       [jawsscripts] Re: Modifying Jaws script for navigating betwe       [jawsscripts] Re: Modifying Jaws script for navigating betwe       [jawsscripts] CopySelectedTextToClipboard and AppendSelected       [jawsscripts] Re: CopySelectedTextToClipboard and       [jawsscripts] Re: CopySelectedTextToClipboard and AppendSele       [jawsscripts] Re: CopySelectedTextToClipboard and AppendSele       [jawsscripts] Re: CopySelectedTextToClipboard and       [jawsscripts] Re: Modifying Jaws script for navigating betwe       [jawsscripts] Re: CopySelectedTextToClipboard and AppendSele       [jawsscripts] Re: Modifying Jaws script for navigating betwe       [jawsscripts] Re: CopySelectedTextToClipboard and AppendSele       [jawsscripts] Re: CopySelectedTextToClipboard and AppendSele       [jawsscripts] Re: Modifying Jaws script for navigating betwe       [jawsscripts] please guide me about this variable error       [jawsscripts] Re: please guide me about this variable error       [jawsscripts] Re: please guide me about this variable error       [jawsscripts] Re: please guide me about this variable error       [jawsscripts] Re: please guide me about this variable error       [jawsscripts] Re: please guide me about this variable error       [jawsscripts] Re: please guide me about this variable error       [jawsscripts] Layered Keys       [jawsscripts] Re: Layered Keys ---------------------------------------------------------------------- From: =?iso-8859-1?Q?Léonie_Watson?= <tink@xxxxxxxxxx> Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmar Date: Thu, 15 Nov 2012 18:42:09 -0000 Thanks Sina and Travis. I've been experimenting with that function, but I'm having some trouble getting it to work. I'm currently using it to create a shortcut to move to the <body> element, since I know that should be in Jaws' list of tags. I've added a script to the firefox.jss file, and from within it I've called that function. Script MoveToMain () MoveToTag (s_top, "body") EndScript It's currently bound to Jaws key + m as a keystroke. I've compiled the script, checked the keyboard manager to confirm the keystroke is tied to the script, and tested it in Firefox. Guessing I'm missing something obvious. Any suggestions? On a related note, Sina suggested binding it to Jaws key + space, m. I don't seem to be able to replicate that keystroke in the key assignment field of the create script dialogue though. It recognises the Jaws key + space, but not the additional keystroke. Léonie. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth Sent: 15 November 2012 00:06 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Hi, JAWS has a MoveToTag() function. You could try something like MoveToTag (s_top, "main") I am not sure if JAWS loads any tag it finds into its tag list, or only officially recognized HTML tags, but you could try and find what happens... -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Wednesday, November 14, 2012 3:59 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Modifying Jaws script for navigating between landmarks Good evening, Iâ??d like to create a proof of concept script for Jaws. Itâ??s to demonstrate how Jaws might support a new HTML5 element thatâ??s been proposed. I think there are two possible options. Either to modify the script that handles navigation between landmarks on web pages with the semi colon quick nav key, or to write a new script that introduces a new quick nav key based on the proposed element. A potential catch is that this new element doesnâ??t exist yet, so there is no browser support for it. Jaws would need to take it from the HTML because no information will be available via the browserâ??s accessibility API. If this is something thatâ??s likely to be browser specific, Firefox is my preferred browser for developing this proof of concept functionality. Iâ??m an occasional Jaws scripter, but itâ??s been a long time since I used it in anger. Iâ??d appreciate any advice on the best approach to take, scripts/functions I would need to modify, and any pitfalls I should be aware of. Iâ??ve searched the list archives (and will keep trying), but if there is existing information around this anywhere, links and/or reading material happily received as well. Thanks. Léonie. -- Léonie Watson E. tink@xxxxxxxxxx T. @LeonieWatson S. Leonie.Watson W. tink.co.uk __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: "Travis Roth" <travis@xxxxxxxxxxxxxx> Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmar Date: Thu, 15 Nov 2012 13:43:19 -0600 I would assume that body would represent the entire page? SO it may be difficult to tell if it moves to that one? Can you try another known tag on a test page such as a h1? As for layered keystrokes you have to add them to the .jkm file by hand. The syntax is: JAWSKey+Space&m=MoveToMain -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Thursday, November 15, 2012 12:42 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Thanks Sina and Travis. I've been experimenting with that function, but I'm having some trouble getting it to work. I'm currently using it to create a shortcut to move to the <body> element, since I know that should be in Jaws' list of tags. I've added a script to the firefox.jss file, and from within it I've called that function. Script MoveToMain () MoveToTag (s_top, "body") EndScript It's currently bound to Jaws key + m as a keystroke. I've compiled the script, checked the keyboard manager to confirm the keystroke is tied to the script, and tested it in Firefox. Guessing I'm missing something obvious. Any suggestions? On a related note, Sina suggested binding it to Jaws key + space, m. I don't seem to be able to replicate that keystroke in the key assignment field of the create script dialogue though. It recognises the Jaws key + space, but not the additional keystroke. Léonie. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth Sent: 15 November 2012 00:06 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Hi, JAWS has a MoveToTag() function. You could try something like MoveToTag (s_top, "main") I am not sure if JAWS loads any tag it finds into its tag list, or only officially recognized HTML tags, but you could try and find what happens... -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Wednesday, November 14, 2012 3:59 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Modifying Jaws script for navigating between landmarks Good evening, Iâ??d like to create a proof of concept script for Jaws. Itâ??s to demonstrate how Jaws might support a new HTML5 element thatâ??s been proposed. I think there are two possible options. Either to modify the script that handles navigation between landmarks on web pages with the semi colon quick nav key, or to write a new script that introduces a new quick nav key based on the proposed element. A potential catch is that this new element doesnâ??t exist yet, so there is no browser support for it. Jaws would need to take it from the HTML because no information will be available via the browserâ??s accessibility API. If this is something thatâ??s likely to be browser specific, Firefox is my preferred browser for developing this proof of concept functionality. Iâ??m an occasional Jaws scripter, but itâ??s been a long time since I used it in anger. Iâ??d appreciate any advice on the best approach to take, scripts/functions I would need to modify, and any pitfalls I should be aware of. Iâ??ve searched the list archives (and will keep trying), but if there is existing information around this anywhere, links and/or reading material happily received as well. Thanks. Léonie. -- Léonie Watson E. tink@xxxxxxxxxx T. @LeonieWatson S. Leonie.Watson W. tink.co.uk __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: "Reed poynter" <reed.poynter@xxxxxxxxx> Subject: [jawsscripts] CopySelectedTextToClipboard and AppendSelectedTextToClip Date: Thu, 15 Nov 2012 12:08:24 -0800 Hi Scripters, I have created the script below. I've successfully compiled it in Default.jss and Wordpad.jss. When I run it via my assigned hot key, I receive a verble message that says, "unknown function call to CopySelectedTextToClipboard" or "unknown function call to AppendSelectedTextToClipboard". Any ideas? Thanks, Reed Script SelectandCopyLineToClipboard () SelectNextLine () ;AppendSelectedTextToClipboard () CopySelectedTextToClipboard () EndScript ------------------------------ Date: Thu, 15 Nov 2012 15:14:37 -0500 From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx> Subject: [jawsscripts] Re: CopySelectedTextToClipboard and Those are scripts. The function equivalents are AppendToClipboard and CopyToClipboard. On Thu, Nov 15, 2012 at 12:08:24PM -0800, Reed poynter wrote: Hi Scripters, I have created the script below. I've successfully compiled it in Default.jss and Wordpad.jss. When I run it via my assigned hot key, I receive a verble message that says, "unknown function call to CopySelectedTextToClipboard" or "unknown function call to AppendSelectedTextToClipboard". Any ideas? Thanks, Reed Script SelectandCopyLineToClipboard () SelectNextLine () ;AppendSelectedTextToClipboard () CopySelectedTextToClipboard () EndScript __________??? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts -- Doug Lee, Senior Accessibility Programmer SSB BART Group - Accessibility-on-Demand mailto:doug.lee@xxxxxxxxxxxxxxxx ; http://www.ssbbartgroup.com/ "While they were saying among themselves it cannot be done, it was done." --Helen Keller ------------------------------ Date: Thu, 15 Nov 2012 13:15:03 -0700 Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextTo From: Jackie McBride <abletec@xxxxxxxxx> Well--ahem--my first idea is that it's CopyToClipboard & AppendToClipboard. Smile. On 11/15/12, Reed poynter <reed.poynter@xxxxxxxxx> wrote: > Hi Scripters, > > I have created the script below. I've successfully compiled it in > Default.jss and Wordpad.jss. > When I run it via my assigned hot key, I receive a verble message that > says, > > "unknown function call to CopySelectedTextToClipboard" or > "unknown function call to AppendSelectedTextToClipboard". > Any ideas? > > Thanks, > > Reed > > Script SelectandCopyLineToClipboard () > > SelectNextLine () > ;AppendSelectedTextToClipboard () > CopySelectedTextToClipboard () > > EndScript > > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > -- Blame the computer--why not? It can't defend itself & occasionally might even be the culprit Jackie McBride Ask Me Computer Questions at: www.pcinquirer.com Jaws Scripting training materials: www.screenreaderscripting.com homePage: www.abletec.serverheaven.net ------------------------------ Date: Thu, 15 Nov 2012 13:17:10 -0700 Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextTo From: Jackie McBride <abletec@xxxxxxxxx> Reed, control i can help greatly w/this, as it gives u the function names from which to choose. Also, had u put your cursor on either of those & pressed shift f1, it would have dingged u & told u that the cursor needed to be on a Jaws function or keyword,, which would have let u know instantly that what u wrote was incorrect. On 11/15/12, Jackie McBride <abletec@xxxxxxxxx> wrote: > Well--ahem--my first idea is that it's CopyToClipboard & > AppendToClipboard. Smile. > > On 11/15/12, Reed poynter <reed.poynter@xxxxxxxxx> wrote: >> Hi Scripters, >> >> I have created the script below. I've successfully compiled it in >> Default.jss and Wordpad.jss. >> When I run it via my assigned hot key, I receive a verble message that >> says, >> >> "unknown function call to CopySelectedTextToClipboard" or >> "unknown function call to AppendSelectedTextToClipboard". >> Any ideas? >> >> Thanks, >> >> Reed >> >> Script SelectandCopyLineToClipboard () >> >> SelectNextLine () >> ;AppendSelectedTextToClipboard () >> CopySelectedTextToClipboard () >> >> EndScript >> >> __________� >> >> View the list's information and change your settings at >> http://www.freelists.org/list/jawsscripts >> >> > > > -- > Blame the computer--why not? It can't defend itself & occasionally > might even be the culprit > Jackie McBride > Ask Me Computer Questions at: www.pcinquirer.com > Jaws Scripting training materials: www.screenreaderscripting.com > homePage: www.abletec.serverheaven.net > -- Blame the computer--why not? It can't defend itself & occasionally might even be the culprit Jackie McBride Ask Me Computer Questions at: www.pcinquirer.com Jaws Scripting training materials: www.screenreaderscripting.com homePage: www.abletec.serverheaven.net ------------------------------ From: "Bissett, Tom" <tom.bissett@xxxxxxx> Date: Thu, 15 Nov 2012 15:28:46 -0500 Subject: [jawsscripts] Re: CopySelectedTextToClipboard and Hi Reed, I am not sure what you are doing, I am confused why the selectnextline. I have a script that does something similar. script CopyLineToClipBoard() say("copy to clipboard",ot_status) var string CopyLine let Copyline = getline() CopyToClipboard (copyline) EndScript OR script appendLineToClipBoard() say("append to clipBoard",ot_status) var string CopyLine let Copyline = getline() AppendToClipboard (CopyLine, true) EndScript Tom Bisset -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Reed poynter Sent: November 15, 2012 3:08 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] CopySelectedTextToClipboard and AppendSelectedTextToClipboard Hi Scripters, I have created the script below. I've successfully compiled it in Default.jss and Wordpad.jss. When I run it via my assigned hot key, I receive a verble message that says, "unknown function call to CopySelectedTextToClipboard" or "unknown function call to AppendSelectedTextToClipboard". Any ideas? Thanks, Reed Script SelectandCopyLineToClipboard () SelectNextLine () ;AppendSelectedTextToClipboard () CopySelectedTextToClipboard () EndScript __________??? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: =?iso-8859-1?Q?Léonie_Watson?= <tink@xxxxxxxxxx> Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmar Date: Thu, 15 Nov 2012 20:46:23 -0000 Good point. If I use "h1" as the second argument, the script works ok. If I try "main" it stops working though. Guessing this is because Jaws doesn't recognise the element. Is there any way to force it to recognise it, or any other work around I could try? Léonie. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth Sent: 15 November 2012 19:43 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks I would assume that body would represent the entire page? SO it may be difficult to tell if it moves to that one? Can you try another known tag on a test page such as a h1? As for layered keystrokes you have to add them to the .jkm file by hand. The syntax is: JAWSKey+Space&m=MoveToMain -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Thursday, November 15, 2012 12:42 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Thanks Sina and Travis. I've been experimenting with that function, but I'm having some trouble getting it to work. I'm currently using it to create a shortcut to move to the <body> element, since I know that should be in Jaws' list of tags. I've added a script to the firefox.jss file, and from within it I've called that function. Script MoveToMain () MoveToTag (s_top, "body") EndScript It's currently bound to Jaws key + m as a keystroke. I've compiled the script, checked the keyboard manager to confirm the keystroke is tied to the script, and tested it in Firefox. Guessing I'm missing something obvious. Any suggestions? On a related note, Sina suggested binding it to Jaws key + space, m. I don't seem to be able to replicate that keystroke in the key assignment field of the create script dialogue though. It recognises the Jaws key + space, but not the additional keystroke. Léonie. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth Sent: 15 November 2012 00:06 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Hi, JAWS has a MoveToTag() function. You could try something like MoveToTag (s_top, "main") I am not sure if JAWS loads any tag it finds into its tag list, or only officially recognized HTML tags, but you could try and find what happens... -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Wednesday, November 14, 2012 3:59 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Modifying Jaws script for navigating between landmarks Good evening, Iâ??d like to create a proof of concept script for Jaws. Itâ??s to demonstrate how Jaws might support a new HTML5 element thatâ??s been proposed. I think there are two possible options. Either to modify the script that handles navigation between landmarks on web pages with the semi colon quick nav key, or to write a new script that introduces a new quick nav key based on the proposed element. A potential catch is that this new element doesnâ??t exist yet, so there is no browser support for it. Jaws would need to take it from the HTML because no information will be available via the browserâ??s accessibility API. If this is something thatâ??s likely to be browser specific, Firefox is my preferred browser for developing this proof of concept functionality. Iâ??m an occasional Jaws scripter, but itâ??s been a long time since I used it in anger. Iâ??d appreciate any advice on the best approach to take, scripts/functions I would need to modify, and any pitfalls I should be aware of. Iâ??ve searched the list archives (and will keep trying), but if there is existing information around this anywhere, links and/or reading material happily received as well. Thanks. Léonie. -- Léonie Watson E. tink@xxxxxxxxxx T. @LeonieWatson S. Leonie.Watson W. tink.co.uk __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: "Reed poynter" <reed.poynter@xxxxxxxxx> Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextTo Date: Thu, 15 Nov 2012 13:15:27 -0800 Jackie, "...Also, had u put your cursor on either of those & pressed shift f1, it would have dingged u & told u that the cursor needed to be on a Jaws function or keyword,"... :) That's not what happened when I did it with JAWS 14. :) Reed -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jackie McBride Sent: November-15-12 12:17 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextToClipboard Reed, control i can help greatly w/this, as it gives u the function names from which to choose. Also, had u put your cursor on either of those & pressed shift f1, it would have dingged u & told u that the cursor needed to be on a Jaws function or keyword,, which would have let u know instantly that what u wrote was incorrect. On 11/15/12, Jackie McBride <abletec@xxxxxxxxx> wrote: > Well--ahem--my first idea is that it's CopyToClipboard & > AppendToClipboard. Smile. > > On 11/15/12, Reed poynter <reed.poynter@xxxxxxxxx> wrote: >> Hi Scripters, >> >> I have created the script below. I've successfully compiled it in >> Default.jss and Wordpad.jss. >> When I run it via my assigned hot key, I receive a verble message that >> says, >> >> "unknown function call to CopySelectedTextToClipboard" or >> "unknown function call to AppendSelectedTextToClipboard". >> Any ideas? >> >> Thanks, >> >> Reed >> >> Script SelectandCopyLineToClipboard () >> >> SelectNextLine () >> ;AppendSelectedTextToClipboard () >> CopySelectedTextToClipboard () >> >> EndScript >> >> __________� >> >> View the list's information and change your settings at >> http://www.freelists.org/list/jawsscripts >> >> > > > -- > Blame the computer--why not? It can't defend itself & occasionally > might even be the culprit > Jackie McBride > Ask Me Computer Questions at: www.pcinquirer.com > Jaws Scripting training materials: www.screenreaderscripting.com > homePage: www.abletec.serverheaven.net > -- Blame the computer--why not? It can't defend itself & occasionally might even be the culprit Jackie McBride Ask Me Computer Questions at: www.pcinquirer.com Jaws Scripting training materials: www.screenreaderscripting.com homePage: www.abletec.serverheaven.net __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: "Sina Bahram" <sbahram@xxxxxxxxx> Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmar Date: Thu, 15 Nov 2012 16:15:32 -0500 insert+space is layered, so you'll have to express it that way, not just as insert+space. I think some others will respond though, so I'll check back to make sure you're good on this, if it doesn't work for you. be careful of stuff like jawsKey+m, as that can map to priorCharacter in laptop layout. Website: www.SinaBahram.com Twitter: @SinaBahram -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Thursday, November 15, 2012 1:42 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Thanks Sina and Travis. I've been experimenting with that function, but I'm having some trouble getting it to work. I'm currently using it to create a shortcut to move to the <body> element, since I know that should be in Jaws' list of tags. I've added a script to the firefox.jss file, and from within it I've called that function. Script MoveToMain () MoveToTag (s_top, "body") EndScript It's currently bound to Jaws key + m as a keystroke. I've compiled the script, checked the keyboard manager to confirm the keystroke is tied to the script, and tested it in Firefox. Guessing I'm missing something obvious. Any suggestions? On a related note, Sina suggested binding it to Jaws key + space, m. I don't seem to be able to replicate that keystroke in the key assignment field of the create script dialogue though. It recognises the Jaws key + space, but not the additional keystroke. Léonie. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth Sent: 15 November 2012 00:06 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Hi, JAWS has a MoveToTag() function. You could try something like MoveToTag (s_top, "main") I am not sure if JAWS loads any tag it finds into its tag list, or only officially recognized HTML tags, but you could try and find what happens... -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Wednesday, November 14, 2012 3:59 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Modifying Jaws script for navigating between landmarks Good evening, Iâ??d like to create a proof of concept script for Jaws. Itâ??s to demonstrate how Jaws might support a new HTML5 element thatâ??s been proposed. I think there are two possible options. Either to modify the script that handles navigation between landmarks on web pages with the semi colon quick nav key, or to write a new script that introduces a new quick nav key based on the proposed element. A potential catch is that this new element doesnâ??t exist yet, so there is no browser support for it. Jaws would need to take it from the HTML because no information will be available via the browserâ??s accessibility API. If this is something thatâ??s likely to be browser specific, Firefox is my preferred browser for developing this proof of concept functionality. Iâ??m an occasional Jaws scripter, but itâ??s been a long time since I used it in anger. Iâ??d appreciate any advice on the best approach to take, scripts/functions I would need to modify, and any pitfalls I should be aware of. Iâ??ve searched the list archives (and will keep trying), but if there is existing information around this anywhere, links and/or reading material happily received as well. Thanks. Léonie. -- Léonie Watson E. tink@xxxxxxxxxx T. @LeonieWatson S. Leonie.Watson W. tink.co.uk __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: "Reed poynter" <reed.poynter@xxxxxxxxx> Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextTo Date: Thu, 15 Nov 2012 13:32:30 -0800 In a text document, SelectNextLine selects the line the cursor is sitting on. fsdn.chm/Scripting/Reference Guide/JAWS/Clipboard/AppendSelectedTextToClipboard and CopySelectedTextToClipboard both discuss this: "With the Freedom clipboard, text will be appended to the clipboard, adding it to the clipboard at the end of the previous clipboard content." "Standard Windows copy command, usually found in the Edit menu, any selected text or items will be copied to the Windows Clipboard. The selected items or text can then be pasted into another window or application." Both topics state, "This function is available in the following releases:..." Reed -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bissett, Tom Sent: November-15-12 12:29 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextToClipboard Hi Reed, I am not sure what you are doing, I am confused why the selectnextline. I have a script that does something similar. script CopyLineToClipBoard() say("copy to clipboard",ot_status) var string CopyLine let Copyline = getline() CopyToClipboard (copyline) EndScript OR script appendLineToClipBoard() say("append to clipBoard",ot_status) var string CopyLine let Copyline = getline() AppendToClipboard (CopyLine, true) EndScript Tom Bisset -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Reed poynter Sent: November 15, 2012 3:08 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] CopySelectedTextToClipboard and AppendSelectedTextToClipboard Hi Scripters, I have created the script below. I've successfully compiled it in Default.jss and Wordpad.jss. When I run it via my assigned hot key, I receive a verble message that says, "unknown function call to CopySelectedTextToClipboard" or "unknown function call to AppendSelectedTextToClipboard". Any ideas? Thanks, Reed Script SelectandCopyLineToClipboard () SelectNextLine () ;AppendSelectedTextToClipboard () CopySelectedTextToClipboard () EndScript __________??? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________o? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: "Reed poynter" <reed.poynter@xxxxxxxxx> Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextTo Date: Thu, 15 Nov 2012 14:03:42 -0800 Hi Tom, As you know, your script works with CopyToClipboard. When I change the CopyToClipboard to AppendToClipboard as below, it doesn't seem to work. When I run the script and then try to paste the contents of the clipboard with Control-V, nothing happens. By the way, I want to be able to down-arrow through a text file and when I find a line that I like, I want to hit a hot key and append the line to the clipboard. I will later paste these collected lines into another text file. The Script follows: Script AppendLineToClipBoard () say("copy to clipboard",ot_status) var string CopyLine let Copyline = getline() AppendToClipboard (copyline, 1) EndScript Reed -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bissett, Tom Sent: November-15-12 12:29 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: CopySelectedTextToClipboard and AppendSelectedTextToClipboard Hi Reed, I am not sure what you are doing, I am confused why the selectnextline. I have a script that does something similar. script CopyLineToClipBoard() say("copy to clipboard",ot_status) var string CopyLine let Copyline = getline() CopyToClipboard (copyline) EndScript OR script appendLineToClipBoard() say("append to clipBoard",ot_status) var string CopyLine let Copyline = getline() AppendToClipboard (CopyLine, true) EndScript Tom Bisset -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Reed poynter Sent: November 15, 2012 3:08 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] CopySelectedTextToClipboard and AppendSelectedTextToClipboard Hi Scripters, I have created the script below. I've successfully compiled it in Default.jss and Wordpad.jss. When I run it via my assigned hot key, I receive a verble message that says, "unknown function call to CopySelectedTextToClipboard" or "unknown function call to AppendSelectedTextToClipboard". Any ideas? Thanks, Reed Script SelectandCopyLineToClipboard () SelectNextLine () ;AppendSelectedTextToClipboard () CopySelectedTextToClipboard () EndScript __________??? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________o? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ From: "Travis Roth" <travis@xxxxxxxxxxxxxx> Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmar Date: Thu, 15 Nov 2012 16:50:54 -0600 If you just want to make a proof of concept to move to a place it may be easier to just set up something JAWS does recognize? There is a MoveToTagWithAttribute() function so you could make some custom HTML with a DIV and an attribute such as <div "main=true"> And then jaws function MoveToTagWithAttribute (s_top, "div", "main", true) Again I am not sure if this will work if jaws doesnâ??t recognize that attribute but worth a try? Alternatively you could try some JavaScript and setFocus() commands such as ;pseudocode... Dom = IEGetCurrentDocument() Element = Dom.getElementByID("main") Element.setFocus() I am not sure how accurate jaws would match the virtual pc to the setting of focus. But if added a tabIndex to the div in question it should work? -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Thursday, November 15, 2012 2:46 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Good point. If I use "h1" as the second argument, the script works ok. If I try "main" it stops working though. Guessing this is because Jaws doesn't recognise the element. Is there any way to force it to recognise it, or any other work around I could try? Léonie. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth Sent: 15 November 2012 19:43 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks I would assume that body would represent the entire page? SO it may be difficult to tell if it moves to that one? Can you try another known tag on a test page such as a h1? As for layered keystrokes you have to add them to the .jkm file by hand. The syntax is: JAWSKey+Space&m=MoveToMain -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Thursday, November 15, 2012 12:42 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Thanks Sina and Travis. I've been experimenting with that function, but I'm having some trouble getting it to work. I'm currently using it to create a shortcut to move to the <body> element, since I know that should be in Jaws' list of tags. I've added a script to the firefox.jss file, and from within it I've called that function. Script MoveToMain () MoveToTag (s_top, "body") EndScript It's currently bound to Jaws key + m as a keystroke. I've compiled the script, checked the keyboard manager to confirm the keystroke is tied to the script, and tested it in Firefox. Guessing I'm missing something obvious. Any suggestions? On a related note, Sina suggested binding it to Jaws key + space, m. I don't seem to be able to replicate that keystroke in the key assignment field of the create script dialogue though. It recognises the Jaws key + space, but not the additional keystroke. Léonie. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth Sent: 15 November 2012 00:06 To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Modifying Jaws script for navigating between landmarks Hi, JAWS has a MoveToTag() function. You could try something like MoveToTag (s_top, "main") I am not sure if JAWS loads any tag it finds into its tag list, or only officially recognized HTML tags, but you could try and find what happens... -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson Sent: Wednesday, November 14, 2012 3:59 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Modifying Jaws script for navigating between landmarks Good evening, Iâ??d like to create a proof of concept script for Jaws. Itâ??s to demonstrate how Jaws might support a new HTML5 element thatâ??s been proposed. I think there are two possible options. Either to modify the script that handles navigation between landmarks on web pages with the semi colon quick nav key, or to write a new script that introduces a new quick nav key based on the proposed element. A potential catch is that this new element doesnâ??t exist yet, so there is no browser support for it. Jaws would need to take it from the HTML because no information will be available via the browserâ??s accessibility API. If this is something thatâ??s likely to be browser specific, Firefox is my preferred browser for developing this proof of concept functionality. Iâ??m an occasional Jaws scripter, but itâ??s been a long time since I used it in anger. Iâ??d appreciate any advice on the best approach to take, scripts/functions I would need to modify, and any pitfalls I should be aware of. Iâ??ve searched the list archives (and will keep trying), but if there is existing information around this anywhere, links and/or reading material happily received as well. Thanks. Léonie. -- Léonie Watson E. tink@xxxxxxxxxx T. @LeonieWatson S. Leonie.Watson W. tink.co.uk __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ Date: Thu, 15 Nov 2012 15:40:01 -0800 Subject: [jawsscripts] please guide me about this variable error From: moin sahil <moin.chamber1@xxxxxxxxx> hi list, i am beginner in jaws scriptting i am doing a Exercise which is in Basics of Scripting but i am facing continuously a variable error when i am compiling code is below notepad.jsm file code ; Message file for Notepad Messages @MSGText_L This is an example of a long message. This message is only spoken by JAWS when the beginner verbosity setting is in use. @@ @MsgText_S This is an example of a short message. @@ EndMessages notepad.jss code Script SpeakMessage () SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S) EndScript Compile Error Unknown variable OT_MESSAGE please guide me if any1 know that why i am facing the error regards moin ------------------------------ Date: Thu, 15 Nov 2012 17:03:59 -0700 Subject: [jawsscripts] Re: please guide me about this variable error From: Jackie McBride <abletec@xxxxxxxxx> Did u include your message file? On 11/15/12, moin sahil <moin.chamber1@xxxxxxxxx> wrote: > hi list, > i am beginner in jaws scriptting > i am doing a Exercise which is in Basics of Scripting > but i am facing continuously a variable error when i am compiling > code is below > notepad.jsm file code > ; Message file for Notepad > Messages > @MSGText_L > This is an example of a long message. This message is only spoken by > JAWS when the beginner verbosity setting is in use. > @@ > @MsgText_S > This is an example of a short message. > @@ > EndMessages > notepad.jss code > Script SpeakMessage () > SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S) > EndScript > Compile Error > Unknown variable OT_MESSAGE > please guide me if any1 know that why i am facing the error > regards > moin > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > -- Blame the computer--why not? It can't defend itself & occasionally might even be the culprit Jackie McBride Ask Me Computer Questions at: www.pcinquirer.com Jaws Scripting training materials: www.screenreaderscripting.com homePage: www.abletec.serverheaven.net ------------------------------ From: "Bob Kennedy" <intheshop@xxxxxxx> Subject: [jawsscripts] Re: please guide me about this variable error Date: Thu, 15 Nov 2012 19:13:54 -0500 I don't know a whole bunch but all I am seeing is you have coded for a short and long message. However, you haven't got a message included as a part of the script. ----- Original Message ----- From: "moin sahil" <moin.chamber1@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Thursday, November 15, 2012 6:40 PM Subject: [jawsscripts] please guide me about this variable error hi list, i am beginner in jaws scriptting i am doing a Exercise which is in Basics of Scripting but i am facing continuously a variable error when i am compiling code is below notepad.jsm file code ; Message file for Notepad Messages @MSGText_L This is an example of a long message. This message is only spoken by JAWS when the beginner verbosity setting is in use. @@ @MsgText_S This is an example of a short message. @@ EndMessages notepad.jss code Script SpeakMessage () SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S) EndScript Compile Error Unknown variable OT_MESSAGE please guide me if any1 know that why i am facing the error regards moin __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts ------------------------------ Date: Thu, 15 Nov 2012 16:21:25 -0800 Subject: [jawsscripts] Re: please guide me about this variable error From: moin sahil <moin.chamber1@xxxxxxxxx> no success after putting include "common.jsm" On 11/15/12, Bob Kennedy <intheshop@xxxxxxx> wrote: > I don't know a whole bunch but all I am seeing is you have coded for a short > > and long message. However, you haven't got a message included as a part of > > the script. > > > ----- Original Message ----- > From: "moin sahil" <moin.chamber1@xxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Thursday, November 15, 2012 6:40 PM > Subject: [jawsscripts] please guide me about this variable error > > > hi list, > i am beginner in jaws scriptting > i am doing a Exercise which is in Basics of Scripting > but i am facing continuously a variable error when i am compiling > code is below > notepad.jsm file code > ; Message file for Notepad > Messages > @MSGText_L > This is an example of a long message. This message is only spoken by > JAWS when the beginner verbosity setting is in use. > @@ > @MsgText_S > This is an example of a short message. > @@ > EndMessages > notepad.jss code > Script SpeakMessage () > SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S) > EndScript > Compile Error > Unknown variable OT_MESSAGE > please guide me if any1 know that why i am facing the error > regards > moin > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > ------------------------------ Date: Thu, 15 Nov 2012 21:25:56 -0300 From: Andrew Hart <ahart@xxxxxxxxxxxxx> Subject: [jawsscripts] Re: please guide me about this variable error You need to include the following line at the top of your notepad.jss file: Include "hjconst.jsh" OT_MESSAGE is a constant defined in hjconst.jsh. Since it is not defined, the compiler is guessing it is a variable, but can't find it anyway. As a result, it doesn't know what to do with it and hence you get the error. the above line tells the compiler to load hjconst.jsh as though it were part of your script file. hjconst.jsh is a file created by FS which contains loads of constant declarations which are useful so you don't have to remember a whole heap of values for different function calls. You can just use the human-readable name they have given to the value. In this case it is the value for specifying an Output Type of MESSAGE. Hth, Andrew. On 15/11/2012 8:40 PM, moin sahil wrote: > hi list, > i am beginner in jaws scriptting > i am doing a Exercise which is in Basics of Scripting > but i am facing continuously a variable error when i am compiling > code is below > notepad.jsm file code > ; Message file for Notepad > Messages > @MSGText_L > This is an example of a long message. This message is only spoken by > JAWS when the beginner verbosity setting is in use. > @@ > @MsgText_S > This is an example of a short message. > @@ > EndMessages > notepad.jss code > Script SpeakMessage () > SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S) > EndScript > Compile Error > Unknown variable OT_MESSAGE > please guide me if any1 know that why i am facing the error > regards > moin > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > > ------------------------------ Date: Thu, 15 Nov 2012 17:26:31 -0700 Subject: [jawsscripts] Re: please guide me about this variable error From: Jackie McBride <abletec@xxxxxxxxx> Moin, you're going to have to make a separate message file to contain your messages. U can call it anything u like, though if this is for notepad, then notepad.jsm is likely a logical choice. you'll need to put the messages u wrote in that file, give it a name, save it, then include it in your script & save that, too. On 11/15/12, moin sahil <moin.chamber1@xxxxxxxxx> wrote: > no success after putting include "common.jsm" > > > On 11/15/12, Bob Kennedy <intheshop@xxxxxxx> wrote: >> I don't know a whole bunch but all I am seeing is you have coded for a >> short >> >> and long message. However, you haven't got a message included as a part >> of >> >> the script. >> >> >> ----- Original Message ----- >> From: "moin sahil" <moin.chamber1@xxxxxxxxx> >> To: <jawsscripts@xxxxxxxxxxxxx> >> Sent: Thursday, November 15, 2012 6:40 PM >> Subject: [jawsscripts] please guide me about this variable error >> >> >> hi list, >> i am beginner in jaws scriptting >> i am doing a Exercise which is in Basics of Scripting >> but i am facing continuously a variable error when i am compiling >> code is below >> notepad.jsm file code >> ; Message file for Notepad >> Messages >> @MSGText_L >> This is an example of a long message. This message is only spoken by >> JAWS when the beginner verbosity setting is in use. >> @@ >> @MsgText_S >> This is an example of a short message. >> @@ >> EndMessages >> notepad.jss code >> Script SpeakMessage () >> SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S) >> EndScript >> Compile Error >> Unknown variable OT_MESSAGE >> please guide me if any1 know that why i am facing the error >> regards >> moin >> __________� >> >> View the list's information and change your settings at >> http://www.freelists.org/list/jawsscripts >> >> __________� >> >> View the list's information and change your settings at >> http://www.freelists.org/list/jawsscripts >> >> > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > -- Blame the computer--why not? It can't defend itself & occasionally might even be the culprit Jackie McBride Ask Me Computer Questions at: www.pcinquirer.com Jaws Scripting training materials: www.screenreaderscripting.com homePage: www.abletec.serverheaven.net ------------------------------ Date: Thu, 15 Nov 2012 16:29:43 -0800 Subject: [jawsscripts] Re: please guide me about this variable error From: moin sahil <moin.chamber1@xxxxxxxxx> thanks Andrew now compile is complete thanks again On 11/15/12, Andrew Hart <ahart@xxxxxxxxxxxxx> wrote: > You need to include the following line at the top of your notepad.jss file: > > Include "hjconst.jsh" > > OT_MESSAGE is a constant defined in hjconst.jsh. Since it is not > defined, the compiler is guessing it is a variable, but can't find it > anyway. As a result, it doesn't know what to do with it and hence you > get the error. the above line tells the compiler to load hjconst.jsh as > though it were part of your script file. hjconst.jsh is a file created > by FS which contains loads of constant declarations which are useful so > you don't have to remember a whole heap of values for different function > calls. You can just use the human-readable name they have given to the > value. In this case it is the value for specifying an Output Type of > MESSAGE. > > Hth, > Andrew. > > On 15/11/2012 8:40 PM, moin sahil wrote: >> hi list, >> i am beginner in jaws scriptting >> i am doing a Exercise which is in Basics of Scripting >> but i am facing continuously a variable error when i am compiling >> code is below >> notepad.jsm file code >> ; Message file for Notepad >> Messages >> @MSGText_L >> This is an example of a long message. This message is only spoken by >> JAWS when the beginner verbosity setting is in use. >> @@ >> @MsgText_S >> This is an example of a short message. >> @@ >> EndMessages >> notepad.jss code >> Script SpeakMessage () >> SayFormattedMessage (OT_MESSAGE, MsgText_l, MsgText_S) >> EndScript >> Compile Error >> Unknown variable OT_MESSAGE >> please guide me if any1 know that why i am facing the error >> regards >> moin >> __________� >> >> View the list's information and change your settings at >> http://www.freelists.org/list/jawsscripts >> >> >> > > > __________� > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > ------------------------------ From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx> Subject: [jawsscripts] Layered Keys Date: Thu, 15 Nov 2012 22:02:04 -0600 Guys, did we already talk about this?  If you remember, con grats. I don't. Reminder please. Is there an event that fires when a layer is activated? Likewise, when it is exited? How does jaws make that little click clock sound when the fs layer is activated. Thanks much. ------------------------------ Date: Fri, 16 Nov 2012 00:42:59 -0500 From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx> Subject: [jawsscripts] Re: Layered Keys I believe what you're looking for is the KeyMapChangedEvent. On Thu, Nov 15, 2012 at 10:02:04PM -0600, Jim Snowbarger wrote: Guys, did we already talk about this?  If you remember, con grats. I don't. Reminder please. Is there an event that fires when a layer is activated? Likewise, when it is exited? How does jaws make that little click clock sound when the fs layer is activated. Thanks much. __________??? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts -- Doug Lee, Senior Accessibility Programmer SSB BART Group - Accessibility-on-Demand mailto:doug.lee@xxxxxxxxxxxxxxxx ; http://www.ssbbartgroup.com/ "While they were saying among themselves it cannot be done, it was done." --Helen Keller ------------------------------ End of jawsscripts Digest V6 #248 ********************************* __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts