Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:15 01 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 : Top tip for those in a big rush (or just lazy)

Author Message
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 12:12pm 26 Oct 2019
Copy link to clipboard 
Print this post

I know there are a few people on here that edit their code for MMs using Notepad++ and then transfer using AUTOSAVE.

I thought I'd share my top tip for getting results as fast as possible when uploading to the controller.

Notepad++ will allow you to embed binary in the text file. I use this to place the CTRL-Z character (soft EOF) at the end of the listing (right at the end of your program i.e. last lines for the file) and in the case below followed by a RUN command. This doesn't end up as part of the listing in the MM so no weird errors.

the upshot of this is that as soon as I paste the code into the console window it runs... modify (or not) as you see fit.

to use, In Notepad++ do CTRL-A, CTRL-C click on your console window and press F10 then paste the code directly in (I use Putty so it's a right click in the window)

This avoids a few seconds delay and two keypresses... man! I am busy


Edited 2019-10-26 22:16 by CaptainBoing
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 06:11pm 26 Oct 2019
Copy link to clipboard 
Print this post

Hi captain

thank for info

if you have any other tips like that I'm interested
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:16pm 26 Oct 2019
Copy link to clipboard 
Print this post

A good hint.

But remember that for the CMM and RPi, you end a SAVE/AUTOSAVE with ctrl-C not Z.
ctrl-Z on the RPi will throw you out of MMBasic which tends to annoy.

Jim
VK7JH
MMedit
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 207
Posted: 10:03pm 26 Oct 2019
Copy link to clipboard 
Print this post

I must be lazier!
In Notepad++ you can do ALL that (including back to default by removing the 'ascii insert panel', add 'RUN', add <CTL>A, <CTL>C then removing selected text, AND re-saving file un-altered) with a recorded macro. I saved the macro as a shortcut <ALT> <SPACEBAR> and called it MMite.

I position the cursor at the BOTTOM of the file I want to transfer then run the macro.
Go to Putty, hit F10 then Right mouse click - DONE!
If you want, you can have a different macro for picromite with <CTL>C ilo <CTL>Z!

Saving macros, and deleting if necessary, is easy and has many uses.
I also have multiple short-cuts for RapidQ & FreeBasic - notepad++ is amazing.
Rgds
led
Miss you George
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2170
Posted: 08:31am 29 Oct 2019
Copy link to clipboard 
Print this post

even topper tip!  

I never really got used to the macros in N++. I used them all the time in Crimson and they would record *everything* but I seem to remember finding odd things that never worked quite right... maybe I am wrong... anyway it is enough for this.
 
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