Auto-open multiple projects?

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
Metamonomous
Posts: 12
Joined: Thu Sep 23, 2021 12:46 pm

Auto-open multiple projects?

Unread post by Metamonomous »

My projects are scattered around the directory tree and it takes a long time to open them. Is there a way to open multiple projects at once automatically, perhaps with a script?
User avatar
Tim Green
Site Admin
Posts: 23184
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Auto-open multiple projects?

Unread post by Tim Green »

This is already available as a feature in Help+Manual. You just need to define the projects you want to open as a workspace:

https://helpandmanual.com/help/hm_qs_workspaces.html

In addition to this you can also configure Help+Manual to automatically open all the projects you were working on in the last session the next time you start it. This setting is in View > Program Options > General: Open last project(s) on start. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Metamonomous
Posts: 12
Joined: Thu Sep 23, 2021 12:46 pm

Re: Auto-open multiple projects?

Unread post by Metamonomous »

Ah, just didn't know to search the help for "workspace." This is great, thank you!
John Johann
Posts: 305
Joined: Mon Aug 21, 2017 7:35 pm

Re: Auto-open multiple projects?

Unread post by John Johann »

Is it possible to have the workspace function open the projects in multiple H&M instances?
I often have multiple language variants with large TOC open for updating changes and being able to edit side-by-side is great.
User avatar
Tim Green
Site Admin
Posts: 23184
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Auto-open multiple projects?

Unread post by Tim Green »

John Johann wrote: Mon Jan 03, 2022 7:48 am Is it possible to have the workspace function open the projects in multiple H&M instances?
I often have multiple language variants with large TOC open for updating changes and being able to edit side-by-side is great.
No, this isn't supported directly. Just create two workspaces and open one in each instance of Help+Manual. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
John Johann
Posts: 305
Joined: Mon Aug 21, 2017 7:35 pm

Re: Auto-open multiple projects?

Unread post by John Johann »

Thanks Tim. Happy New Year.
Could you put it on the wish list please?
My current workaround is to open 6 separate instances of H&M and then click on a pinned project name (which was also why I'd like them to not rotate according to the last used :-)).
I can also open them all with a batch file, but a workspace with the window size (and monitor) would be cool.
User avatar
Tim Green
Site Admin
Posts: 23184
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Auto-open multiple projects?

Unread post by Tim Green »

John Johann wrote: Mon Jan 03, 2022 4:38 pm Thanks Tim. Happy New Year.
Could you put it on the wish list please?
Happy New Year to you too! I've added it to the request list, although I can't promise if and when, of course... 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Alexander Halser
EC-Software Support
Posts: 4105
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: Auto-open multiple projects?

Unread post by Alexander Halser »

Hello John,

I suggest to create a simple batch file that starts multiple instances of H&M, one for every project.
Alexander Halser
Senior Software Architect, EC Software GmbH
John Johann
Posts: 305
Joined: Mon Aug 21, 2017 7:35 pm

Re: Auto-open multiple projects?

Unread post by John Johann »

Hi Alexander,
Thanks -- that's exactly what I've now done.
Are there switches to set the window size, position and display to show on?
User avatar
Alexander Halser
EC-Software Support
Posts: 4105
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: Auto-open multiple projects?

Unread post by Alexander Halser »

Are there switches to set the window size, position and display to show on?
No, there is not.

You need a dedicated application launcher to accomplish this.
Such as
https://ritchielawrence.github.io/cmdow/
Alexander Halser
Senior Software Architect, EC Software GmbH
John Johann
Posts: 305
Joined: Mon Aug 21, 2017 7:35 pm

Re: Auto-open multiple projects?

Unread post by John Johann »

Hi,
I was revisiting my batch file to start multiple instances.
Currently it opens, e.g., 4 HnM projects directly --

Code: Select all

start "C:\Program Files (x86)\EC Software\HelpAndManual8\HELPMAN.EXE" "Path\Filename.hmxp"
That means that if the projects are large (3000+ topics), and the TOC has to be expanded according to the topic, there is sometimes a hiccup and not all projects are opened. It also means that I don't always get the same topic.

I noticed in the workspaces that I can set the topic to open (bookmark) and additional topic tabs.
I created a workspace for each of the 4 projects and set the bookmark to a top level topic so that the TOC would not be expanded.
I then adjusted the batch file to

Code: Select all

start "C:\Program Files (x86)\EC Software\HelpAndManual8\HELPMAN.EXE" "Path\Filename.hmws"
However, that only opens 4 instances of HnM -- not the projects.

If I start HnM and select Workspaces > Path\Filename.hmws, the project is launched but the Project Explorer lists my project at the top and a second project with the name of the workspace beneath.
Double-clicking on the *.hmws in the Explorer also only starts HnM, but doesn't open the project.
Post Reply