{"id":12103,"date":"2022-01-11T16:07:11","date_gmt":"2022-01-11T16:07:11","guid":{"rendered":"https:\/\/fhug.org.uk\/kb\/?post_type=kb_article&#038;p=12103"},"modified":"2022-01-11T17:35:38","modified_gmt":"2022-01-11T17:35:38","slug":"starting-family-historian-with-a-specified-project-or-record","status":"publish","type":"kb_article","link":"https:\/\/www.fhug.org.uk\/kb\/kb-article\/starting-family-historian-with-a-specified-project-or-record\/","title":{"rendered":"Starting Family Historian With a Specified Project or Record"},"content":{"rendered":"<p>This page describes an undocumented option to start Family Historian with any specified Individual or Family Record in the Focus Window.<\/p>\n<p>All recent versions of <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span> give the user the ability to define a default Project that opens automatically when the program is started (<a href=\"#!\" class=\"cs_tooltip\" fhugtt=\"This is the menu across the top of the main Family Historian windows. The &gt; denotes a submenu\">File&nbsp&gt;&nbspProject&nbspWindow&#8230;&nbsp&gt;&nbspMore&nbspTasks&#8230;<\/a>).\u00a0 Prior to version 7, <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span> always opened a Project at the defined Home Individual, but <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span>7 provides the option to display the last-used Focus Individual instead of the Home Individual (<a href=\"#!\" class=\"cs_tooltip\" fhugtt=\"This is the menu across the top of the main Family Historian windows. The &gt; denotes a submenu\">Tools&nbsp&gt;&nbspPreferences&nbsp&gt;&nbspStartup<\/a>).<\/p>\n<p>These options are very convenient for users who work on one Project most or all of the time, but work less well for those who manage multiple Projects, as these must be opened individually when required.\u00a0 It is possible to configure Windows shortcuts to start <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span> at any defined Project, and\/or with any defined Individual or Family having the focus, using a process that is not documented in the program help files.<\/p>\n<p>There are two different ways of defining the necessary start-up shortcuts and INI files.\u00a0 The simple way is to use the <a href=\"https:\/\/pluginstore.family-historian.co.uk\/page\/plugin\/create-individual-shortcut\">Create Individual Shortcut<\/a> plugin, which creates a shortcut that starts the current Project automatically with the specified Individual in the Focus Window.\u00a0 Alternatively, both the required shortcut and INI file can be created manually.\u00a0 Both approaches are described here.<\/p>\n<h2>Create Individual Shortcut Plugin<\/h2>\n<p>If you simply want to create a shortcut to start <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span> at a particular Individual or Family, the easiest method is to use the <a href=\"https:\/\/pluginstore.family-historian.co.uk\/page\/plugin\/create-individual-shortcut\">Create Individual Shortcut<\/a> plugin. \u00a0This generates a simple selection screen for defining the required options, and <glwrap>places<\/glwrap> a Windows command script (previously known as a batch file) on your desktop with all the options configured automatically.<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/fhug.org.uk\/kb\/wp-content\/uploads\/2022\/01\/Shortcut-Plugin.png\" alt=\"Plugin Window\" width=\"397\" height=\"319\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 397px; --smush-placeholder-aspect-ratio: 397\/319;\" \/><\/p>\n<p>If the file icon (two grey cog wheels) does not appear immediately, right-click on a blank area of your Desktop and select Refresh to update the display.\u00a0 Double-click on this icon to start the defined Project at the record selected.<\/p>\n<h2>Setting Start-up Shortcuts Manually<\/h2>\n<p>The plugin described above generates a command script that dynamically creates a temporary launch file and uses this file to start <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span>.\u00a0 More advanced users who wish to understand more fully what is actually happening and fine tune the process more precisely can choose to create the necessary shortcuts and INI files manually.<\/p>\n<h3>Starting a Specific Project<\/h3>\n<p>In common with many other Windows applications, <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span> can start with a particular file (Project) if that file is specified in the command line or in the shortcut.\u00a0 The easiest way to implement this is to create a Windows shortcut to the defined Project file on the user Desktop.\u00a0 Step by step instructions for this are given below:<\/p>\n<p>1.Open Windows File Explorer and highlight the Project File for the Project of interest.\u00a0 This has the Project name followed by .fh_proj and is located in the Project folder, as shown below for the Sample Project in its default location:<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/fhug.org.uk\/kb\/wp-content\/uploads\/2022\/01\/Project-File-Location.png\" alt=\"Sample Project file location\" width=\"903\" height=\"147\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 903px; --smush-placeholder-aspect-ratio: 903\/147;\" \/><\/p>\n<p>2. Right-click on this file (assuming a right-handed mouse) and select &#8220;Create shortcut&#8221;.<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/fhug.org.uk\/kb\/wp-content\/uploads\/2022\/01\/Project-File-Shortcut.png\" alt=\"\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/p>\n<p>3. Drag this new shortcut to your Desktop, and give it a more concise meaningful name that is displayed in full (highlight the shortcut and press F2 to rename).\u00a0 By default, the shortcut shows a picture of a family tree structure (as shown), but this can be changed to the familiar green and black icon by right-clicking on the icon, select Properties, then Change Icon&#8230;, and navigate to the <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span> program file at C:\\Program Files (x86)\\Family Historian\\Program\\fh.exe.<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/fhug.org.uk\/kb\/wp-content\/uploads\/2022\/01\/Desktop-Shortcut-Default.png\" alt=\"Default shortcut\" width=\"77\" height=\"87\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 77px; --smush-placeholder-aspect-ratio: 77\/87;\" \/>\u00a0 \u00a0 \u00a0<img decoding=\"async\" data-src=\"https:\/\/fhug.org.uk\/kb\/wp-content\/uploads\/2022\/01\/Desktop-Shortcut.png\" alt=\"Desktop shortcut to Sample Project\" width=\"71\" height=\"93\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 71px; --smush-placeholder-aspect-ratio: 71\/93;\" \/><\/p>\n<p>Repeat the above process for all projects of interest to give a series of shortcuts that start individual projects.<\/p>\n<p>In principle, the same approach can be used for the GEDCOM file, but some advanced users may choose to have GEDCOM files associated with a text editor for easy direct viewing, whereas the fh_proj file extension will always be associated with <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span>.<\/p>\n<h3>Starting a Specific Project at a Defined Individual or Family Record<\/h3>\n<p>It is possible to start a Project with a defined Individual other than the Home or last used person having the focus.\u00a0 This is slightly more complex than creating a shortcut to a Project file, and requires the definition of an &#8220;INI&#8221; file that is used as a command line parameter when starting <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span>.<\/p>\n<p>A startup INI file has the following format:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[Startup]\r\nWindow=FocusWin [or RecordWin or DiagramWin]\r\nDiagramType=&lt;diagram-type&gt;\r\nRecord=&lt;record-id&gt;<\/pre>\n<p>&#8216;Window&#8217; is the startup window, either the Focus Window (only for Individuals, not Families), Record Window or Diagram Window.<\/p>\n<p>&#8216;DiagramType&#8217; is ignored unless Window=DiagramWin, in which case it is required. Specifies the name of a standard or custom diagram type, prefixed with \u201cC-\u201d if it is a custom diagram and \u201cS-\u201d if it is a standard diagram.<\/p>\n<p>&#8216;Record&#8217; is the Record Id of an Individual or Family record to show at startup, and must be prefixed with an &#8216;I&#8217; for Individual Records or an &#8216;F&#8217; for Family Records.<\/p>\n<p>A typical INI file to start with Individual I26 in the Focus Window is shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[Startup]\r\nWindow=FocusWin\r\nRecord=I26\r\n<\/pre>\n<p>You can have as many INI files as you wish, specifying different start-up records.\u00a0 A convenient place to store the INI file could be either in the Family Historian Projects folder, or in the data folders for the Projects they relate to.<\/p>\n<p>Once the INI file has been defined, all that is required is to set up a Windows shortcut to start FH with the appropriate parameters using a command line of the form fh [\/INI:&lt;inifile-name&gt;] [&lt;file-name&gt;]\n<p>Right-click on the Desktop, and select New &gt; Shortcut.\u00a0 In &#8220;Type the location of the item&#8221;, enter the command line to start <span class=\"fh\" style=\"font-size: 17px !important; line-height: 21.4286px !important;\">\u0192<span style=\"color:#73B262; font-weight: bold;\">h<\/span><\/span> with the defined options.\u00a0 The following example starts the Sample Project with Individual 26 (Christopher Ian Munro) in the Focus Window:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\"C:\\Program Files (x86)\\Family Historian\\Program\\fh.exe\" \"\/ini:%Documents%\\Family Historian Projects\\Sample Project.ini\" \"%Documents%\\Family Historian Projects\\Family Historian Sample Project\\Family Historian Sample Project.fh_proj\"<\/pre>\n<p>In this example, %Documents% is a shortcut for the user&#8217;s default Documents folder at C:\\Users\\UserName\\Documents, and reduces the somewhat excessive length of the command.\u00a0 This is just an example, so should be tailored to your own requirements.<\/p>\n<p>You can have an unlimited number of shortcuts and INI files, each specifying a different Project and Record.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"template":"","fh_version":[14,15,739],"skill_level":[18,17],"topic":[104,66,67,92],"class_list":["post-12103","kb_article","type-kb_article","status-publish","hentry","fh_version-v5","fh_version-v6","fh_version-v7","skill_level-advanced","skill_level-intermediate","topic-customisation","topic-fh-folders-and-files","topic-getting-around-fh","topic-projects"],"_links":{"self":[{"href":"https:\/\/www.fhug.org.uk\/kb\/wp-json\/wp\/v2\/kb_article\/12103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fhug.org.uk\/kb\/wp-json\/wp\/v2\/kb_article"}],"about":[{"href":"https:\/\/www.fhug.org.uk\/kb\/wp-json\/wp\/v2\/types\/kb_article"}],"wp:attachment":[{"href":"https:\/\/www.fhug.org.uk\/kb\/wp-json\/wp\/v2\/media?parent=12103"}],"wp:term":[{"taxonomy":"fh_version","embeddable":true,"href":"https:\/\/www.fhug.org.uk\/kb\/wp-json\/wp\/v2\/fh_version?post=12103"},{"taxonomy":"skill_level","embeddable":true,"href":"https:\/\/www.fhug.org.uk\/kb\/wp-json\/wp\/v2\/skill_level?post=12103"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.fhug.org.uk\/kb\/wp-json\/wp\/v2\/topic?post=12103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}