C:\\Users\\<username>\\AppData\\Roaming\\Microsoft\\HTML Help\\hh.dat
\n\n
It's a binary file, so there's no out-of-the-box way to transfer favorites from one CHM file to another, but there's a workaround.
\n
You can see your favorites if you copy the TestComplete 11 help file to your previous TestComplete path, for example, to:
<your old TC 10 folder>\\Help\\TestComplete10.chm
and open this copy. You can then add the same favorites in the new help file. This can be automated using a TestComplete script like the one below. Before running this script, uncheck the Stop on Error option in Tools > Current Project Properties > Playback.
\n
// JScript\n
function CopyFavorites()\n{
// The CHM file with favorites\n var fileName1 = \"C:\\\\Program Files (x86)\\\\SmartBear\\\\TestComplete 10\\\\Help\\\\TestComplete10.chm\";\n // The CHM file to copy favorites to
var fileName2 = \"C:\\\\Program Files (x86)\\\\SmartBear\\\\TestComplete 11\\\\Help\\\\TestComplete11.chm\";\n\n // Open the CHM file with favorites\n var navPane1 = OpenCHMAndGetNavPane(fileName1);\n var tabs1 = navPane1.Window(\"SysTabControl32\");\n tabs1.ClickTab(\"Favor&ites\");\n var favList1 = tabs1.Window(\"#32770\").Window(\"SysListView32\");\n\n // Open the new CHM file\n var navPane2 = OpenCHMAndGetNavPane(fileName2);\n var tabs2 = navPane2.Window(\"SysTabControl32\");\n tabs2.ClickTab(\"Favor&ites\");\n var favList2 = tabs2.Window(\"#32770\").Window(\"SysListView32\");\n tabs2.ClickTab(\"&Search\");\n var searchBar2 = navPane2.Window(\"Edit\");\n var btnSearch2 = navPane2.Window(\"Button\", \"&List Topics\");\n var searchResults2 = navPane2.Window(\"SysListView32\", \"HH FTSearch\");\n var btnAddFav2 = navPane2.Window(\"SysTabControl32\").Window(\"#32770\").Window(\"Button\", \"&Add\");\n\n // Copy favorites from one CHM to another\n for (var i = 0; i < favList1.wItemCount; i++)\n {\n var title = favList1.wItem(i);\n\n // Search for this topic in the new help file\n tabs2.ClickTab(\"&Search\");\n searchBar2.wText = title;\n btnSearch2.ClickButton();\n\n // If the topic with the same title was found, add it to the target file \n if (searchResults2.wItem(title) != null)\n {\n searchResults2.DblClickItem(title);\n tabs2.ClickTab(\"Favor&ites\");\n btnAddFav2.ClickButton();\n }\n else\n {\n Log.Warning(aqString.Format(\"Topic with title \\\"%s\\\" was not found.\", title));\n }\n }\n}
function OpenCHMAndGetNavPane(strFileName)
{
var oShell = Sys.OleObject(\"WScript.Shell\");
oShell.Run(aqString.Quote(strFileName));
Delay(1000);
var p = Sys.FindChild(\"CommandLine\", \"*\" + strFileName + \"*\");
var navPane = p.Window(\"HH Parent\").Window(\"HH Child\", \"\", 2);
return navPane;
}
\n
Hope this helps!
\n\n
Alternatively, you may want to use the TestComplete online help, and use the browser bookmarks to keep track of the articles of interest.
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"213","postTime":"2015-08-27T02:45:31.708-07:00","lastPublishTime":"2015-08-27T02:45:31.708-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":3544},"placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"customFields":[]},"ModerationData:moderation_data:104887":{"__typename":"ModerationData","id":"moderation_data:104887","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AcceptedSolutionMessage:message:104887":{"__typename":"AcceptedSolutionMessage","author":{"__ref":"User:user:12406"},"id":"message:104887","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:104415/message:104887","revisionNum":1,"uid":104887,"depth":4,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:104886"},"conversation":{"__ref":"Conversation:conversation:104415"},"subject":"Re: Lost help file favorites","moderationData":{"__ref":"ModerationData:moderation_data:104887"},"body":"Why not create a temporary JScript project for this script, and delete it afterwards?
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"92","postTime":"2015-09-02T05:46:26.006-07:00","lastPublishTime":"2015-09-02T05:46:26.006-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":3528},"placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"customFields":[],"readOnly":false,"repliesCount":4,"body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"92","kudosSumWeight":1,"visibilityScope":"PUBLIC","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuNHwyLjF8b3wzfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:104892"}},{"__typename":"MessageEdge","cursor":"MjUuNHwyLjF8b3wzfDE0OjAsMzk6MXwy","node":{"__ref":"ForumReplyMessage:message:105055"}}]}},"ModerationData:moderation_data:104886":{"__typename":"ModerationData","id":"moderation_data:104886","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ModerationData:moderation_data:104593":{"__typename":"ModerationData","id":"moderation_data:104593","status":"APPROVED","rejectReason":null},"ForumReplyMessage:message:104593":{"__typename":"ForumReplyMessage","id":"message:104593","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:104415/message:104593","revisionNum":1,"uid":104593,"depth":2,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"conversation":{"__ref":"Conversation:conversation:104415"},"subject":"Re: Lost help file favorites","readOnly":false,"editFrozen":false,"showMoveIndicator":false,"moderationData":{"__ref":"ModerationData:moderation_data:104593"},"body":"Thanks, I'll give that a try.
","body@stringLength":"36","rawBody":"Thanks, I'll give that a try.
","author":{"__ref":"User:user:54873"},"isEscalated":null,"postTime":"2015-08-27T10:21:43.614-07:00","solution":false,"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"repliesCount":6},"Revision:revision:104886_1":{"__typename":"Revision","id":"revision:104886_1","lastEditTime":"2015-09-02T05:37:03.203-07:00"},"QueryVariables:ReplyList:message:104886:1":{"__typename":"QueryVariables","id":"ReplyList:message:104886:1","value":{"id":"message:104886","first":10,"sorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"repliesFirst":3,"repliesFirstDepthThree":1,"repliesSorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":true,"useBody":true,"useKudosCount":true,"useTimeToRead":false,"useMedia":false,"useReadOnlyIcon":false,"useRepliesCount":true,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":false,"attachmentsFirst":5,"useTags":false,"useNodeAncestors":false,"useUserHoverCard":false,"useNodeHoverCard":false,"useModerationStatus":true,"usePreviewSubjectModal":false,"useMessageStatus":true}},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1749759144459","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1749759144459","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/common/ExternalLinkWarningModal-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/common/ExternalLinkWarningModal-1749759144459","value":{"title":"Leaving the Community","description":"You're about to leave this site and navigate to an external domain. Are you sure you want to continue?","action.submit":"Continue","action.cancel":"Go Back"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1749759144459","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved","topicAlreadySolvedErrorTitle":"Solution Already Exists","topicAlreadySolvedErrorDesc":"Refresh the browser to view the existing solution"},"localOverride":false},"CachedAsset:text:en_US-components/messages/ThreadedReplyList-1749759144459":{"__typename":"CachedAsset","id":"text:en_US-components/messages/ThreadedReplyList-1749759144459","value":{"title":"{count, plural, one{# Reply} other{# Replies}}","title@board:BLOG":"{count, plural, one{# Comment} other{# Comments}}","title@board:TKB":"{count, plural, one{# Comment} other{# Comments}}","title@board:IDEA":"{count, plural, one{# Comment} other{# Comments}}","title@board:OCCASION":"{count, plural, one{# Comment} other{# Comments}}","noRepliesTitle":"No Replies","noRepliesTitle@board:BLOG":"No Comments","noRepliesTitle@board:TKB":"No Comments","noRepliesTitle@board:IDEA":"No Comments","noRepliesTitle@board:OCCASION":"No Comments","noRepliesDescription":"Be the first to reply","noRepliesDescription@board:BLOG":"Be the first to comment","noRepliesDescription@board:TKB":"Be the first to comment","noRepliesDescription@board:IDEA":"Be the first to comment","noRepliesDescription@board:OCCASION":"Be the first to comment","messageReadOnlyAlert:BLOG":"Comments have been turned off for this post","messageReadOnlyAlert:TKB":"Comments have been turned off for this article","messageReadOnlyAlert:IDEA":"Comments have been turned off for this idea","messageReadOnlyAlert:FORUM":"Replies have been turned off for this discussion","messageReadOnlyAlert:OCCASION":"Comments have been turned off for this event"},"localOverride":false},"AssociatedImage:{\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/images/cmstMjktSG1CVVBR\"}":{"__typename":"AssociatedImage","url":"https://community.smartbear.com/t5/s/nwkab66374/images/cmstMjktSG1CVVBR","height":64,"width":64,"mimeType":"image/png"},"Rank:rank:29":{"__typename":"Rank","id":"rank:29","position":1,"name":"Alumni","color":"949494","icon":{"__ref":"AssociatedImage:{\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/images/cmstMjktSG1CVVBR\"}"},"rankStyle":"OUTLINE"},"ModerationData:moderation_data:104892":{"__typename":"ModerationData","id":"moderation_data:104892","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"User:user:1737":{"__typename":"User","id":"user:1737","uid":1737,"login":"TanyaYatskovska","biography":null,"registrationData":{"__typename":"RegistrationData","status":null,"registrationTime":"2014-01-28T08:31:10.000-08:00"},"deleted":false,"email":"","avatar":{"__typename":"UserAvatar","url":"https://community.smartbear.com/t5/s/nwkab66374/images/dS0xNzM3LTgzNzJpMUMzNUMwQTRFQzQ0RDIyMQ"},"rank":{"__ref":"Rank:rank:29"},"entityType":"USER","eventPath":"community:nwkab66374/user:1737"},"ForumReplyMessage:message:104892":{"__typename":"ForumReplyMessage","uid":104892,"id":"message:104892","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:104415/message:104892","revisionNum":1,"author":{"__ref":"User:user:54873"},"readOnly":false,"repliesCount":1,"depth":5,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"AcceptedSolutionMessage:message:104887"},"conversation":{"__ref":"Conversation:conversation:104415"},"subject":"Re: Lost help file favorites","moderationData":{"__ref":"ModerationData:moderation_data:104892"},"body":"My last post wasn't clear enough. You provided me with a JScript to copy the information over but I've never used JScript and I wasn't able to (quickly) convert it to VBScript.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"190","kudosSumWeight":0,"postTime":"2015-09-02T06:23:22.863-07:00","lastPublishTime":"2015-09-02T06:23:22.863-07:00","metrics":{"__typename":"MessageMetrics","views":3513},"visibilityScope":"PUBLIC","placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuNHwyLjF8b3wxfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:104930"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:104930":{"__typename":"ModerationData","id":"moderation_data:104930","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:104930":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:1737"},"id":"message:104930","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:104415/message:104930","revisionNum":1,"uid":104930,"depth":6,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:104892"},"conversation":{"__ref":"Conversation:conversation:104415"},"subject":"Re: Lost help file favorites","moderationData":{"__ref":"ModerationData:moderation_data:104930"},"body":"Hi bduncan,
\nMy unerstanding is that you need to execute Helen's script only once. So, you just can:
\n1. create a new JScript project in TestComplete (the procedure of created a projects is the same for all script languages)
\n2. copy/past the script
\n3. execute the script
\n4. make sure that the everything was copied and remove the project.
\n","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"208","kudosSumWeight":2,"repliesCount":0,"postTime":"2015-09-02T12:43:36.465-07:00","lastPublishTime":"2015-09-02T12:43:36.465-07:00","metrics":{"__typename":"MessageMetrics","views":3500},"visibilityScope":"PUBLIC","placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:105055":{"__typename":"ModerationData","id":"moderation_data:105055","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:105055":{"__typename":"ForumReplyMessage","uid":105055,"id":"message:105055","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:104415/message:105055","revisionNum":1,"author":{"__ref":"User:user:54873"},"readOnly":false,"repliesCount":1,"depth":5,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"AcceptedSolutionMessage:message:104887"},"conversation":{"__ref":"Conversation:conversation:104415"},"subject":"Re: Lost help file favorites","moderationData":{"__ref":"ModerationData:moderation_data:105055"},"body":"
Sorry HKosova that went right over my head at the time. It's been a hectic couple of weeks and all I could see was JScript and I've never used it before. It did not even occur to me that I don't have to know JScript to create a project using it instead of VBScript. I did and the script worked flawlessly. My most humble apology, and many, many thanks :-)
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"218","kudosSumWeight":0,"postTime":"2015-09-04T05:46:51.111-07:00","lastPublishTime":"2015-09-04T05:46:51.111-07:00","metrics":{"__typename":"MessageMetrics","views":3481},"visibilityScope":"PUBLIC","placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuNHwyLjF8b3wxfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:105056"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:105056":{"__typename":"ModerationData","id":"moderation_data:105056","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:105056":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:12406"},"id":"message:105056","entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:104415/message:105056","revisionNum":1,"uid":105056,"depth":6,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:105055"},"conversation":{"__ref":"Conversation:conversation:104415"},"subject":"Re: Lost help file favorites","moderationData":{"__ref":"ModerationData:moderation_data:105056"},"body":"
No problem Bill, glad it worked for you. :smileyhappy:
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"61","kudosSumWeight":0,"repliesCount":0,"postTime":"2015-09-04T05:52:49.794-07:00","lastPublishTime":"2015-09-04T05:52:49.794-07:00","metrics":{"__typename":"MessageMetrics","views":3477},"visibilityScope":"PUBLIC","placeholder":false,"showMoveIndicator":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"testcomplete-questions","messageSubject":"lost-help-file-favorites","messageId":"104415","replyId":"104886"},"buildId":"3XH0qYWYCnEYycuN5W4S8","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","surveysEnabled":true,"openTelemetry":{"clientEnabled":false,"configName":"smartbear","serviceVersion":"25.4.0","universe":"prod","collector":"http://localhost:4318","logLevel":"error","routeChangeAllowedTime":"5000","headers":"","enableDiagnostic":"false","maxAttributeValueLength":"4095"},"apolloDevToolsEnabled":false,"quiltLazyLoadThreshold":"3"},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["components_seo_QAPageSchema","components_community_Navbar_NavbarWidget","components_community_Breadcrumb_BreadcrumbWidget","components_messages_TopicWithThreadedReplyListWidget","components_messages_MessageListForNodeByRecentActivityWidget","components_messages_RelatedContentWidget","components_customComponent_CustomComponent","components_messages_MessageView_MessageViewStandard","components_messages_EscalatedMessageBanner","shared_client_components_common_List_UnstyledList","components_messages_MessageView","components_messages_MessageView_MessageViewInline","shared_client_components_common_Pager_PagerLoadMore","components_customComponent_CustomComponentContent_TemplateContent"],"appGip":true,"scriptLoader":[]}