[jawsscripts] Re: help with multiple If statement entries not working?

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 15 Oct 2007 01:08:27 +1000

indeed! yes, thanks for this headsup Doug, I will check this.

chedk
I'm in love with GetTextInRects though at present I gotta say, for this
terminal emulation product I'm scripting. it's proved far more reliable
really, than GetTextInFrame has, especially when needing to auto speak stuff
upon a new FrameSet loading, which is a utility Jim snowBarger wrote for me
to be able to swap in and out whole screenFrameSet environments. but the
trouble is, sometimes there's timing issues with GetTextInFrame, when tha'ts
just happened, that GetTextINRect, doesn't seem to suffer from, plus, when
you need to get really fancy, with GetTextInRacts, you can vary their
coordinates on the fly based on calculations you can do based on other
screen Conditions! which to my knowledge you can't easily do, using
GetTextInFrame. it has to be static and that's kinda it.

coo wiht Gtoruble envrionments,JIm snouitility whic From: "Doug Lee"
<doug.lee@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, October 12, 2007 2:03 AM
Subject: [jawsscripts] Re: help with multiple If statement entries not
working?


> I suggest making sure the strings returned by GetTextInRect don't
> contain leading blanks, as this would prevent the comparisons you're
> making from being True.
>
> On Thu, Oct 11, 2007 at 08:27:08PM +1000, Geoff Chapman wrote:
> Guys. Sorry to be boring, I'm not that long into scripting, and even the
> most basic thing seems to be eluding me tonight! and I really would like
> this to work. if any kind soul could help me debug this simple if
statement?
> The Code follows: what I want to say is:
> if this condition is so,
> or, if this and this condition are so,
> then do x. but it isn't working the way I'm writing it, so somethin is
> wrong. when I just have the first or, branch of it though, which is the
> screen I'm currently working with, it functions fine, so it's something to
> do with the  multiple statements that I'm messing up,
> I've tried putting parens around only the two, and, statements, and around
> the whole thing from beginning of the first one straight after the if, and
> at the end, right before the then, which is the way it's written below
here
> now, but neither one seems to function, not that I fvelt it should need
> parens around it anywhere really anyway!.
> here comes  the code:
> if (GetTextInRect (345, 327, 501, 350) != "TakeAway Unit"
>
>
> || GetTextInFrame
> ("ConfirmTakeAwayCustomerDetailsTriggerConfirmTakeawayDetailsScreen") !=
> "Unit"
>
>
>
> && GetTextInRect (273, 327, 417, 350) != "Confirm Take") then
>
>
>
> LoadFrameSetFr ("CustomerDetails")
>
>
>
> EndIf
>
>
>
> in the above, the first if statement although definitely true, is not
> working as if the function thinks it's true, i.e. the text is present, and
> it's been told only if absent to follow through,
>
> yet the LoadFrameSet function is still happily firing!
>
> any help greatly appreciated.
>
> Thank you.
>
>
>
> geoff c.
>
>
>
> Geoff c.
>
>
>
>
>
> __________?
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> -- 
> Doug Lee, Access Technology Programmer
> SSB BART Group
> mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
> "While they were saying among themselves it cannot be done,
> it was done." --Helen Keller
> __________
> 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: