[jawsscripts] Re: Opening the FSDN with ShowHelpByID or ShowHelpByName?
- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
- To: "JAWSScripts" <jawsscripts@xxxxxxxxxxxxx>
- Date: Sun, 12 Sep 2010 19:40:03 +0100
Hi Paul,
I spent some time looking here:
http://www.help-info.de/en/Help_Info_HTMLHelp/hh_command.htm
to see if there was a command line switch to do what you want. It turns out
that you can open a chm file at a desired topic, (they all have a sort of
internal address in the chm file), but not at a book. The books seem to be
generated on the fly when the contents tree view is drawn.
However there is a way to do what you outlined from a JAWS script:
script openFSDN ()
Run ("C:\\FreedomScientificDocs\\FSDN\\fsdn.chm")
Delay (10, true) ; give the window time to open
TypeKey ("77", 0) ; right arrow opens Scripting book
TypeKey ("80", 0) ; down arrow highlights General Concepts book
TypeKey ("80", 0) ; down arrow highlights Reference Guide book
TypeKey ("77", 0) ; right arrow opens Reference Guide book
TypeKey ("80", 0) ; down arrow highlights JAWS book
TypeKey ("77", 0) ; right arrow opens JAWS book
EndScript
I should check that the antipodean scan codes are the same as for a u k
keyboard, and also that your FSDN file is at the same address as mine.
hth
Martin
----- Original Message -----
From: "Paul Magill" <magills@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, September 07, 2010 11:18 AM
Subject: [jawsscripts] Opening the FSDN with ShowHelpByID or ShowHelpByName?
> Hi all,
>
> A minor improvement, but one that I would find useful....
>
> My intention is to be able to open the FSDN, with it's JAWS book already
> open, ready to use.
>
> I tried using ShowHelpByID & ShowHelpByName in a script in the default
> file,
> but ShowHelpID insisted on opening the normal JAWS help file, even though
> I
> provided the full path to the FSDN file. ShowHelpByName, again with the
> full path to the FSDN, generated a windows error message that the FSDN was
> not a windows help file, or it was corrupted.
>
> I tried adding to the FS scripts used when the FSDN is open, to detect
> when
> it is the FSDN, & to issue the required keystrokes to get to the JAWS
> book,
> but could not find a solution.
>
> Is there a way I could script this in the default file, or is there
> something I can add to the Windows shortcut for the FSDN to cause it to
> open
> to the JAWS book?
>
> With thanks in advance,
> Paul from Aust
>
> __________�
>
> 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
Other related posts: