AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

operating (e.g. stringreplace) on ClipboardAll?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
daorc



Joined: 18 Oct 2006
Posts: 78

PostPosted: Sat Nov 24, 2007 10:24 am    Post subject: operating (e.g. stringreplace) on ClipboardAll? Reply with quote

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:

Code:
var:=clipboard


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 Smile
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 666
Location: MN, USA

PostPosted: Sat Nov 24, 2007 5:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 4078
Location: Pittsburgh

PostPosted: Sat Nov 24, 2007 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group