{"id":11162,"date":"2020-07-17T11:26:53","date_gmt":"2020-07-17T14:26:53","guid":{"rendered":"http:\/\/kb.elipse.com.br\/en\/?p=11162"},"modified":"2024-10-31T13:30:32","modified_gmt":"2024-10-31T16:30:32","slug":"kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/","title":{"rendered":"KB-109599: Limiting the amount of Viewers in Elipse E3 via scripts."},"content":{"rendered":"<h3>Question:<\/h3>\n<p>Is it possible to limit, via scripts, the amount of Viewers in an application developed with <a href=\"https:\/\/www.elipse.com.br\/en\/produto\/elipse-e3\/\" target=\"_blank\" rel=\"noopener noreferrer\">Elipse E3<\/a>? I need that each different computer open only one <a href=\"https:\/\/kb.elipse.com.br\/en\/category\/english\/elipse-e3-en\/viewer-2\/\" target=\"_blank\" rel=\"noopener noreferrer\">Viewer<\/a>. Since\u00a0 the computers on the network have dynamic IPs, I can&#8217;t use Viewer Groups in the Domain Options.<\/p>\n<p>&nbsp;<\/p>\n<h3>Solution:<\/h3>\n<div class=\"page\" title=\"Page 7\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>The <strong>Viewer<\/strong> object allows operating the applications residing in the server from any computer with the executable program Viewer (Windows XP, 2003, Vista, and Windows 7) or from a browser connected to the Internet. In both cases, you don&#8217;t need to install the application in the client machine; all its components (Screens, Libraries, ActiveX controls) will be automatically downloaded and registered.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>In order to limit the amount of Viewers in an application developed with Elipse E3 in a group of IPs, you must first access the Domain&#8217;s setup window (E3Admin -> Domain -> Options). Then, click <strong>Viewers Group<\/strong> and select the desired group; after that, configure it so it will only open one Viewer at a time.<\/p>\n<p>Elipse E3 won&#8217;t allow any configurations that limits the amount of Viewers per IP inside a group. Therefore, you would need to create several groups, with only one IP per group, and then limit the amount of Viewer in these groups.<\/p>\n<p>Since the process described above would be time-consuming in a large range of IPs, an alternative for this case would be to check, via scripts, if there are any Viewer processes already being executed in the computer. If so, the new Viewer would be closed via scripts.<\/p>\n<p>This alternative would consume a Viewer license, temporarily, while the script is running and the Viewer closes.<\/p>\n<p>You should then add the following script to the Viewer&#8217;s <em>OnStartRunning<\/em> event:<\/p>\n<pre>ProcessName = \"E3Viewer.exe\"\r\nSet objWMIService = GetObject(\"winmgmts:\" & \"{impersonationLevel=impersonate}!\\localhostrootcimv2\")\r\nSet results = objWMIService.ExecQuery(\" Select * from Win32_Process where Name = '\"& ProcessName &\"'\")\r\nIf results.count >1 Then\r\n  For each obj in results\r\n    MsgBox \"There already is a Viewer open in this computer!\"\r\n    Application.Exit()\r\n    Exit Sub\r\n  Next\r\nEnd If<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Is it possible to limit, via scripts, the amount of Viewers in an application developed with Elipse E3? I need that each different computer open only one Viewer. Since\u00a0&hellip;<\/p>\n","protected":false},"author":11,"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":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-109599: How to limit the amount of Viewers in Elipse E3 via scripts.<\/title>\n<meta name=\"description\" content=\"This article shows how to limit the amount of Viewers that can be currently open in each computer in an application developed with Elipse E3.\" \/>\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-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-109599: How to limit the amount of Viewers in Elipse E3 via scripts.\" \/>\n<meta property=\"og:description\" content=\"This article shows how to limit the amount of Viewers that can be currently open in each computer in an application developed with Elipse E3.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/\" \/>\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=\"2020-07-17T14:26:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-31T16:30:32+00:00\" \/>\n<meta name=\"author\" content=\"Enrico Busnello Amorim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Enrico Busnello Amorim\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\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-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/\"},\"author\":{\"name\":\"Enrico Busnello Amorim\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/aa880bd098677c1ae91fa708e17cdc12\"},\"headline\":\"KB-109599: Limiting the amount of Viewers in Elipse E3 via scripts.\",\"datePublished\":\"2020-07-17T14:26:53+00:00\",\"dateModified\":\"2024-10-31T16:30:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/\"},\"wordCount\":308,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Scripts\",\"Viewer\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/\",\"name\":\"KB-109599: How to limit the amount of Viewers in Elipse E3 via scripts.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2020-07-17T14:26:53+00:00\",\"dateModified\":\"2024-10-31T16:30:32+00:00\",\"description\":\"This article shows how to limit the amount of Viewers that can be currently open in each computer in an application developed with Elipse E3.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-109599: Limiting the amount of Viewers in Elipse E3 via scripts.\"}]},{\"@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\/aa880bd098677c1ae91fa708e17cdc12\",\"name\":\"Enrico Busnello Amorim\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/13943145ceed05bf229301fae63da878?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/13943145ceed05bf229301fae63da878?s=96&d=mm&r=g\",\"caption\":\"Enrico Busnello Amorim\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/enrico\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KB-109599: How to limit the amount of Viewers in Elipse E3 via scripts.","description":"This article shows how to limit the amount of Viewers that can be currently open in each computer in an application developed with Elipse E3.","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-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/","og_locale":"en_US","og_type":"article","og_title":"KB-109599: How to limit the amount of Viewers in Elipse E3 via scripts.","og_description":"This article shows how to limit the amount of Viewers that can be currently open in each computer in an application developed with Elipse E3.","og_url":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2020-07-17T14:26:53+00:00","article_modified_time":"2024-10-31T16:30:32+00:00","author":"Enrico Busnello Amorim","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Enrico Busnello Amorim","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/"},"author":{"name":"Enrico Busnello Amorim","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/aa880bd098677c1ae91fa708e17cdc12"},"headline":"KB-109599: Limiting the amount of Viewers in Elipse E3 via scripts.","datePublished":"2020-07-17T14:26:53+00:00","dateModified":"2024-10-31T16:30:32+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/"},"wordCount":308,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Scripts","Viewer"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/","url":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/","name":"KB-109599: How to limit the amount of Viewers in Elipse E3 via scripts.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2020-07-17T14:26:53+00:00","dateModified":"2024-10-31T16:30:32+00:00","description":"This article shows how to limit the amount of Viewers that can be currently open in each computer in an application developed with Elipse E3.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/kb-109599-limiting-the-amount-of-viewers-in-elipse-e3-via-scripts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-109599: Limiting the amount of Viewers in Elipse E3 via scripts."}]},{"@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\/aa880bd098677c1ae91fa708e17cdc12","name":"Enrico Busnello Amorim","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/13943145ceed05bf229301fae63da878?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/13943145ceed05bf229301fae63da878?s=96&d=mm&r=g","caption":"Enrico Busnello Amorim"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/enrico\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11162"}],"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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=11162"}],"version-history":[{"count":5,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11162\/revisions"}],"predecessor-version":[{"id":16585,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/11162\/revisions\/16585"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=11162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=11162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=11162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}