News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

QEditor plugin: most recently used files

Started by jj2007, December 29, 2022, 11:08:55 AM

Previous topic - Next topic

jj2007

Inspired by zedd151, I wrote a little plugin that adds a Most Recently Used list to qEditor's File menu.
Simply run the executable in the attached MruInsertV6.zip archive and follow the instructions.

Tested on Win7-64 and Win10. Please give me feedback on problems and missing features :thumbsup:

The files are stored in \Masm32\Plugins\QeMru.ini (nothing is written to the registry). Note that in order to enable the MRU feature, you must click once on Tools/Recent files every time you start qEditor.

Version 6 of 30 December 22 features a cfg file where you can decide if you want:
- once per launch an adjustment of the QE window to the characteristics of assembler code :cool:
- use the *.asm filter for the Open menu (strongly recommended for assembly coders)
- see a little menu for editing settings and MRU list, and for launching the WM_* messages watcher

Note the attached sources can be opened in MS Word, Wordpad and RichMasm.

The third archive, QeMruWatch, contains a tool that activates the plugin whenever you launch a new instance of QEditor. Memory footprint is around 1MB, cpu usage is 0% (after one hour, I still see cpu time 00:00:00).

The fineprint: Use at your own risk.

zedd151

Quote from: jj2007 on December 29, 2022, 11:08:55 AM
Inspired by zedd151, I wrote a little plugin that adds a Most Recently Used list to qEditor's File menu.
:tongue:   Glad to see that you were inspired.  :tongue: 

zedd151

#2
Whoops!  :sad:
Any requirements that you forgot to mention? Does the executable have to be in Masm32 directory? Does qEditor have to be open? I have tried a couple things but no avail...  :sad:



My masm32 is in C:\masm32\
Using Masm32 SDK version 11 with the version of qEditor included there. Any suggestions to help find why I have gotten the setup error message?


attached image removed as it has served its purpose

jj2007

Quote from: zedd151 on December 29, 2022, 12:22:29 PMDoes the executable have to be in Masm32 directory?

The only requirement should be that the MruInsert.exe must be launched in the drive that hosts \Masm32

Assuming that you launched it from C:, and that C:\Masm32 exists - which of these files do exist?

C:\Masm32\QeMru.ini
C:\Masm32\menus.ini
C:\Masm32\plugins\MostRecentUsed.dll

zedd151

#4
Quote from: jj2007 on December 29, 2022, 12:29:47 PM
The only requirement should be that the MruInsert.exe must be launched in the drive that hosts \Masm32
Okay and yes did that, but message box appears.
Even on a drive where there is a pristine Masm32 SDK installation (no additions to menus.ini). Still the same message box appears.


strikeout = that installation had a modified menus.ini, whoops.

zedd151

Quote from: jj2007 on December 29, 2022, 12:29:47 PM
C:\Masm32\menus.ini
Only menus.ini; that is of course, part of the Masm32 SDK


my install is "masm32" yours specifies "Masm32" let me change it...

jj2007

Weird. Can you try the attached debug version please?

zedd151

Quote from: zedd151 on December 29, 2022, 12:37:36 PM
my install is "masm32" yours specifies "Masm32" let me change it...


Ok, I changed the "masm32" folder name to "Masm32". Same issue...

zedd151

#8
Well, that didnt go over too well.

I ran it a few more times, always crashes after two passes...
attached image removed as it has served its purpose

jj2007



jj2007

void Instr_(esi, "[&Tools]", 1)
deb 4, "Pass2", edx
.if !edx
add eax, 5
.Repeat
inc eax
mov dl, [eax]    ; <<<<<<<<<<<<<< crash happens here
.Until dl=="&" || !dl
deb 4, "Pass3", dl


Can you post your \Masm32\menus.ini, please?

zedd151

#12
[Build]
Compile &Resource File,\MASM32\BIN\Bres.bat "{b}"
&Assemble ASM file,\MASM32\BIN\Assmbl.bat "{b}"
-
&Link OBJ File,\MASM32\BIN\Lnk.bat "{b}"
As&semble && Link,\MASM32\BIN\Build.bat "{b}"
&Build All,\MASM32\BIN\Bldall.bat "{b}"
-
&Makeit.bat,makeit.bat "{b}"
-
Console Link &OBJ File,\MASM32\BIN\Lnkc.bat "{b}"
&Console Assemble && Link,\MASM32\BIN\Buildc.bat "{b}"
Console Build &All,\MASM32\BIN\Bldallc.bat "{b}"
[Text]
[Plugin]
ASM Comment,{e}\plugins\ablockc.dll
-
&Indent .IF Block,{e}\plugins\Indentb.dll
Swap 32 bit registers,{e}\plugins\regswap.dll
Righ Trim Block,{e}\plugins\rtrim.dll
Block Insert,{e}\plugins\blockp.dll
[Conversions]
[Scr&ipt]
[help]


attached image removed as it has served its purpose

jj2007

So you have no [&Tools entry]... hmmmm... which means I must add another test :rolleyes:

zedd151

Quote from: jj2007 on December 29, 2022, 12:54:55 PM
So you have no [&Tools entry]... hmmmm... which means I must add another test :rolleyes:
I didn't need it. (sorry hutch)
I had the same sort of issue for my PluginBuilder project. Seems many folks modify their menus.ini file. Making qeditor crash, so for all intents and purposes PluginBuilder is not for public use anymore. I still use it myself though. PluginBuilder searched for [help] but some users did not need that in their masm32 install either.  :tongue: