
abhiomkar
New User
Apr 1, 2008, 2:36 AM
Post #1 of 5
(1792 views)
|
Writing a new line to Clipboard to paste into plaintext format
|
Can't Post
|
|
Hi, I am beginner to perl, I am using Win32::Clipboard, to set the clipboard content using perl. Program: use Win32::Clipboard; Win32::Clipboard::Set("FirstName\nLastName"); When i run the above porgram, it 'll set the clipboard content to FirstName followed by newline and followed by LastName. If i paste the clipboard content into the notepad. The box appears (shown in the screenshot attached) instead of the newline, i don't know why. But, when i paste it into the word document the FirstName and LastName appears in two lines (it is normal). How can i get the new line instead of box (as shown in the screenshot attached) when i paste the clipboard into notepad (or any plaintext editor) ? Plz, Can anybody help ? Thank you.
|