Larry
Sat Oct 14 09:13:25 CDT 2006
I guess the idea is that the clipboardData property or method needs some =
object to work off of, so it uses IE.document.parentwindow, even if the =
IE document window actually has nothing to do with what the script is =
doing. It's needed for syntax reasons, not for anything real. That's =
my guess at the moment.
My question is, are there any other objects that could accomplish the =
same purpose, so that it wouldn't be necessary to open an IE window? So =
that instead of=20
data=3DIE.document.parentwindow.clipboardData.getData("text")
we had something like this:
data=3D[object].clipboardData.getData("text")
I ask this because the opening of the IE window causes the selection on =
which I'm working (the selection is normally a broken URL in an e-mail) =
to be unhighlighted, then highlighted again and I want to prevent that =
from happening. =20
"Larry" <larry328NOSPAM@att.net> wrote in message =
news:O6rbUK57GHA.3264@TK2MSFTNGP04.phx.gbl...
But IE doesn't open or anything when I run the script. Yet the script =
seems to create an IE window. =20
Perhaps the code=20
Set IE =3D CreateObject("InternetExplorer.Application")
IE.Navigate("about:blank")
creates an IE window that is not visible? Yes, I see that's the case, =
because when I add
IE.visible =3D True
That makes a new blank IE window appear. But I still don't understand =
this next line. What is this line doing? I understand about getting =
the text from the clipboard, but what does the IE window have to do with =
it? The clipboard is not dependent on the IE window, the clipboard =
exists by itself. So why does it need the IE window to get text from =
the clipboard?
data=3DIE.document.parentwindow.clipboardData.getData("text")
""Crash" Dummy" <dvader@deathstar.mil> wrote in message =
news:%23CeXTw47GHA.4708@TK2MSFTNGP05.phx.gbl...
> > I still don't understand what IE has to do with it and would love to
> understand.
>=20
> I don't know why, but that is the only way I know of to access the =
clipboard
> from a script.
> =
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/clipboa=
rddata.asp
> --=20
> Crash
>=20
>