Hello Stacy,

The resulting menu gives you the option of grabbing the current word,
current line, or current window.
Thanks,
Dennis Brown, [EMAIL PROTECTED]

----- Original Message -----
From: Stacy Smith <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 09, 1999 6:15 PM
Subject: Re: Copying From The JAWS Cursor


> This is a little confusing.  What would copy an entire screenful or
> everything there is?
>
> Stacy.
>
> At 07:44 PM 8/9/1999 -0700, you wrote:
> >Hello Stacy,
> >
> >You can do what you want with this ScriptTip:
> >ScriptTip#110:      CopyTextFromScreen.
> >Synopsis:           Copys specified text from screen.
> >Description:        Grabs designated text from screen and writes it to
the
> >clipboard.
> >
> >Remarks:            JFW has a couple of functions that will retrieve
> >certain text from the screen, and hold it in a buffer, ready for use in
> >some other function/script.  These functions are GetCharacter(),
> >GetWord(), GetLine(), and GetWindowText().
> >Their names pretty much describe the amount of text they will retrieve
from
> >the current cursor's position on the screen, and they are presented in a
> >menu that you can choose from.  They are neat for grabbing items like
> >names, phone numbers, web site addresses, etc!
> >This script uses the CopyToClipboard() script to place the desired text
> >onto the clipboard for pasting into a suitable place.
> >It is important to note that any material already in the clipboard gets
> >replaced by this script!
> >
> >Example:            Have you ever wanted to grab a phone number from the
> >screen, or an internet address, or e-mail address, and wasn't in an edit
> >session where you could mark the desired text and copy it to the
clipboard?
> >This script will allow you to grab the text, even if you are not in an
edit
> >session, where the Copy, Cut, and Paste options within the Edit menu are
> >not available!
> >For example, you're in an application that displays the phone number to
the
> >developer's Technical Support department, or the URL to their Support web
> >site, and want to save that info for later referencing, you could move to
> >the desired text with one of the Jaws cursors, and invoke the
> >GrabTextFromScreen script to write that text to the Windows clipboard.
You
> >can then paste that info to a safe place later.
> >
> >How much material you can save is dependent upon the menu item you
select,
> >once you've moved the PC, Jaws, or Invisible cursor to the target text,
and
> >the hotkey for this script is pressed.
> >We'll want this script available, regardless of what application is
> >running, so we'll place it into the Default.jss script file.
> >
> >Compatibility:      JFW3.2 and higher.
> >
>
>--------------------------------------------------------------------------
> >1.  Hit Control+Shift+0 to launch the Script Manager with the
> >  default.jss file loaded into the editor.
> > 2.  Hit Control+End to reach the bottom of this file, then hit Enter a
> > few times to give yourself room to work.
> >3.  Type in, or cut and paste, the following script:
> >
> >;Grabs text from screen and writes it to clipboard.
> >
> >Script  CopyTextFromScreen ()
> >Var                 ;create a couple variables to hold the text.
> >string Char,        ; will hold the current character at the cursor.
> >string Word,        ;will hold the current word.
> >string Line,        ;will hold the current line.
> >string Window,      ;will hold current window's text.
> >String MyMenu,      ;text for menu display.
> >Int index           ; will hold menu item number.
> >;First, assign the text at the current active cursor's position
> >;to the appropriate variables.
> >let Char=GetCharacter()
> >let Word=GetWord()
> >let Line=GetLine()
> >let Window=GetWindowText(GetFocus(),FALSE)
> >;Now, create menu.
> >let MyMenu="|Character" +
> >"|Word" +
> >"|Line" +
> >"|Current window"
> >Let index=DlgSelectItemInList (MyMenu, "Copy text from screen menu",
False)
> >;Ok, take the menu item you selected and run it through these condition
> >;statements to execute the appropriate associated tasks!
> >If (index==1) then            ;You want to save just a single character?
> >CopyToClipboard (Char)        ;Ok, put that character onto the clipboard.
> >Say(Char,ot_string)           ;Announce what you just saved!
> >ElIf (index==2 ) then         ;You want to save just the current word?
> >CopyToClipboard (Word)        ;Ok, place it onto the clipboard,
> >Say(Word,ot_string)           ;and announce that word.
> >ElIf (index==3 ) then         ;You want to save the current line?
> >CopyToClipboard (Line)        ;Ok, place that line onto the clipboard,
> >Say(Line,ot_string)           ;and announce the line.
> >ElIf (index==4 ) then         ;So you want the entire window?
> >CopyToClipboard (Window)      ;Ok, place it onto the clipboard,
> >Say(Window,ot_string)         ;and announce the window.
> >EndIf
> >EndScript
> >
> >
> >4)  While in this script, hit Control+D to edit it's properties.
> >5)  Tab down through the fields, making sure that the "Can be assigned to
> >key.." is checked, and fill in the "Synopsis:" and "Description:" fields.
> >6)  Tab to the "Assign to keystroke..." field and hit whatever key
> >combination you want to use to trigger this script, such as
Alt+Control+G.
> >7)  Tab to, then select Ok, and when back in the editor, hit Control+S to
> >compile the modifications.
> >
> >You may need to recycle JFW from memory before the changes are activated.
> >
> >
> >Hope this helps!
> >
> >
> >Thanks,
> >Dennis Brown, [EMAIL PROTECTED]
> >June 17, 1999
> >
> >----- Original Message -----
> >From: Stacy Smith <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, August 09, 1999 4:10 PM
> >Subject: Copying From The JAWS Cursor
> >
> >
> >> Why can't one copy information from the JAWS cursor to the clipboard?
> >>
> >> Stacy.
> >>
> >>
> >>
> >> -
> >> 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

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

Reply via email to