Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I paste the content of the clipboard?

Status
Not open for further replies.

Seb104

IS-IT--Management
Aug 22, 2002
3
FR

Hi,

I need to paste the content of the clipboard (text)into an HTML page. I am surprised because no VBscript methods seems to do that. Can somebody help?

Seb.
 
This code is used in VB,so i don`t know is it used in VBS or not.
You can use Clipboard object:

txt=clipboard.GetText

if that code occured an error try this one too:
set cl=CreateObject("Clipboard.Application")
txt=cl.GetText
Behnam2204@yahoo.com
BehnamPro
 
Hi BenhamPro,

Thks for your answer. However, I can't manage to make that work...

Here's my -simplified- .asp file:


<HTML>
<BODY>

<script language=&quot;VBScript&quot;>
dim clip
set cl = createobject(&quot;clipboard.application&quot;)

clip = cl.gettext

document.write clip
</script>

</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top