Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:10 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 : MMEdit V3.6.9

     Page 2 of 3    
Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:22pm 31 Mar 2017
Copy link to clipboard 
Print this post

  lizby said  I was talking about the console log where ^C didn't work

^C doesn't but you can right click and select copy. It would be difficult to implement the keyboard shortcuts in that window.
If you use the VT100 mode, there is no copy ability but you can switch between modes (most of the time)

  lizby said  Regarding Find, I often have to hit ^F more than once for the Find box to appear. Then would be helpful if the cursor were in the Find text box (where ^v pastes text you are trying to find), and then <Enter> would activate the FIND button, or for subsequent occurrences, FIND AGAIN.

A lot of the keyboard shortcuts are 'sluggish' unfortunately, especially when the chat window is also open. The problems of using an interpreted language.

  lizby said  
If you switch to MMEdit with Alt+TAB, ^F doesn't work until you have clicked in the edit area.

The editor control is a 'scintilla' control which sits inside a normal window. When you first return to the editor, the initial message that that is the active window seems to get lost. I have failed in my attempts to intercept that message so there will always be an issue there. It happens when you switch to that window by clicking in it also, you need a second click, and it annoys me (and others) too.

JimEdited by TassyJim 2017-04-02
VK7JH
MMedit
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 01:23am 27 May 2017
Copy link to clipboard 
Print this post

Hi Jim , I had loaded the latest MMEdit from your web site 3.7 I think but it has given me grief a couple of occasions so i had to go back to previous version. It happens when i save the document,it seems to copy part of the program again plus a load of control char, sorry its not a very clear screen shot.



Edited by MikeO 2017-05-28
Codenquilts
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:12pm 28 May 2017
Copy link to clipboard 
Print this post

Mike,
I can't look at it for a couple of weeks but what version of Windows are you running?
Showing control codes for part of the edit window is strange and not an area I have much control over. I suspect it could be the DLL that does those fancy bits.

I will experiment when I get home.

Jim

VK7JH
MMedit
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 01:14am 29 May 2017
Copy link to clipboard 
Print this post

Hi Jim, I should have said of course. I am using windows 10 on two machines and have seen the problem on both. I wonder how many others may have seen it if they have updated or perhaps its just a windows10 combination issue.

Cheers Mike
Codenquilts
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 01:23am 29 May 2017
Copy link to clipboard 
Print this post

  lizby said   I'm sorry that I didn't clarify that I was talking about the console log where ^C didn't work (and ^x and ^v don't apply--my mistake).


I often get caught out with Ctrl-C to copy from the console window, but understand the issue.

Ctrl-C is the break code for the micro. So if it was allowed to perform he copy function, then sending a Break from the terminal would not be possible.

Phil.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:35pm 29 May 2017
Copy link to clipboard 
Print this post

  MikeO said   Hi Jim, I should have said of course. I am using windows 10 on two machines and have seen the problem on both. I wonder how many others may have seen it if they have updated or perhaps its just a windows10 combination issue.

Cheers Mike


W10 here also.
Is it when you save to disk or when you send to the mite?
The control codes look a bit like XMODEM flags.

Can you PM me a copy of one of the corrupted files.
Also a copy of your configuration report.

I will have better internet in a few days.

Jim
60 degrees North


VK7JH
MMedit
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 08:58pm 29 May 2017
Copy link to clipboard 
Print this post

Hi Jim, OK I will have to set up with the new version again and see if i can create a bad file. Its when I save and save a crunched file, then transfer by using the Teraterm macro, I never use the built in transfer.

Mike
Codenquilts
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 01:31pm 12 Jun 2017
Copy link to clipboard 
Print this post

Jim, I reloaded 3.7 yesterday and gave it quite an extensive test while rewriting some code and all went without a hitch, no problems as previously experienced so sorry for report raised. Perhaps it was just something in that particular file at the time causing the problem ? just don't know.

Thanks Mike
Codenquilts
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:57pm 12 Jun 2017
Copy link to clipboard 
Print this post

Glad it's working for you although it would have been nice if the error could be repeated. Much easier to fix if you can see it!

I did some testing using your BM.BAS file posted elsewhere but couldn't fault it either.

I did find an unrelated bug so the time was not wasted.

Once I get over the jet-lag, I will update MMEdit with the 5.4 syntax and a couple of other changes.

38 hours traveling from hotel to home takes me a while to get over...

Jim

VK7JH
MMedit
 
Alastair
Senior Member

Joined: 03/04/2017
Location: Australia
Posts: 161
Posted: 01:53am 14 Jun 2017
Copy link to clipboard 
Print this post

TJ
Is it possible to have bookmarks not wiped when saving? I have a habit from bygone days of saving regularly and remember just after hitting the icon.

Keep up the good work😀

Alastair
Cheers, Alastair
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:14pm 14 Jun 2017
Copy link to clipboard 
Print this post

  Alastair said   TJ
Is it possible to have bookmarks not wiped when saving? I have a habit from bygone days of saving regularly and remember just after hitting the icon.

Keep up the good work😀

Alastair


I am sure it can be done but will take a bit of work.
Other things I do when saving cause the file in the edit window to get re written. This looses the bookmarks.

I will look into it.

Jim
VK7JH
MMedit
 
DavidSG
Newbie

Joined: 16/07/2017
Location: Australia
Posts: 8
Posted: 05:58am 15 Apr 2018
Copy link to clipboard 
Print this post

Hi Jim

I appreciate MM Edit, and the work that goes into it, maybe more than most. I wrote a complete IDE for my company's embedded controller product, SPLat, many, many years ago.

One problem in MM Edit is causing me a lot of grief: The auto-formatting fails to undent on END SELECT. Hence with nested SELECT CASE structures it just indents further and further to the right.



SetSound(2000):pause(50):SoundOff
Select case KeyCode
case 2 ' + Faster
select case MotorMode
case kStopped
case kRunning
case kRotating
end select
UpdateMotor
case 194 'Back Reverse direction
select case MotorMode
case kStopped
case kRunning
case kRotating
end select
UpdateMotor
case 224 'Rewind Left
select case MotorMode
case kStopped
case kRunning
case kRotating
end select
UpdateMotor
case 168 'Play Stop/Start
select case MotorMode
case kStopped
case kRunning
case kRotating
end select
UpdateMotor
case 144 'Fast Fwd Right
select case MotorMode
case kStopped
case kRunning
case kRotating
end select
UpdateMotor
case 104 ' 0
select case MotorMode
case kStopped
case kRunning
case kRotating
end select
UpdateMotor
end select
end if

loop

'---- Motor update.
'Set individual motor speeds from Speed and SpeedRatio
Sub UpdateMotor()
local M1 as float, M2 as float
M1 = Speed * SpeedRatio
M2 = Speed / SpeedRatio
if M1 > 1 then
elseif M2 > 1 then
endif
end sub
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 10:28am 15 Apr 2018
Copy link to clipboard 
Print this post

David,

I think your problem is related to the repeated End Select statements. According to the manual there should be only one matching End Select for each Select Case.

MMEdit is interpretting your multiple End Selects as the end of that particular Case Select and starting an indent for the next Case.

Haven't had a chance to confirm on MMEdit yet.

Cheers,
panky.

... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
DavidSG
Newbie

Joined: 16/07/2017
Location: Australia
Posts: 8
Posted: 01:27pm 15 Apr 2018
Copy link to clipboard 
Print this post

Panky, thanks for the reply. I am still confused. Here's a simplified example of the problem
do
select case fred
case 1
case 2
end select
loop
Shouldn't the 'loop' be in line with the 'do'? It is if I comment out the Select Case and reformat ...

do
' select case fred
' case 1
' case 2
' end select
loop


And my original code has nested select case/end select structures (legal) and they are properly balanced.
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1003
Posted: 09:48pm 15 Apr 2018
Copy link to clipboard 
Print this post

Hi Jim,
A small one if you are doing any update in future.
The library does not index CSUBs that it contains. I think they add in OK, just not listed. My workaround is a dummy CFUNCTION header.
Its handy to have HUMID etc now they are CSUBs.





Regards
Gerry

Latest F4 Latest H7 FotS
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 11:13pm 15 Apr 2018
Copy link to clipboard 
Print this post

  disco4now said  
The library does not index CSUBs that it contains.
Regards
Gerry

I will have a look at it but it will be a few weeks before I can put out any opdates.

Jim
VK7JH
MMedit
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 12:21am 16 Apr 2018
Copy link to clipboard 
Print this post

@David,

Re the Select, end select, my apologies - didn't read the code properly.

panky
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 11:13pm 16 Apr 2018
Copy link to clipboard 
Print this post

  DavidSG said   One problem in MM Edit is causing me a lot of grief: The auto-formatting fails to undent on END SELECT. Hence with nested SELECT CASE structures it just indents further and further to the right.


I don't know when that issue appeared. I should have noticed it by now.

It will be a few weeks before I can put out a fix.
Thanks for letting me know.

Jim
VK7JH
MMedit
 
DavidSG
Newbie

Joined: 16/07/2017
Location: Australia
Posts: 8
Posted: 01:58pm 18 Apr 2018
Copy link to clipboard 
Print this post

Thanks, Jim
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 03:00am 19 Apr 2018
Copy link to clipboard 
Print this post

I have had a look at some of the bugs reported.
I can fix the missing CSUB from the library.
I can fix the SELECT CASE indenting.
I can change "Save AS" to default to the current name.

These will be easy enough to do when I get home.

I save the configuration setting with the BASS file but so far, I don't do much with them. I will have to wait till I get home to a bigger screen before I know what progress I had made.

Jim



VK7JH
MMedit
 
     Page 2 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025