Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How to "Set" unicode text to Win32::Clipboard?

by Dr. Mu (Hermit)
on May 01, 2011 at 00:15 UTC ( #902274=note: print w/ replies, xml ) Need Help??


in reply to Re: How to "Set" unicode text to Win32::Clipboard?
in thread How to "Set" unicode text to Win32::Clipboard?

Thanks, yes, I saw that in the doc about CF_TEXT; but the same doc also states that CF_UNICODETEXT is a constant that's "not recognized by Win32:Clipboard," which is untrue. So I was hoping the doc was wrong here, as well, and that there was an easy way around the issue.

Options 2 and 3 are more than I care to dig into right now. But since I'm using Win32::GuiTest I might also look into using its WMSetText method to write the text directly to the textarea, instead of going through the clipboard. Wish me luck!

Thanks again,
-Phil


Comment on Re^2: How to "Set" unicode text to Win32::Clipboard?
Re^3: How to "Set" unicode text to Win32::Clipboard?
by Dr. Mu (Hermit) on May 01, 2011 at 21:56 UTC
    Unfortunately, WMSetText doesn't work like I thought it would with the text in the edit window. However, I've been able to work around the problem by saving the marked-up text to a file and causing the other program to load that file, instead of going back through the clipboard. It's ugly (the open file dialog box flashes on momentarily -- yuck!), but it works.

    -Phil

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://902274]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-11-24 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (135 votes), past polls