Reopening automatically a "dock" plugin at start

• Feb 25, 2022 - 09:56

Hi,

There is this Duration Editor plugin that I made. I'd like not having to reopen it, resize it, re-place it every time I open Musescore.
Is this possible ?

Cheers,


Comments

You can store a plugin's preferences along with (and inside) the MuseScore preferences (MuseScore3.ini actually).
Check how the Batch Export plugin does it (and a few others), that doesn't set (nor store) its size or position though.
Do run a plugin at MuseScore's start, you may be able to use the commandline and the -p option

In reply to by Jojo-Schmitz

Hi, I had little successes with your suggestions. Thanks anyway.

For the "-p" option, I couldn't make it work. As soon as I add a "-p" option MuseScore doesn't start anymore or crashes.
I tried different syntaxes (I tried with a "dialog" plugin and a "dock" plugin)
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p alternatefingering --> no start
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p alternatefingering.qml --> MS crash
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p "alternatefingering" --> no start
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p "alternatefingering.qml" --> MS crash

Regarding the settings, I managed to store test info within the MuseScore.ini file, but I cannot find a way to retrieve what's the size and position of the plugin's window (may it be a "dialog" plugin or a "dock" plugin).
The size is always the one at start (as defined in the "MuseScore" element) whatever is the actual size.
And the position cannot be accessed.

Do you still have an unanswered question? Please log in first to post your question.