At 1:51 am +0100 17/03/01, Detlef Lindenthal wrote:

>Your and Nobumis programm gave me the thought of trying a
>little step ahead:

Thank you for your kind comments. However a word of warning: the 
'regex' looking for /TEXT/ and /styl/ are not really secure. Both 
strings can (and do) occur in places other than at the beginning of 
the relevant sub-string.

For example almost the first trial involved a passage in which the 
_selected_ text included by chance the words '...styled text...', so 
of course that matched /styl/ and caused a nasty incident.

So we really need to find a better way of isolating 'TEXT', 'styl' 
(and others like 'PICT' for example) from the string returned by 
LMGetScrapHandle. It must be set out somewhere in IM: the question is 
where.

If anyone can give a reference to the bit of IM which deals with the 
structure of the clipboard it would be most helpful.

Alan Fry

Reply via email to