Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : Paste to MMEdit Chat From a Program

Posted: 01:18am
18 Jul 2018
Copy link to clipboard
Andrew_G
Guru

Firstly, I remain in awe of MMEdit and TassieJim's work - I use it exclusively!

Something weird is happening - I'm not sure if it is me (likely) or MMEdit or what?

If I have the following in an MM170 program it works as expected (I think the detail of the code is not important):

For I = 0 To 287 Step 6
Line 15 + I, MM.VRes -12, 15 + I, MM.VRes -15, , RGB(White)
Next I


If I "Copy" ( <CTL><INS> or <CTL><C> then paste <SHIFT><Ins> or <CTL><V>) the code into MMEdit's Chat Command Line and tidy it up so it is on one line:

For I = 0 To 287 step 6: Line 15 + I, MM.VRes -12, 15 + I, MM.VRes -15, , RGB(White): Next I


I get the following error if I run it from the Chat command line:
For I = 0 To 287 step 6
Error: No matching NEXT
> :Line 15 + I, MM.VRes -12, 15 + I, MM.VRes -15, , RGB(White)
> :Next I
Error: Cannot find a matching FOR
>


BUT if I key into the Chat command Line the identical one-line command it runs fine!

If I change the program so that the For/Next is on one line (it runs of course) AND copy and paste that line to the Chat Command Line - it works.

SO THE QUESTION . . . does the copy and paste from the program to the Chat Command Line add something invisible that upsets the command?

(my workaround is to use a one-line code in the program which copies and pastes to the Console without a problem).

Cheers, Andrew

 
Posted: 02:01am
18 Jul 2018
Copy link to clipboard
Chopperp
Guru


I have to use the PASTE button (4th from the left up the top) to paste stuff into the Chat window. Normal keys don't work by design. I just did a simple loop & it worked.
Maybe I'm missing something
ChopperP
 
Posted: 02:32am
18 Jul 2018
Copy link to clipboard
TassyJim
Guru


Try doing the editing to bring it onto one line before pasting.
The chat command-line is only meant to be a one-liner and I expect that the editing is leaving some of the end-of-line characters in place.

Jim
VK7JH
MMedit
 
Posted: 03:02am
18 Jul 2018
Copy link to clipboard
Andrew_G
Guru

Hi Chopper,
I'm normally able to just copy <Ctrl><Ins> from the program and paste <Shift><Ins> into the command line without any problem. For me, the paste icon (a brush and pot) has the same problem. (I've tried deleting the comment too).
The weird thing is that, as far as I can tell, the code that I paste in is identical to that which I key in - one works the other doesn't.
As I say there is a simple work around.
Cheers,

Andrew
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025