Hi Kevin,

    Chip has mentioned that which inside the WE object model you can not 
monitor files or names of files, but if you make your own com object you do 
have a type function which can tell you something about files and you make 
you test to check what type is inside the Clipboard and go look at the 
collection on the file handle list...

    But, there are only 2 flags inside the WE Object model, so you are 
restricted to those 2, pictures and text...

        Bruce

Sent: Saturday, June 16, 2012 1:06 PM
Subject: RE: Speaking contents of the clipboard


Hi Kevin,

If you speak it when something else posts new content to the clipboard, no,
there's no event I know of which you could use.

You could pole the clipboard with a timer, once a second for instance, and
if it's text compare it to the last contents you spoke, and if it's
different then try to figure out if it's a file name (test for existence of
the file?), and if so speak it; but it seems quite a bit to do to get it to
speak the file name.

BTW, if the person is interested they could just use a hotkey to speak the
clipboard, which reminds me there is an app named sayClip I remember seeing
which does do that I think?

Chip


> -----Original Message-----
> From: Kevin Huber [mailto:[email protected]]
> Sent: Friday, June 15, 2012 1:40 PM
> To: gw-scripting
> Subject: Speaking contents of the clipboard
>
> Hi:
> I am in the process of writing a script which has three
> hotkeys.  One will copy text from the clipboard and speak the
> contents of the clipboard, another will cut text to a
> clipboard and read the contents of the clipboard, and still
> another will paste text from the clipboard and announce the
> contents of the clipboard.
> My question is, if I am copying filenames to the clipboard,
> is there a way to get Window-eyes to speak the contents of
> the clipboard, similar to the line:
> "speak clipboard.text", which speaks the contents of the
> clipboard when the clipboard contains text.
>  Kevin Huber
>

Reply via email to