pasting from browser text

stephen barncard stephenREVOLUTION2 at barncard.com
Mon Sep 23 19:25:53 EDT 2013


Tested with LC 6.1.1 and 5.5.5  - same thing

by the way, pasting back from the pasted text of Tex-Edit or TextMate  back
to LC looks fine as well.

Should this be reported as a bug? I'm surprised this hasn't happened to
anyone else...


On Mon, Sep 23, 2013 at 4:21 PM, stephen barncard <
stephenREVOLUTION2 at barncard.com> wrote:

> Directly pasting into an LC field produces the exact same result. Wrong.
>
>
> On Mon, Sep 23, 2013 at 4:18 PM, stephen barncard <
> stephenREVOLUTION2 at barncard.com> wrote:
>
>> Thanks Scott,
>> I know how to screen scrape from the html source...
>>
>> I want to use the contents of the clipboard to just get the part I need.
>> And this return business is getting in the way.... I get a block of text
>> with question marks instead of returns.   I'm not sure how actual question
>> marks show up yet.
>>
>> There are no LFs or any other control characters in the copied text other
>> than the question marks.  I've tried using clipboardData[rtf]
>> and clipboardData unicode] and setting the field to the appropriate mode.
>>  No difference.
>>
>> I have a utility I created to examine the various keys in the
>> clipboardData, and it gives me a hex dump of the contents of any of the
>> keys....
>>
>> By the way, the text copied from the browser pastes perfectly into
>> Tex-Edit, an application that I've used for over 20 years and has a nice
>> way to display the ascii value of any character in its text.
>>
>> Could this be a problem with the way that Livecode copies text into
>> clipboardData?
>>
>> this should just work.
>>
>>
>> On Mon, Sep 23, 2013 at 3:40 PM, Scott Rossi <scott at tactilemedia.com>wrote:
>>
>>> Do you have to use the copied text or can you use the source HTML text?
>>>
>>> set text of fld 1 to url "http://jazzcubed.com/"
>>>
>>
>>
>>
>>
>> --
>>
>>
>>
>> Stephen Barncard
>> San Francisco Ca. USA
>>
>> more about sqb  <http://www.google.com/profiles/sbarncar>
>>
>
>
>
> --
>
>
>
> Stephen Barncard
> San Francisco Ca. USA
>
> more about sqb  <http://www.google.com/profiles/sbarncar>
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>



More information about the use-livecode mailing list