[jawsscripts] Re: scripting User Guides

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 19 Aug 2009 02:33:30 +1000

martin, wouldn't it be at least simpler, for  him to do it the other way? I
think for kinda hnewbys scripters I mean, like it sounds like Stephen might
kinda be? and which I am also, so, maybe yeah?
else he'd have to have knowledge of Scheduling functions would not he?
which is another level of complexity he might not be into yet?

sounds to me like Stephen's taking the path I took, which is to stretch
frames manager to it's ultimate, then kick in with scripts to make up the
shortfall, which is not the way I know that most real programmers tend to
seem to do things. they tend to disregard frames and frames manager
entirely, and do everything with scripts.  But, this requires much more
knowledge in my view of the scripting language and functions etc.

by all means try martin's suggestion Stephen, but, for what it's worth,
personally I'd be trying to do it the reverse way, i.e. assign what's called
an "onText event," to the frame your dealing with, in frames manager.
and, then, for what frames manager calls the, "action," for that OnText
event,
from the 25 choices it'll give you,
you should assign/choose, "Run Script event." which, mind you, is different
than, "run script." in here.
the action, "run script event," really means to run a function, which is not
assigned to a key.
.when you choose this action and hit enter, it'll then present you with an
edit box, in which you must then paste the name of your function, the one
your building to do the other work/checking etc, however don't put the
parenthisies after it's name, as you normally have to in script manager as
you'd know.

of course this action can only run a function which doesn't contain
parameters in here by the way, so this excludes some functions obviously.
I mean, the function name you wish to have run here, when the text in the
frame changes, must not have anything in the parentiseis after it's name, as
it is defined in the script manager.


now, have you done much work/investigation in the actual properties dialog
of frames you've defined, using frames manager yet?

Do you have knowledge of how to do what I've suggested above?
It's bed time for me here so I won't be able to explain it all blow by blow
now tonight, but, from your feedback to this, I guess we will know whether
you will be aware of
where to begin investigation, or, to ask more questions if you need more
indepth information.

in short though, you build the function in script manager that's gunna do
the grunt work/checking for you,
then you altTab back to the application,
go into frames manager,
with insert+top Row 9, then tab around till you find your frame that you've
obviously set up to trigger upon text changing etc.
hit altEnter to go into it's properties, and in here you'll find 4 tab
controls.  shif+Tab as usual to get to them so you can right/left arrow
among them.
you should become thoroughly familiar with frames if you feel you wanna
begin utilizing them in your work, though many scripters will tell you it's
better to avoid them because of their tendencies to be very screen
resolution dependent, and of course window size dependent as well.
but anyway, find your third tab along, which is your events tab.
then tab once, and you'll be on the list of events already assigned, that
got assigned their auotmatically when you initially defined your frame to
watch for this text change,
or whatever.
there might only be one or two events there.  so then you hit alt+a, to add
a new event, and you'll start the, "create event," wizard.  you'll get  4
choices initially, OnFocus, OnFrameKey, On Play Action, and OnText.  as you
arrow among them you'll get little auto explanations for each one. choose
onText and hit enter.
then you'll be asked to select the attributes or specific text to serve as a
filter to trigger the action your about to assign.
if you want it to trigger upon any change at all, then just hit enter here.
but, if you want only certain atributes to trigger this action, or specific
text to trigger it, i.e. when some certain number appears in that frame or
whatever, so long of course that you know it'll only appear once etc, then
hit alt+t to jump to that edit box to specify this, and specify that text
here. it's case sensitive as well. then hit enter.
then you'll be in the, "event scope," part of the wizard. you can
investigate this, but I almost always leave this at it's default, which is
to, "recognize this event all the time."
hit enter.
then you'll be in the main drag here, which is called frame actions.  and
you'll be focused on a 25 entry list of actions you can assign to this
ontext event.  as I say above, choose Run Script Event, not Run Script I
reckon, so long as what you've got to assign is a function, and not a script
assigned to a key.  else which of course you'd choose Run Script instead.
hit enter.
then you'll have your edit box into which you must type or paste the name of
the function you're wanting the event to kick in for you. it must obviously
have no errors, and must not be writte with it's parenthisies after it.
then hit enter. that concludes the event assignment wizard.
now your back in your third events tab of your frame properties, and on the
list of events assigned to that frame. you can arrow up and down and check
it's really there, and, very handily I believe this feature is, I'm
extremely greatful to whomever had the foresight to put this in here, you
can then flip the whole event on/off with space bar, as desired.  great for
debugging and testing things.
so then tab around to ok and hit enter.
then hit escape to leave frame manager,
and when it asks you to save, hit Y for yes.

that should do it.


To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, August 19, 2009 1:50 AM
Subject: [jawsscripts] Re: scripting User Guides


> Can you not get a frame to 'activate' by running your script?
>
>   Martin
>
>
> ----- Original Message ----- 
> From: "Steven Hicks (HICKSSM)" <Steven.HicksSM@xxxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Tuesday, August 18, 2009 3:38 PM
> Subject: [jawsscripts] Re: scripting User Guides
>
>
> >I have just realised, this isn't really going to do what I want after all
> >as
> > it is not running in real time if you get my meaning.
> > The fram activates when something changes on that line of text on the
> > screen, this is where I would need my script to kkkick in to check what
> > the
> > number has changed to if this makes any sense?
> >
> > ----- Original Message ----- 
> > From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
> > To: <jawsscripts@xxxxxxxxxxxxx>
> > Sent: Tuesday, August 18, 2009 11:08 AM
> > Subject: [jawsscripts] Re: scripting User Guides
> >
> >
> >> no probs.
> >>
> >>
> >> ----- Original Message ----- 
> >> From: "Steven Hicks (HICKSSM)" <Steven.HicksSM@xxxxxxxxxxxxx>
> >> To: <jawsscripts@xxxxxxxxxxxxx>
> >> Sent: Tuesday, August 18, 2009 7:53 PM
> >> Subject: [jawsscripts] Re: scripting User Guides
> >>
> >>
> >>> Brilliant, thanks very much indeed!
> >>>
> >>> ----- Original Message ----- 
> >>> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
> >>> To: <jawsscripts@xxxxxxxxxxxxx>
> >>> Sent: Tuesday, August 18, 2009 10:43 AM
> >>> Subject: [jawsscripts] Re: scripting User Guides
> >>>
> >>>
> >>> > If you use something like GetWord () to pick up some text from the
> >> screen,
> >>> > you can then convert that to an integer before doing the comparison.
> >>> > So
> >>> > assuming you have moved the cursor to the appropriate point on the
> >> screen,
> >>> > your code might look like:
> >>> >
> >>> > Var
> >>> >  string sScreenText,
> >>> >  int iNumber
> >>> >
> >>> > let sScreenText = GetWord ()
> >>> > let iNumber = StringToInt (sScreenText)
> >>> > if (iNumber > 7) then
> >>> > ; do whatever is necessary
> >>> > else
> >>> > ; handle the case where iNumber <= 7
> >>> > endif
> >>> >
> >>> > The function to produce a beep is beep ().
> >>> >
> >>> >  If you are writing your code using the Script Manager, then hitting
> >>> > control+i will show you a dialog which lists all the available
> >> functions,
> >>> > and by tabbing and arrowing around, you can read some information
> >>> > about
> >>> > what
> >>> > the selected function does, what it might return, the values needed
> >>> > for
> >>> > its
> >>> > parameters, etc.  When you fill in the various fields in this
dialog,
> >> the
> >>> > appropriately formatted function will be entered into the code you
are
> >>> > writing in Script Manager.
> >>> >
> >>> > This is like a mini-FSDN, but available without leaving the Script
> >>> > Manager.
> >>> >
> >>> >  hth
> >>> >
> >>> > Martin
> >>> >
> >>> >
> >>> > ----- Original Message ----- 
> >>> > From: "Steven Hicks (HICKSSM)" <Steven.HicksSM@xxxxxxxxxxxxx>
> >>> > To: <jawsscripts@xxxxxxxxxxxxx>
> >>> > Sent: Tuesday, August 18, 2009 10:20 AM
> >>> > Subject: [jawsscripts] Re: scripting User Guides
> >>> >
> >>> >
> >>> >> Absolutely brilliant, thanks very much indeed.
> >>> >>
> >>> >> If I am taking a number from the screen and want to do a comparison
> >> e.g.
> >>> >> if
> >>> >> numbr is greaterthan 7, would I have to convert the text string
with
> >> the
> >>> >> ifnormation in to a number value if that makes any sense?
> >>> >> Also is there a function in the scripting language to make a beep?
> >>> >>
> >>> >> You are really helpful, thank you very much indeed, this list is
> >>> >> brilliant!
> >>> >>
> >>> >> ----- Original Message ----- 
> >>> >> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
> >>> >> To: <jawsscripts@xxxxxxxxxxxxx>
> >>> >> Sent: Tuesday, August 18, 2009 9:38 AM
> >>> >> Subject: [jawsscripts] Re: scripting User Guides
> >>> >>
> >>> >>
> >>> >>> The first word after the Var keyword must be another keyword
giving
> >> the
> >>> >>> type
> >>> >>> of the variable.  So
> >>> >>>
> >>> >>> Var
> >>> >>>  string TestTextString
> >>> >>>
> >>> >>> should compile.  If you want a list of variables declared, the
> >>> >>> entries
> >>> >>> must
> >>> >>> be separated by commas:
> >>> >>>
> >>> >>> Var
> >>> >>>  string TestTextString,
> >>> >>>  string AnotherTextString,
> >>> >>>  int TestInteger
> >>> >>>
> >>> >>>
> >>> >>> To download the FSDN, go to:
> >>> >>>
> >>> >>> http://www.freedomscientific.com/fs_support/doc_scriptfunction.asp
> >>> >>>
> >>> >>>  hth
> >>> >>>
> >>> >>> Martin
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> ----- Original Message ----- 
> >>> >>> From: "Steven Hicks (HICKSSM)" <Steven.HicksSM@xxxxxxxxxxxxx>
> >>> >>> To: <jawsscripts@xxxxxxxxxxxxx>
> >>> >>> Sent: Tuesday, August 18, 2009 8:57 AM
> >>> >>> Subject: [jawsscripts] scripting User Guides
> >>> >>>
> >>> >>>
> >>> >>>> Hi friends,
> >>> >>>> two questions really, does anyone know why:
> >>> >>>> Var TestTextString
> >>> >>>> won't work.
> >>> >>>>
> >>> >>>> also, I used to have a resource type kit that allowed me to
lookup
> >>> >>>> functions and things etc, does anyone know a direct link that I
can
> >>> >>>> download this so i don't have to keep bothering the list with
> >>> >>>> simple
> >>> >>>> things please?
> >>> >>>> I am working on some quite advanced scripts which is quite
> >>> >>>> exciting.
> >>> >>>>
> >>> >>>>
> >>> >>>>
> >>> >>>>
> >>>
>
>>>>>> ---------------------------------------------------------------------
--
> >> ------------------
> >>> >>>> The information in this e-mail and any attachments is
> >>> >>>> confidential and is intended for the attention and use of the
> >>> >>>> named addressee(s).  It  must not be disclosed to any other
> >>> >>>> person  without our authority.  If you are not the intended
> >>> >>>> recipient, or a person responsible for delivering it to
> >>> >>>> the intended recipient or are aware that this e-mail has been
> >>> >>>> sent to you in error, you are not authorised to and must not
> >>> >>>> disclose, copy, distribute, or retain this message or any part of
> >>> >>>> it.
> >>> >>>>
> >>> >>>> We sweep all outgoing messages for the presence of computer
> >>> >>>> viruses. However, we cannot accept any responsibility for any
> >>> >>>> loss or damage to your systems due to viruses or malicious
> >>> >>>> code not detected.
> >>> >>>>
> >>> >>>> The statements and opinions expressed in this message are
> >>> >>>> those of the author and do not necessarily reflect those of the
> >>> >>>> organisations within the Cornwall & Isles of Scilly Health
> >>> >>>> Community.
> >>> >>>>
> >>> >>>> This email may be disclosed under the Freedom of Information
> >>> >>>> Act 2000 or the Environmental Information Regulations 2004.
> >>>
>
>>>>>> ---------------------------------------------------------------------
--
> >> ------------------
> >>> >>>>
> >>> >>>> __________
> >>> >>>> 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
> >>> >>>>
> >>> >>>
> >>> >>>
> >>>
>
>>>>> ----------------------------------------------------------------------
--
> >> --------
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> No virus found in this incoming message.
> >>> >>> Checked by AVG - www.avg.com
> >>> >>> Version: 8.5.392 / Virus Database: 270.13.58/2309 - Release Date:
> >>> >>> 08/17/09
> >>> >>> 06:08:00
> >>> >>>
> >>> >>> __________
> >>> >>> 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
> >>> >>>
> >>> >>
> >>> >>
> >>>
>
>>>> -----------------------------------------------------------------------
--
> >> ----------------
> >>> >> The information in this e-mail and any attachments is
> >>> >> confidential and is intended for the attention and use of the
> >>> >> named addressee(s).  It  must not be disclosed to any other
> >>> >> person  without our authority.  If you are not the intended
> >>> >> recipient, or a person responsible for delivering it to
> >>> >> the intended recipient or are aware that this e-mail has been
> >>> >> sent to you in error, you are not authorised to and must not
> >>> >> disclose, copy, distribute, or retain this message or any part of
it.
> >>> >>
> >>> >> We sweep all outgoing messages for the presence of computer
> >>> >> viruses. However, we cannot accept any responsibility for any
> >>> >> loss or damage to your systems due to viruses or malicious
> >>> >> code not detected.
> >>> >>
> >>> >> The statements and opinions expressed in this message are
> >>> >> those of the author and do not necessarily reflect those of the
> >>> >> organisations within the Cornwall & Isles of Scilly Health
> >>> >> Community.
> >>> >>
> >>> >> This email may be disclosed under the Freedom of Information
> >>> >> Act 2000 or the Environmental Information Regulations 2004.
> >>>
>
>>>> -----------------------------------------------------------------------
--
> >> ----------------
> >>> >> __________
> >>> >> 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
> >>> >>
> >>> >
> >>> >
> >>>
>
>>> ------------------------------------------------------------------------
--
> >> ------
> >>> >
> >>> >
> >>> >
> >>> > No virus found in this incoming message.
> >>> > Checked by AVG - www.avg.com
> >>> > Version: 8.5.409 / Virus Database: 270.13.60/2311 - Release Date:
> >> 08/18/09
> >>> > 06:03:00
> >>> >
> >>> > __________
> >>> > 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
> >>> >
> >>>
> >>>
>
>>> ------------------------------------------------------------------------
--
> >> ---------------
> >>> The information in this e-mail and any attachments is
> >>> confidential and is intended for the attention and use of the
> >>> named addressee(s).  It  must not be disclosed to any other
> >>> person  without our authority.  If you are not the intended
> >>> recipient, or a person responsible for delivering it to
> >>> the intended recipient or are aware that this e-mail has been
> >>> sent to you in error, you are not authorised to and must not
> >>> disclose, copy, distribute, or retain this message or any part of it.
> >>>
> >>> We sweep all outgoing messages for the presence of computer
> >>> viruses. However, we cannot accept any responsibility for any
> >>> loss or damage to your systems due to viruses or malicious
> >>> code not detected.
> >>>
> >>> The statements and opinions expressed in this message are
> >>> those of the author and do not necessarily reflect those of the
> >>> organisations within the Cornwall & Isles of Scilly Health
> >>> Community.
> >>>
> >>> This email may be disclosed under the Freedom of Information
> >>> Act 2000 or the Environmental Information Regulations 2004.
>
>>> ------------------------------------------------------------------------
--
> >> ---------------
> >>> __________
> >>> 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
> >>
> >
> >
>
> --------------------------------------------------------------------------
---------------
> > The information in this e-mail and any attachments is
> > confidential and is intended for the attention and use of the
> > named addressee(s).  It  must not be disclosed to any other
> > person  without our authority.  If you are not the intended
> > recipient, or a person responsible for delivering it to
> > the intended recipient or are aware that this e-mail has been
> > sent to you in error, you are not authorised to and must not
> > disclose, copy, distribute, or retain this message or any part of it.
> >
> > We sweep all outgoing messages for the presence of computer
> > viruses. However, we cannot accept any responsibility for any
> > loss or damage to your systems due to viruses or malicious
> > code not detected.
> >
> > The statements and opinions expressed in this message are
> > those of the author and do not necessarily reflect those of the
> > organisations within the Cornwall & Isles of Scilly Health
> > Community.
> >
> > This email may be disclosed under the Freedom of Information
> > Act 2000 or the Environmental Information Regulations 2004.
>
> --------------------------------------------------------------------------
---------------
> > __________
> > 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
> >
>
>
> --------------------------------------------------------------------------
------
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.409 / Virus Database: 270.13.60/2311 - Release Date: 08/18/09
> 06:03:00
>
> __________
> 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: