The GW-Apps is geared toward discussions of Window-Eyes and GW Micro apps. Any subscriber of the GW-Apps list has the ability to post on-topic messages.
From:
Rod Hutton <rhstuff@sympatico.ca>Subject:
Re: How to copy a column from an HTML tableDate:
Wed, Nov 21, 2012 2:52:48 pmHi Bruce,
Sorry to take so long to write back, Bruce, but I've been going crazy with
my pursuit of scripting knowledge re. multiple instances of Winamp. I was
hoping to get in touch with Jeff Bishop, the writer of Winamp Scripts, but I
haven't had a chance yet.
But, yes, if you have a chance, I certainly would appreciate a little app to
do my column-selection job; I just don't have the head-space to handle any
more just now. <smile>
Hey, hope you and everyone here has a Happy Thanksgiving "down under," that
is, below the Canadian border. <smile>
Take care,
Rod
-----Original Message-----
From: BT
Sent: Monday, November 19, 2012 10:09 AM
To: gw-apps@gwmicro.com
Subject: Re: How to copy a column from an HTML table
Hi Rod,
As Aaron may find and I did and might just write an app for you. There
is a better approach as long as you can get the table name. For you can get
2 points of importance, the list of all cells in a single dimensional array.
Then get the number of columns in the table.
Once you have done that you can index each column in the single array by
just doing some simple math.
I almost did this in my HTML Trek game which I wrote before converting
to Python. But I used not just the array of cells but did give a unique ID
that did correspond to the row-col and did not need to reference the table
itself, just the ID corresponding to that cell...
The only thing needed to do is get the name of the table you have
highlighted, get the columns in that table, then convert the entire table
into on list and do the math from there...
So, I will look into it today and see what happens. Or you could do the
same thing if you want to. For the .cells and .cols are table commands...
sincerely
Bruce
Sent: Monday, November 19, 2012 9:12 AM
Subject: Re: How to copy a column from an HTML table
Hi, Rod.
That gives me some ideas. I'll make a note to investigate this once 8.0
is shipping.
Thanks,
Aaron
On 11/16/2012 9:20 AM, Rod Hutton wrote:
> Hi Aaron,
>
> Yes, thank you very much, Aaron. I had gotten your suggestion a
> couple days ago. I was just wondering if it could be done using the
> DOM. I'm fairly new to scripting, and I have been reviewing some of
> the enumerations in the script reference, namely:
>
> Navigation:
> The Window-Eyes Object Model
>>
> Enumerations
>>
> AccessibleSelection
>
> Using the above enumeration, could we rite an app to go the top of the
> column, select that cell, and then simply extend the selection down to
> the bottom? I'm just brain-storming here.
>
> I really didn't want to use another software method, with having to
> delete table columns I don't want. This seems kind of awkward and not
> very classy for a dynamite software solution like Window-Eyes at our
> finger-tips. Smile.
>
> Besides, a while back I had read that it could be done. In fact, I
> just did a quick google, and here's a page where they're talking about
> it, and it sounds like one guy is on to something good:
>
> http://stackoverflow.com/questions/6619805/select-text-in-a-column-of-an-html-table
>
>
> On to another matter for a sec, Aaron. When the 8.0 beta-1 came out,
> I noticed that, on login, focus was not on the password field, and,
> with the beta-2, I'm seeing the same situation on my Windows 7 Home
> Premium, though not on my Windows 7 Ultimate. This is not too much
> trouble for me, since I'm savvy, and I know how to alt-tab to the
> field I need. It would be, however, a problem for the novice,
> especially if they start typing their password off of the field, and
> good old Window-Eyes echoes beautifally. Smile.
>
> All the best, Aaron,
>
> Rod Hutton
> -----Original Message----- From: Aaron Smith
> Sent: Friday, November 16, 2012 8:32 AM
> To: gw-apps@gwmicro.com
> Subject: Re: How to copy a column from an HTML table
>
> Hi, Rod.
>
> You can still use the steps I provided to copy the entire table, and
> then remove the columns that you don't want using Word. Browsers
> typically don't let you select single columns in tables, which is why I
> was surprised when Martin had come up with a solution.
>
> The app simply creates a textrange between two nodes (the start point
> and end point), but, using the DOM, there's no way to get a start node
> of a column and end node of a column without getting all of the other
> table cells in between.
>
> I'd be happy to be proven wrong, but I don't believe you can do exactly
> what you want without a little editing.
>
> Thanks,
>
> Aaron
>
> On 11/15/2012 9:35 PM, Rod Hutton wrote:
>> Dear Martin,
>>
>> Your method only copies the contents of the cell you are in to the
>> clipboard, not the entire column.
>>
>> Take a look at this web page:
>>
>> http://en.wikipedia.org/wiki/Survivor_(TV_series)
>>
>> Navigate to the second column, entitle Local "title," which, all the
>> way down to the bottom of the column, actually contains the titles of
>> all the seasons of Survivor.
>>
>> Now, say I want to copy and paste all these season titles into
>> Notepad all at once, that is, in one copy and paste operation. Your
>> method does not do this. It would require me to repeat the selection
>> and copy/paste operation one cell at a time, starting at the top of
>> the column, and going down down row by row.
>>
>> Nice try, but no cigar. Smile.
>>
>> Let's all keep on trying,
>>
>> Rod Hutton
>>
>> -----Original Message----- From: martin webster
>> Sent: Thursday, November 15, 2012 9:32 AM
>> To: gw-apps@gwmicro.com
>> Subject: RE: How to copy a column from an HTML table
>>
>> Hi Louis,
>> I am able to copy a single column of a table by doing the following:
>> Navigate to a table, enable table mode, control and equals. navigate
>> to the required column by using insert and appropriate cursor keys.
>> select all, control a, selects everything in that column or table
>> cell. copy to clipboard control c, and dump it to notepad. I have
>> tried this on three different kinds of tables thus far, and every
>> time this work for me. If this is not the case for you please give us
>> the web link and I'll give it a go. Hope this helps.
>> Warm regards.
>> Martin Webster.
>> I.T. director for Kirklees Visual Impairment Network.
>>
>>
>>
>> --- On Wed, 11/14/12, Louis <gosselin_louis@myfairpoint.net> wrote:
>>
>>> From: Louis <gosselin_louis@myfairpoint.net>
>>> Subject: RE: How to copy a column from an HTML table
>>> To: gw-apps@gwmicro.com
>>> Cc: gw-scripting@gwmicro.com
>>> Date: Wednesday, November 14, 2012, 2:16 PM
>>> I hate to say this, but I sure can't
>>> make heads nor tails of this answer below. And I, too, would
>>> like to know how to copy a column from a table.
>>>
>>> Louis Gosselin
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Aaron Smith [mailto:aaron@gwmicro.com]
>>>
>>> Sent: Wednesday, November 14, 2012 8:30 AM
>>> To: gw-apps@gwmicro.com
>>> Cc: gw-scripting@gwmicro.com
>>> Subject: Re: How to copy a column from an HTML table
>>>
>>> Using the beta of Window-Eyes 8 and the latest IE Enhance
>>> app, you can use the Copy with Formatting feature do to
>>> this.
>>>
>>> Aaron
>>>
>>>
>>> On 11/13/2012 8:56 PM, Rod Hutton wrote:
>>>
>>>
>>> Hi,
>>>
>>> A big “you are welcome” to Elliot
>>> regarding auto-speaking the top/bottom indexes.
>>>
>>> Now, for my problem. Does anyone
>>> know how to select a column of text from an HTML table, so
>>> that I can copy and paste the text into Notepad.
>>> I’ve googled a bit, and apparently you can hold down
>>> control and left-click a column or something like that, but
>>> it doesn’t work for me.
>>>
>>> Can anybody help?
>>>
>>> Much thanks,
>>>
>>> Rod Hutton
>>>
>>>
>>> --
>>> Aaron Smith
>>> Web Development * App Development * Product Support
>>> Specialist GW Micro, Inc. * 725 Airport North Office Park,
>>> Fort Wayne, IN 46825
>>> 260-489-3671 * gwmicro.com
>>>
>>> To insure that you receive proper support, please include
>>> all past correspondence (where applicable), and any relevant
>>> information pertinent to your situation when submitting a
>>> problem report to the GW Micro Technical Support Team.
>>>
>>>
>
--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.
Sorry to take so long to write back, Bruce, but I've been going crazy with
my pursuit of scripting knowledge re. multiple instances of Winamp. I was
hoping to get in touch with Jeff Bishop, the writer of Winamp Scripts, but I
haven't had a chance yet.
But, yes, if you have a chance, I certainly would appreciate a little app to
do my column-selection job; I just don't have the head-space to handle any
more just now. <smile>
Hey, hope you and everyone here has a Happy Thanksgiving "down under," that
is, below the Canadian border. <smile>
Take care,
Rod
-----Original Message-----
From: BT
Sent: Monday, November 19, 2012 10:09 AM
To: gw-apps@gwmicro.com
Subject: Re: How to copy a column from an HTML table
Hi Rod,
As Aaron may find and I did and might just write an app for you. There
is a better approach as long as you can get the table name. For you can get
2 points of importance, the list of all cells in a single dimensional array.
Then get the number of columns in the table.
Once you have done that you can index each column in the single array by
just doing some simple math.
I almost did this in my HTML Trek game which I wrote before converting
to Python. But I used not just the array of cells but did give a unique ID
that did correspond to the row-col and did not need to reference the table
itself, just the ID corresponding to that cell...
The only thing needed to do is get the name of the table you have
highlighted, get the columns in that table, then convert the entire table
into on list and do the math from there...
So, I will look into it today and see what happens. Or you could do the
same thing if you want to. For the .cells and .cols are table commands...
sincerely
Bruce
Sent: Monday, November 19, 2012 9:12 AM
Subject: Re: How to copy a column from an HTML table
Hi, Rod.
That gives me some ideas. I'll make a note to investigate this once 8.0
is shipping.
Thanks,
Aaron
On 11/16/2012 9:20 AM, Rod Hutton wrote:
> Hi Aaron,
>
> Yes, thank you very much, Aaron. I had gotten your suggestion a
> couple days ago. I was just wondering if it could be done using the
> DOM. I'm fairly new to scripting, and I have been reviewing some of
> the enumerations in the script reference, namely:
>
> Navigation:
> The Window-Eyes Object Model
>>
> Enumerations
>>
> AccessibleSelection
>
> Using the above enumeration, could we rite an app to go the top of the
> column, select that cell, and then simply extend the selection down to
> the bottom? I'm just brain-storming here.
>
> I really didn't want to use another software method, with having to
> delete table columns I don't want. This seems kind of awkward and not
> very classy for a dynamite software solution like Window-Eyes at our
> finger-tips. Smile.
>
> Besides, a while back I had read that it could be done. In fact, I
> just did a quick google, and here's a page where they're talking about
> it, and it sounds like one guy is on to something good:
>
> http://stackoverflow.com/questions/6619805/select-text-in-a-column-of-an-html-table
>
>
> On to another matter for a sec, Aaron. When the 8.0 beta-1 came out,
> I noticed that, on login, focus was not on the password field, and,
> with the beta-2, I'm seeing the same situation on my Windows 7 Home
> Premium, though not on my Windows 7 Ultimate. This is not too much
> trouble for me, since I'm savvy, and I know how to alt-tab to the
> field I need. It would be, however, a problem for the novice,
> especially if they start typing their password off of the field, and
> good old Window-Eyes echoes beautifally. Smile.
>
> All the best, Aaron,
>
> Rod Hutton
> -----Original Message----- From: Aaron Smith
> Sent: Friday, November 16, 2012 8:32 AM
> To: gw-apps@gwmicro.com
> Subject: Re: How to copy a column from an HTML table
>
> Hi, Rod.
>
> You can still use the steps I provided to copy the entire table, and
> then remove the columns that you don't want using Word. Browsers
> typically don't let you select single columns in tables, which is why I
> was surprised when Martin had come up with a solution.
>
> The app simply creates a textrange between two nodes (the start point
> and end point), but, using the DOM, there's no way to get a start node
> of a column and end node of a column without getting all of the other
> table cells in between.
>
> I'd be happy to be proven wrong, but I don't believe you can do exactly
> what you want without a little editing.
>
> Thanks,
>
> Aaron
>
> On 11/15/2012 9:35 PM, Rod Hutton wrote:
>> Dear Martin,
>>
>> Your method only copies the contents of the cell you are in to the
>> clipboard, not the entire column.
>>
>> Take a look at this web page:
>>
>> http://en.wikipedia.org/wiki/Survivor_(TV_series)
>>
>> Navigate to the second column, entitle Local "title," which, all the
>> way down to the bottom of the column, actually contains the titles of
>> all the seasons of Survivor.
>>
>> Now, say I want to copy and paste all these season titles into
>> Notepad all at once, that is, in one copy and paste operation. Your
>> method does not do this. It would require me to repeat the selection
>> and copy/paste operation one cell at a time, starting at the top of
>> the column, and going down down row by row.
>>
>> Nice try, but no cigar. Smile.
>>
>> Let's all keep on trying,
>>
>> Rod Hutton
>>
>> -----Original Message----- From: martin webster
>> Sent: Thursday, November 15, 2012 9:32 AM
>> To: gw-apps@gwmicro.com
>> Subject: RE: How to copy a column from an HTML table
>>
>> Hi Louis,
>> I am able to copy a single column of a table by doing the following:
>> Navigate to a table, enable table mode, control and equals. navigate
>> to the required column by using insert and appropriate cursor keys.
>> select all, control a, selects everything in that column or table
>> cell. copy to clipboard control c, and dump it to notepad. I have
>> tried this on three different kinds of tables thus far, and every
>> time this work for me. If this is not the case for you please give us
>> the web link and I'll give it a go. Hope this helps.
>> Warm regards.
>> Martin Webster.
>> I.T. director for Kirklees Visual Impairment Network.
>>
>>
>>
>> --- On Wed, 11/14/12, Louis <gosselin_louis@myfairpoint.net> wrote:
>>
>>> From: Louis <gosselin_louis@myfairpoint.net>
>>> Subject: RE: How to copy a column from an HTML table
>>> To: gw-apps@gwmicro.com
>>> Cc: gw-scripting@gwmicro.com
>>> Date: Wednesday, November 14, 2012, 2:16 PM
>>> I hate to say this, but I sure can't
>>> make heads nor tails of this answer below. And I, too, would
>>> like to know how to copy a column from a table.
>>>
>>> Louis Gosselin
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Aaron Smith [mailto:aaron@gwmicro.com]
>>>
>>> Sent: Wednesday, November 14, 2012 8:30 AM
>>> To: gw-apps@gwmicro.com
>>> Cc: gw-scripting@gwmicro.com
>>> Subject: Re: How to copy a column from an HTML table
>>>
>>> Using the beta of Window-Eyes 8 and the latest IE Enhance
>>> app, you can use the Copy with Formatting feature do to
>>> this.
>>>
>>> Aaron
>>>
>>>
>>> On 11/13/2012 8:56 PM, Rod Hutton wrote:
>>>
>>>
>>> Hi,
>>>
>>> A big “you are welcome” to Elliot
>>> regarding auto-speaking the top/bottom indexes.
>>>
>>> Now, for my problem. Does anyone
>>> know how to select a column of text from an HTML table, so
>>> that I can copy and paste the text into Notepad.
>>> I’ve googled a bit, and apparently you can hold down
>>> control and left-click a column or something like that, but
>>> it doesn’t work for me.
>>>
>>> Can anybody help?
>>>
>>> Much thanks,
>>>
>>> Rod Hutton
>>>
>>>
>>> --
>>> Aaron Smith
>>> Web Development * App Development * Product Support
>>> Specialist GW Micro, Inc. * 725 Airport North Office Park,
>>> Fort Wayne, IN 46825
>>> 260-489-3671 * gwmicro.com
>>>
>>> To insure that you receive proper support, please include
>>> all past correspondence (where applicable), and any relevant
>>> information pertinent to your situation when submitting a
>>> problem report to the GW Micro Technical Support Team.
>>>
>>>
>
--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.




