[jawsscripts] Re: How might I code up a table to appear in virtual viewer?
- From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Thu, 19 Feb 2009 11:20:16 +1100
Wow! ok!
Thanks to Jim and Sean and James for most welcome input on this one.
And especially for specific code examples syntax! I would've had no idea.
confession ignorance time now,
i've never used objects before in my life! nor have I ever really understood
them either.
Thanks for the input guys, I will give this a shot, though I've absolutely
know idea what I'm doing here!
<grin.>
I don't know what Com objects are either or how I might go about learning
their meaning/usage. though I've heard them spoken about lots up here and
they sound mighty powerful puppies if one could harness their effective
usage.
is there a particular document I might read or code I might
study with stacks of comments intimating a teaching type environment?
From my reading, except for the introduction of the word, Com, it sounds
kinda like Sean and Jim bower were on the same page here with this. is that
correct?
one big question I have immediately though.
Where Jim has indicated the function line:
ODoc.write("whateverYouWantHere, would be your HTML in this instance")
from which I glean that all must be inside quotation marks as the single
parameter to
ODoc.write,
But will it cope happily with line breaks all over the place within this?
For in some instances in functions, I've found some functions don't seem to
cope with lineBreaks, and other's do? I've not yet worked out the deal with
that either. SayStrings seem to cope ok with them, at least in my
experience where you close quotes, and then put a line break and put plus,
then open new quote, new string stuff, close quotes, new line break, plus,
etc.
But, where you've got one parameter that's gotta all be inside one set of
quotation marks. is this gunna work across linebreaks would you think?
or do I somehow need to write all the html code in another method designed
to put it all into a string, and then put that string into the quotation
marks as the parameter in ODoc.write?
Sorry so much ignorance going on here.
I will give it a trial now, and may have more questions when I've done that.
----- Original Message -----
From: "Jim Bauer" <holdsworthfan@xxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, February 19, 2009 3:12 AM
Subject: [jawsscripts] Re: How might I code up a table to appear in virtual
viewer?
> In cases like these, I've always simply created an HTML document
> object, either through FSO or InternetExplorer.application.
>
> For the latter, something like the following:
> var object o, object ODoc
> let o = createObject("internetExplorer.application")
> let oDoc = o.document
> o.navigate("about:blank")
> ODoc.write("whateverYouWantHere, would be your HTML in this instance")
>
> Whenever you wish to show it to the user:
> let o.visible = 1
>
>
> FSO works, too, but I have seen particularly stringent permissions get
> in the way of WScript use.
> Original message
> from: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
> subject: [jawsscripts] How might I code up a table to appear in
> virtual viewer?
> date: Thu, 19 Feb 2009 02:40:51 +1100
>
> >hey mighty scripter Gals/Guys.
> >in this pizza hut call center app I'm working on now, I desire to maybe
be able to reformat some horridly difficult to access onscreen tables
appearing in this terminal emulation pcsws 5250 environment,
> >such that they become far more speed efficient to navigate than they
currently are.
> >I thought I might try doing this in the virtual viewer, as indeed I'm
reformatting a few screens in there upon key request to make user navigation
more quick and eficient, but I just have no idea how to do an html table in
Script land?
> >Thanks infinitely to Paul Magill,
> >I do already know about:
> >UserBufferDeactivate ()
> >
> >UserBufferClear ()
> >
> >UserBufferAddText (Strings to add)
> >UserBufferAddText (Next String to add)
> >; when complete,
> >
> >UserBufferActivate ()
> >
> >And, although I know the absolute rudimentaries of creating an html table
in notepad, i.e.
> >
> ><table>
> ><tr>
> ><td><b>FirstColumnHeader</b></td>
> ><td><b>SecondColumnHeader</b></td>
> ><td><b>ThirdColumnHeader</b></td></tr>
> >
> ><tr>
> ><td>FirstColumnData</td>
> ><td>SecondColumnData</td>
> ><td>ThirdColumnData</td></tr>
> >etc
> ></table>
> >
> >
> >
> >I've got absolutely no clue what the syntax is in ScriptLand, to be able
to make all this work inside a jawsFunction, such that I can doublePress my
hotkey, and have this whole screen just appear in a normatively navigable
html table like one might normally do on the web?
> >
> >Can anyone assist me at all with maybe some code examples for how I might
do this?
> >
> >I haven't really thought yet either, exactly how I'll grab the OnScreen
Data for pumping them into the data cells, but I presume I'll just use
GetTextInRect string type function to do that, though if some kind soul
might demonstrate for me how exactly this might be coded, It'd be a huuuge
help for me?
> >
> >thanks heaps if anyone can help.
> >Geoff c.
> >
> >
> >
> >__________
> >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
>
__________
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: