I always run code from the SE through a plain text editor before pasting on
this list.
Bob S
> On Jun 24, 2018, at 07:04 , Richmond Mathewson via use-livecode
> wrote:
>
>>
>> Richmond. why does your code paste that way?
>>
>>
>
> I don't know: looks terrible!
>
> Over "here" on Th
Or it's being trapped/interceped somewhere earlier. Have you tried fresh launch
(no libraries running) and a new stack?
Bob S
> On Jun 23, 2018, at 13:07 , Paul Dupuis via use-livecode
> wrote:
>
> If I just have a pasteKey handler with a beep (or anything else) as the
> sole instruction, t
I see...good to know. thanks J
On Sun, Jun 24, 2018 at 10:39 AM, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Using an intermediate text editor also works, and would take care of any
> UTF8 conversion too if that's causing issues. But since you're in LC
> already
Using an intermediate text editor also works, and would take care of any
UTF8 conversion too if that's causing issues. But since you're in LC
already it might be more convenient to have a handler in a backscript or a
plugin that would do it.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
Well that is a pain in the bum!
I suppose I should go through an intermediate stage using a
plain-vanilla text editor.
Richmond.
On 24/6/2018 8:19 am, J. Landman Gay via use-livecode wrote:
It happens when a colorized handler is copied directly from the script
editor and pasted into a list r
Richmond. why does your code paste that way?
I don't know: looks terrible!
Over "here" on ThunderBird e-mail client on MacOS 10.7.5 that code
was pasted DIRECTLY from the LiveCode scriptEditor . . .
Richmond.
___
use-livecode mailing list
u
It happens when a colorized handler is copied directly from the script
editor and pasted into a list response. The list only understands plain
text, and styled text confuses it. I'm not sure if it happens on all
platforms but we've seen it before in other posts.
Brian's plaintext handler would
sorry Paul...my bad.
Richmond. why does your code paste that way?
On Sat, Jun 23, 2018 at 7:59 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:
> The code below with no spaces between the works is Richmonds
>
> On 6/23/2018 5:58 PM, Tom Glod via use-livecode wrote:
>
The code below with no spaces between the works is Richmonds
On 6/23/2018 5:58 PM, Tom Glod via use-livecode wrote:
> Paul...may I ask you why your code pasting is the way it is ?...is there
> some kind of practical reason for it being that way?...sure is harder to
> read that way.
>
> On Sat, Jun
>From the dictionary...
> The LiveCode development environment traps the pasteKey message, unless
> "Suspend LiveCode UI" is turned on in the Development menu. This means that
> the pasteKey message is not received by a stack if it's running in the
> development environment.
Could this be why
Paul...may I ask you why your code pasting is the way it is ?...is there
some kind of practical reason for it being that way?...sure is harder to
read that way.
On Sat, Jun 23, 2018 at 5:55 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Okay, I missed that in the entry
Okay, I missed that in the entry. That explains why the pasteKey message
wasn't working.
I am all set now. Thank you.
On 6/23/2018 5:15 PM, Tore Nilsen via use-livecode wrote:
> >From the dictionary:
>
> The LiveCode development environment traps the pasteKey message <>, unless
> "Suspend LiveC
Nice catch Tore.
My original code was addressing a different couple of problems. The first was
that when you attempted to populate the clipboard with plain text that LC would
also put an HTML version on that would cause issues with paste in other apps.
The second is designed to adjust the HTML
>From the dictionary:
The LiveCode development environment traps the pasteKey message <>, unless
"Suspend LiveCode UI" is turned on in the Development menu. This means that the
pasteKeymessage <> is not received by a stack <> if it's running in the
development environment <>.
So if you are try
Strike that last remark.
BUT: that script expects one to press the CONTROL key on the Mac
rather than the COMMAND key one usually uses to PASTE,
so how that can be achieved on a Windows or a Linux machine I just don't
know.
Richmond.
On 23/6/2018 11:39 pm, Richmond Mathewson wrote:
Oh: and j
Oh: and just to make things even odder than usual, it only works when
the fild "ff1" does NOT have focus (i.e. the cursor is NOT in the field).
Richmond.
On 23/6/2018 11:38 pm, Richmond Mathewson wrote:
However, I, at least, am experiencing great joy just at present as this:
oncontrolKeyDown K
However, I, at least, am experiencing great joy just at present as this:
oncontrolKeyDown KEE
ifKEE is "V" then
puttheclipboardDataintofld "ff1"
else
passcontrolKeyDown
endif
endcontrolKeyDown
popped UNSTYLED text into fld "ff1"
on MacOS 10.7.5 LiveCode 8.1.10
Your mileage m
Indeed: over "here" on MacOS 10.7.5 Livecode 8.1.10 the pasteKey command
seems to be non-functional.
Richmond.
On 23/6/2018 11:07 pm, Paul Dupuis via use-livecode wrote:
Thank you for this.
However, it appears my problem is not with converting the clipboard from
styled text to plain text, but
Hey, Wow, it's the Richmond school of shovels and primitive stuff at its
worst.
If I have a field that conatins some styled text (let's call it "ff1"),
and I want to shift it
with its styling removed into another field (let's call it "ff2") then
this does the trick in a button:
onmouseUp
get
Thank you for this.
However, it appears my problem is not with converting the clipboard from
styled text to plain text, but with the "pasteKey" message.
In LC9.0.0 under Windows 8.1, I create a new text stack and add and
empty field and place the following handler in EITHER the card or stack
scri
https://github.com/bwmilby/lc-misc/blob/master/ClipboardHelper/clipboardhelper.livecodescript
Check out this handler. I can answer questions about it this evening if needed.
On Jun 23, 2018, 9:18 AM -0500, Paul Dupuis via use-livecode
, wrote:
> Using LC9, I want to add a "paste without formattin
Using LC9, I want to add a "paste without formatting" (as seen in may
browser edit menus) command and I can't see to figure out how to do it.
My most recent attempt of many still pastes formatted text (with
underlining, bolding, italics, fonts, colors, etc. in place)
*on*pasteKey *-- remove forma
22 matches
Mail list logo