Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:55 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

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

Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 871
Posted: 01:18am 18 Jul 2018
Copy link to clipboard 
Print this post

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

 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1097
Posted: 02:01am 18 Jul 2018
Copy link to clipboard 
Print this post

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
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 02:32am 18 Jul 2018
Copy link to clipboard 
Print this post

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
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 871
Posted: 03:02am 18 Jul 2018
Copy link to clipboard 
Print this post

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
 
Print this page


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