Hi Dennis,

Is there any way of setting a top left bottom right  rectangle and copying
everything in that rectangle?
Basically you would be creating a temporary frame and copying everything in
the frame to the clipboard.

For instance, it's simple to copy a column of info  in a table or in Excel
but if you are in a tabulated document you can't copy a column.

Many thanks,

Jim Pipczak
VisTech
An RVIB Equipment Service
201 High Street, Prahran Vic. 3181 Australia
Phone: 03 9520 5555  Fax: 03 9525 2065
Free Call: 1800 458 555 Within Australia
EMail: [EMAIL PROTECTED]




At 19:44 10/08/99 -0700, you wrote:
>Hello Les,
>With your question, you just tweaked that script by finding that the wrong
>function is being used to determine what window the text is grabbed from!
>In this script, we created 4 variables of type string, to hold the 4
>different amounts of available text items.
>These variable's names denote what text they hold; "Char" holds the
>character at the current cursor position; "Word" will hold the current word;
>"Line" will hold the current line; and "Window" will hold the text in the
>designated window--that window being designated by the window handle passed
>to the function that we're using to retrieve the text within the window.
>Here are the lines that assign the designated text, (designated by the
>function used to retrieve that particular amount of text)
>
>
>;These functions retrieve their particular text amount from the
>; text at the active cursor position--whether that cursor be
>;the JAWS, Invisible, or PcCursor.
>let Char=GetCharacter()
>let Word=GetWord()
>let Line=GetLine()
>let Window=GetWindowText(GetFocus(),FALSE)
>
>Your question was what determines the window that the text is retrieved
>from, when selecting "Current Window..." from the menu of this script.  The
>previous line shows the function
>let Window=GetWindowText(GetFocus(),FALSE)
>being used to grab that text, and the "GetFocus()" returns the window handle
>of the current focused window.  And here is where you found the possible
>problem!  The GetFocus() function is used to return the handle of the window
>that the current highlight, or PcCursor may be on, and does not take into
>account what cursor is active!  Since the beginning subject of this entire
>thread was  "How to copy text at the JawsCursor...," the GetFocus() would
>not necessarily get the desired text, unless the JawsCursor was routed to
>the PcCursor.
>What the function needs to do is get the handle of the window at the
>*active* cursor, since the JAWS cursor and Invisible cursor may not be in
>the same window as the PcCursor.  To return such a handle, the
>GetCurrentWindow() function should be used in place of the GetFocus()
>function; that way, the GetWindowText(GetCurrentWindow(),FALSE) would give
>the text in the window at the current active cursor's position.
>
>So that assignment line should read
>let Window=GetWindowText(GetCurrentWindow(),FALSE)
>in order to return the desired text!
>(The "False" parameter just tells the GetWindowText function to get all the
>text, not just the highlighted text within that window.)
>Once the text was written to the variables, and that particular amount of
>text was selected from the menu, the following functions were used to write
>the text stored in those variables to the clipboard:
>
>CopyToClipboard (Char)
>CopyToClipboard (Word)
>CopyToClipboard (Line)
>CopyToClipboard (Window)
>
>
>Thanks for finding that possible oversight, and I hope I didn't confuse the
>issue!
>Comments, corrections and remarks welcomed!
>
>
>Thanks,
>Dennis Brown, [EMAIL PROTECTED]
>
>----- Original Message -----
>From: Les Kriegler <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, August 10, 1999 3:06 PM
>Subject: RE: Copying From The JAWS Cursor
>
>
>> Hi Dennis,
>>
>> How is the current widnow defined?  Also, what determines this?  Is the
>> current window the entire screen, or is that based on a setting in the
>frame
>> manager or config manager?  I know that in Frame Manager, there was a
>> setting to set the window relative to current window or screen if I
>> rremember correctly.  Thanks.
>> Best Regards,
>>
>> Les
>>
>> -
>> Visit the jfw ml web page: http://jfw.cjb.net
>
>-
>Visit the jfw ml web page: http://jfw.cjb.net

-
Visit the jfw ml web page: http://jfw.cjb.net

Reply via email to