| View previous topic :: View next topic |
| Author |
Message |
daorc
Joined: 18 Oct 2006 Posts: 78
|
Posted: Sat Nov 24, 2007 10:24 am Post subject: operating (e.g. stringreplace) on ClipboardAll? |
|
|
Hello. Is it possible to operate on text in a variable that is storing “ClipboardAll”? If, for example, you copy text from Microsoft Word and it contains bullet points, these are converted to quotation marks if you do this:
Therefore I want to use ClipboardAll, to keep things like bullet points. Is there any way to do this? Please say there is!
Thanks,
Daorc  |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 666 Location: MN, USA
|
Posted: Sat Nov 24, 2007 5:04 pm Post subject: |
|
|
| AHK Help File wrote: | | Variables to which ClipboardAll has been assigned are in binary format and thus will appear as gibberish when displayed with MsgBox or similar. Also, altering a binary variable (by means such as StringReplace) will revert it to a normal variable, resulting in the loss of its clipboard data. |
I think that means no. http://www.autohotkey.com/docs/misc/Clipboard.htm#ClipboardAll _________________ http://autohotkey.net/~jaco0646/ |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4078 Location: Pittsburgh
|
Posted: Sat Nov 24, 2007 5:16 pm Post subject: |
|
|
The clipboard contains the same information in several different formats, most of them with binary descriptors. Accordingly, if you want to manipulate it, you have to know the details of this binary data. It is hard.
There are workarounds, like pasting the text into WordPad or Notepad (which can handle Unicode), manipulate the text there, and copy the result back to your application. You could use corrupt’s RichEdit control, so there will be no need to start an external program. |
|
| Back to top |
|
 |
|