[jawsscripts] Re: Trying to Script A Game called "Front Office Football"

  • From: The dark count <darkcount1@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 02 May 2014 23:52:33 -0700

Absolutely!
As you figure it out please share with us if you don't mind.
The nature of the beast is that there is at times no magic pill.
Here is cheering you on!

On 5/2/2014 6:31 PM, Al Puzzuoli wrote:
> Thanks,
> I've played a bit  with doing it using frames, but I would like to find
> a more robust solution to share, and to strengthen my own scripting
> skills. Will keep poking at it.
> Thanks again,
> --Al
>
> On 5/1/2014 2:23 PM, The dark count wrote:
>> If this is for your own use and you are not planning to deploy you may
>> consider this.
>> I once had to put a frame on a certain part of the screen because
>> anytime text would reach that area it would repeat twice.
>> For some reason every time the text was about to scroll off the page,
>> the new text would make it so that both were read. So I had to silence
>> the top of the screen so only the new stuff would speak.
>>
>> This has been one of my frustrations since the start with the scripting
>> language when trying to capture newly written text to the screen.
>> At times it can be as easy as say (buffer, ot_Buffer), at at others you
>> have to scrape the screen in various ways to get things done.
>>
>> D C
>>
>> On 5/1/2014 9:10 AM, Al Puzzuoli wrote:
>>> Hi,
>>> thanks to everyone who has responded thus far. It seems that I'm able to
>>> make the window in question read pretty well by simply assigning a
>>> custom highlight. Problem is, text in that window is often being
>>> repeated or double reading. I've tried raising the text out delay
>>> setting in hopes that would settle things down, but it doesn't seem to
>>> be working. Is there anything I can do to insure that text newly written
>>> to the screen in that area is only read once?
>>> Thanks,
>>>
>>> Al
>>>
>>> On 4/21/2014 9:12 AM, Homme, James wrote:
>>>> Hi Al,
>>>> Copy everything that uses constants from default.jss. Then get rid of what 
>>>> you don't want by putting semicolons in front of lines. You can then 
>>>> delete those lines when you have no more compiler errors.
>>>>
>>>> Thanks.
>>>>
>>>> Jim
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: jawsscripts-bounce@xxxxxxxxxxxxx 
>>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Al Puzzuoli
>>>> Sent: Saturday, April 19, 2014 7:29 PM
>>>> To: Jaws Scripts
>>>> Subject: [jawsscripts] Trying to Script A Game called "Front Office 
>>>> Football"
>>>>
>>>> Hi everyone,
>>>> I'm a long time Jaws user, but a newcomer to this list. I have been
>>>> wanting to sharpen my Jaws scripting techniques for a while now, and
>>>> have found a fun project that could prove rewarding for myself and many
>>>> others if I can make it work. The game is called Front Office Football,
>>>> and it's an extremely in depth text based simulator that puts you in the
>>>> role of general manager of your favorite NFL team. If you want to have a
>>>> look at the game, you can download a trial copy here:
>>>> http://www.solecismic.com/fof/index.php
>>>> Unfortunately, the trial  version only allows the game to be run 3 times
>>>> before it expires; However, I have already purchased the game and
>>>> gotten  several hours of enjoyment from it, despite the fact that
>>>> relatively easily resolvable accessibility glitches abound throughout
>>>> the UI. For those who are interested, I can detail all the issues I've
>>>> found and how I've overcome them thus far; but right now, I have a
>>>> specific newbie scripting question. There is a module in the game called
>>>> Solovision, basically where you get to watch the play by play of games
>>>> taking place each week. The control where the text based play by play
>>>> occurs is a read only edit box with a caret. The text in that window
>>>> changes as each play occurs. I'm trying to get Jaws to reliably autoread
>>>> the contents of that window as it changes. My first thought was to
>>>> define a frame and set it to speak all text. However, this seems easier
>>>> said than done. I've tried establishing the boundaries of the frame by
>>>> moving the caret to the bottom of the control with control+end, marking
>>>> that as bottom right, and then moving to the top with control+home, and
>>>> marking that as top left. The frame never autoreads reliably. I hear
>>>> text repeated multiple times, pieces of text that I know are there are
>>>> not read, etc. My next thought was to try defining a custom highlight;
>>>> but for whatever reason, Jaws color detection doesn't seem to be working
>>>> right for me under Windows 8. Pretty much all the text in the Front
>>>> Office Football Application, and any other application for that matter
>>>> is being reported as black on white. I'm skeptical that is really the
>>>> case, but not sure if there is anything I can do to fix it. My next
>>>> thought was to script a solution. The pseudo code would look something
>>>> like this: if (Text changes in Window handle 461378) then SayWindow
>>>> (461378).
>>>> Is something like this possible? If so, how would I construct the first
>>>> part of that if statement, or how else could I accomplish something 
>>>> similar?
>>>> Thanks for any feedback,
>>>> Al
>>>>
>>>> __________�
>>>>
>>>> View the list's information and change your settings at
>>>> //www.freelists.org/list/jawsscripts
>>>>
>>>>
>>>> ________________________________
>>>>
>>>> This e-mail and any attachments to it are confidential and are intended 
>>>> solely for use of the individual or entity to whom they are addressed. If 
>>>> you have received this e-mail in error, please notify the sender 
>>>> immediately and then delete it. If you are not the intended recipient, you 
>>>> must not keep, use, disclose, copy or distribute this e-mail without the 
>>>> author's prior permission. The views expressed in this e-mail message do 
>>>> not necessarily represent the views of Highmark, its diversified business, 
>>>> or affiliates.
>>>>
>>>> __________�
>>>>
>>>> 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
>>>
>>> .
>>>
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>

-- 
Thanks,

D C

__________�

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

Other related posts: