* Parking some material for the KB here until I get around to it

Post here to suggest corrections, additions, changes etc to the FHUG KnowledgeBase . Include as much information as possible to help editors act on your post.

Moderator: kb admin

Post Reply
User avatar
ColeValleyGirl
Megastar
Posts: 3412
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Parking some material for the KB here until I get around to it

Post by ColeValleyGirl » 06 Jan 2022 12:22

Courtesy of Jane:

FH Command Line Parameters
Usage

fh [/INI:<inifile-name>] [<file-name>]

<file-name> can be a GEDCOM file to open


Some Inifile settings (i.e. Window, Record and SuppressWarningsOnLoad) have no effect unless a command line GEDCOM file is specified to open - see 'Format of Startup Inifiles' below.
Format of Startup Inifiles

A startup INI file has the following format:

Code: Select all

[Startup]
Window=FocusWin [or RecordWin or DiagramWin]
DiagramType=<diagram-type>
Record=<record-id>
<record-id> must be the record id of an Individual or Family record to show at startup, and must be prefixed with an 'I' for Individual records or an 'F' for family records. The 'Window' is the startup window.

<diagram-type> is ignored unless Window=DiagramWin, in which case it is required. Specifies the name of a standard or custom diagram type, prefixed with “C-” if it is a custom diagram and “S-” if it is a standard diagram. For example: “DiagramType=C-Ancestors - 4 Gens” (without the quotes).

avatar
jelv
Diamond
Posts: 83
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: Parking some material for the KB here until I get around to it

Post by jelv » 06 Jan 2022 17:07

<filename> can be either a GEDCOM or a FH project file.
John Elvin

avatar
Mark1834
Megastar
Posts: 1147
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Parking some material for the KB here until I get around to it

Post by Mark1834 » 11 Jan 2022 16:13

Published here.

Is there anything else to say on ini files? They seem to be undocumented, so presumably Jane’s description comes from inside knowledge at CP?
Mark Draper

avatar
jelv
Diamond
Posts: 83
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: Parking some material for the KB here until I get around to it

Post by jelv » 11 Jan 2022 17:12

There's some duff information in there - see https://www.fhug.org.uk/forum/viewtopic ... 08#p120308 for what I discovered. I've also created a script that makes it easy to create different shortcuts using parameters.

The family option only works with the recordwin option (makes sense as the focus window would have to know whether to focus on the husband or wife).
John Elvin

avatar
Mark1834
Megastar
Posts: 1147
Joined: 27 Oct 2017 19:33
Family Historian: V7
Location: South Cheshire, UK

Re: Parking some material for the KB here until I get around to it

Post by Mark1834 » 11 Jan 2022 17:53

Thanks John. I've amended the KB to say that the Focus Window is only relevant for Individuals.

I must admit that I prefer your form of the command script with the additional variables to avoid the over-long commands. I'd welcome Jane's view on whether it would be worthwhile to incorporate that into the store plugin, rather than offer multiple solutions that do essentially the same thing.
Mark Draper

avatar
jelv
Diamond
Posts: 83
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: Parking some material for the KB here until I get around to it

Post by jelv » 11 Jan 2022 19:07

One thing I suppose I could do is add another variable for record or focus window, forcing record if the Id begins with F. I'd probably make the default focus for individual (and record for family) if the parameter was omitted- or just do that anyway without the extra parameter.
John Elvin

Post Reply