{"id":8729,"date":"2019-09-11T16:02:56","date_gmt":"2019-09-11T19:02:56","guid":{"rendered":"http:\/\/kb.elipse.com.br\/en\/?p=8729"},"modified":"2019-09-11T16:04:30","modified_gmt":"2019-09-11T19:04:30","slug":"kb-104004-closing-a-remote-viewer-via-command","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/","title":{"rendered":"KB-104004: Closing a remote Viewer via command."},"content":{"rendered":"<h2><strong>Question:<\/strong><\/h2>\n<p>Can I close a <a href=\"https:\/\/kb.elipse.com.br\/en\/?s=remote+viewer\" target=\"_blank\" rel=\"noopener noreferrer\">remote Viewer<\/a> via command, that is, without having to access the computer where it&#8217;s open?<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Solution:<\/strong><\/h2>\n<div id=\"todo\">\n<div id=\"Content\" class=\"Content\">\n<div id=\"ContentSubDiv104004\" class=\"subContent\">\n<div class=\"viewTracking\">\n<div class=\"viewContentTracking\">\n<p>Yes, you can. The E3 Viewer is <a href=\"https:\/\/www.elipse.com.br\/en\/produto\/elipse-e3\/\" target=\"_blank\" rel=\"noopener noreferrer\">Elipse E3<\/a>&#8216;s operational interface. The Viewer object is where you will set up the E3 Viewer&#8217;s visualization, either <em>in loco<\/em> or remotely. A remote Viewer is the one being operated in a different machine, that is, not the one where it has been originaly opened.<\/p>\n<p>In order to close a remote Viewer via command, you will need to use the Viewer&#8217;s <strong>Exit()<\/strong> method in a user event. This event is activated either via a command sent by the user or via another type of programming logic.<\/p>\n<p>To do so, follow the example below:<\/p>\n<ol>\n<li id=\"tracking1\">Create two internal tags (one whose <strong>Value <\/strong>property is a Boolean, another one as a string) in the server. For example: <strong>AutoClose(Boolean)<\/strong> and <strong>ViewerName(String)<\/strong>.<\/li>\n<li>Then, create a setpoint on the screen, and link it (with a bidirectional\/reverse link) to <strong>ViewerName<\/strong> tag.<\/li>\n<li>On the same screen, create a command button that sends True to <strong>AutoClose<\/strong> tag.<\/li>\n<li>At the Viewer, create a user event (<strong>eventClose<\/strong>) that points to the server&#8217;s <strong>AutoClose<\/strong> tag <strong>Value<\/strong> property, whose occurrence is <em>&#8220;Whenever the property is True&#8221;<\/em>.<\/li>\n<li>After that, in the event above, create a script that compares <strong>ViewerName<\/strong> tag <strong>Value<\/strong> property to the name of the computer from where you wish to close the Viewer; use E3Globals&#8217;s\u00a0 <strong>GetComputerName()<\/strong> method to retrieve the name of the machine. If they are the same, execute the Viewer <strong>Exit<\/strong> method. For example:<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<pre>Sub Viewer_eventClose()\r\n\r\nIF Application.GetObject(\"Data.ViewerName\").Value = GetComputerName() THEN\r\nApplication.Exit()\r\nEND IF\r\n\r\nApplication.GetObject(\"Data.AutoClose\").Value = False\r\n\r\nEnd Sub<\/pre>\n<h2><strong>Attachment:<\/strong><\/h2>\n<p><a href=\"http:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/08\/8340\/CloseViewer.zip\">CloseViewer.zip<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Question: Can I close a remote Viewer via command, that is, without having to access the computer where it&#8217;s open? &nbsp; Solution: Yes, you can. The E3 Viewer is Elipse&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[763,767],"tags":[885],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to close a remote Viewer (Elipse E3) via command.<\/title>\n<meta name=\"description\" content=\"This article shows you how to close a remote Viewer from Elipse E3 via command, that is, without having to access the computer where it&#039;s open.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to close a remote Viewer (Elipse E3) via command.\" \/>\n<meta property=\"og:description\" content=\"This article shows you how to close a remote Viewer from Elipse E3 via command, that is, without having to access the computer where it&#039;s open.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-11T19:02:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-11T19:04:30+00:00\" \/>\n<meta name=\"author\" content=\"Felipe Gabriel dos Santos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Felipe Gabriel dos Santos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/\"},\"author\":{\"name\":\"Felipe Gabriel dos Santos\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/33472b114af7aa3a770b87462ed1e7c7\"},\"headline\":\"KB-104004: Closing a remote Viewer via command.\",\"datePublished\":\"2019-09-11T19:02:56+00:00\",\"dateModified\":\"2019-09-11T19:04:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/\"},\"wordCount\":279,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"keywords\":[\"Viewer\"],\"articleSection\":[\"Scripts\",\"Viewer\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/\",\"name\":\"How to close a remote Viewer (Elipse E3) via command.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-09-11T19:02:56+00:00\",\"dateModified\":\"2019-09-11T19:04:30+00:00\",\"description\":\"This article shows you how to close a remote Viewer from Elipse E3 via command, that is, without having to access the computer where it's open.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-104004: Closing a remote Viewer via command.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/33472b114af7aa3a770b87462ed1e7c7\",\"name\":\"Felipe Gabriel dos Santos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/69a6f83b6fc2b0aed7ba3f8cb3cb019f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/69a6f83b6fc2b0aed7ba3f8cb3cb019f?s=96&d=mm&r=g\",\"caption\":\"Felipe Gabriel dos Santos\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/gabriel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to close a remote Viewer (Elipse E3) via command.","description":"This article shows you how to close a remote Viewer from Elipse E3 via command, that is, without having to access the computer where it's open.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/","og_locale":"en_US","og_type":"article","og_title":"How to close a remote Viewer (Elipse E3) via command.","og_description":"This article shows you how to close a remote Viewer from Elipse E3 via command, that is, without having to access the computer where it's open.","og_url":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-09-11T19:02:56+00:00","article_modified_time":"2019-09-11T19:04:30+00:00","author":"Felipe Gabriel dos Santos","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Felipe Gabriel dos Santos","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/"},"author":{"name":"Felipe Gabriel dos Santos","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/33472b114af7aa3a770b87462ed1e7c7"},"headline":"KB-104004: Closing a remote Viewer via command.","datePublished":"2019-09-11T19:02:56+00:00","dateModified":"2019-09-11T19:04:30+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/"},"wordCount":279,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"keywords":["Viewer"],"articleSection":["Scripts","Viewer"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/","url":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/","name":"How to close a remote Viewer (Elipse E3) via command.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-09-11T19:02:56+00:00","dateModified":"2019-09-11T19:04:30+00:00","description":"This article shows you how to close a remote Viewer from Elipse E3 via command, that is, without having to access the computer where it's open.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/kb-104004-closing-a-remote-viewer-via-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-104004: Closing a remote Viewer via command."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/33472b114af7aa3a770b87462ed1e7c7","name":"Felipe Gabriel dos Santos","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/69a6f83b6fc2b0aed7ba3f8cb3cb019f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/69a6f83b6fc2b0aed7ba3f8cb3cb019f?s=96&d=mm&r=g","caption":"Felipe Gabriel dos Santos"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/gabriel\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/8729"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=8729"}],"version-history":[{"count":7,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/8729\/revisions"}],"predecessor-version":[{"id":8758,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/8729\/revisions\/8758"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=8729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=8729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=8729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}