{"id":3448,"date":"2019-03-25T17:44:20","date_gmt":"2019-03-25T20:44:20","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/"},"modified":"2019-06-10T14:02:55","modified_gmt":"2019-06-10T17:02:55","slug":"user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/","title":{"rendered":"User restrictions for sending commands at PowerExplorer and XPowerMenuCreator."},"content":{"rendered":"<div align=\"justify\">\n<p><b>Question:<\/b><\/p>\n<p>How can I insert user restrictions for sending commands via <b>PowerExplorer <\/b>and via <b>XPowerMenuCreator<\/b>?<\/p>\n<p><b>Solution:<\/b><\/p>\n<p><u>At PowerExplorer<\/u><\/p>\n<p>1. Access the Rectangle1&#8217;s script at <b>XPowerMenuCreator <\/b>XControl.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture_1.jpg\" alt=\"\" width=\"538\" height=\"393\" align=\"baseline\" border=\"0\" \/><\/div>\n<p>2. Double-click the rectangle and access its script. This script is responsible for creating the PowerExplorer window and the selection menu, as well as the protections&#8217;, measurements&#8217;, and commands&#8217; selection tree.<\/p>\n<p>3. Retrieve <i>ShowPowerExplorer <\/i>method in the script via <b>Search <\/b>command:\u00a0<img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture_2.jpg\" alt=\"\" width=\"20\" height=\"19\" align=\"baseline\" border=\"0\" \/> . The following line will return:<\/p>\n<div align=\"left\"><span style=\"font-family: Courier New;\">Application.ShowPowerExplorer auxTitle, MeaPath,, , false, XPowerMenuCreator, XPowerMenuCreator.PowerExplorerBackColor<\/span><\/div>\n<p>4. When checking the <i>ShowPowerExplorer <\/i>method&#8217;s specification, note that parameters set as <b>False <\/b>are read-only. When setting them as True, you will no longer be able to send commands via Power Explorer.<\/p>\n<p>5. In this example, a script was created to limit the number of commands sent to <b>adm <\/b>group. In your case, create the logic according to the groups created in your application.<\/p>\n<div align=\"left\"><span style=\"font-family: Courier New;\">If Application.IsUserMemberOfGroup (&#8220;adm&#8221;, Application.User) then <\/span><br \/>\n<span style=\"font-family: Courier New;\">&#8216;show PowerExplorer<\/span><br \/>\n<span style=\"font-family: Courier New;\">Application.ShowPowerExplorer auxTitle, MeaPath,, , false, XPowerMenuCreator, XPowerMenuCreator.PowerExplorerBackColor<\/span><br \/>\n<span style=\"font-family: Courier New;\">Else Application.ShowPowerExplorer auxTitle, MeaPath,, , true, XPowerMenuCreator, XPowerMenuCreator.PowerExplorerBackColor<\/span><br \/>\n<span style=\"font-family: Courier New;\">End if<\/span><\/div>\n<p>From the Viewer&#8217;s <i>IsUserMemberOfGroup <\/i>method, the script tests if the user logged on belongs to the group set up at <b>GroupName <\/b>parameter (in this case, <b>adm<\/b>), and either grants or denies permission to sending commands.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture3.jpg\" alt=\"\" width=\"500\" height=\"203\" align=\"baseline\" border=\"0\" \/><\/div>\n<p><u>At XPowerMenuCreator<\/u><\/p>\n<p>1. Also at the Rectangle1&#8217;s script from <b>XPowerMenuCreator <\/b>XControl, create a script to delete the <b>Commands <\/b>option from the tree:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture_4.jpg\" alt=\"\" width=\"404\" height=\"159\" align=\"baseline\" border=\"0\" \/><\/div>\n<p>To do so, search for <b>Commands <\/b>in the script via <b>Search <\/b>command. The following script will return:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture_5.jpg\" alt=\"\" width=\"367\" height=\"104\" align=\"baseline\" border=\"0\" \/><\/div>\n<p>2. Then, create a script that hides this window. In this case, it is also possible to use <i>IsUserMemberOfGroup <\/i>method to test if the logged-on user belongs or not to a certain group. In the example, a script was created to test if the user logged on <b>adm <\/b>is present:<\/p>\n<p><span style=\"font-family: Courier New;\">IF NOT Application.IsUserMemberOfGroup (&#8220;adm&#8221;, Application.User) then<br \/>\nauxCommand = &#8220;!Commands|&#8221;<br \/>\nEnd if<\/span><\/p>\n<p>3. In the example above, if the user not\u00a0belongs to <b>adm<\/b>, the <b>Commands <\/b>option is not enabled; by the end, the script will look like this:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture6.jpg\" alt=\"\" width=\"500\" height=\"129\" align=\"baseline\" border=\"0\" \/><\/div>\n<p>For further information on <i>IsUserMemberOfGroup <\/i>and <i>ShowPowerExplorer <\/i>methods, please refer to <b>Elipse E3\/Power Scripts Reference Manual<\/b>.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I insert user restrictions for sending commands via PowerExplorer and via XPowerMenuCreator? Solution: At PowerExplorer 1. Access the Rectangle1&#8217;s script at XPowerMenuCreator XControl. 2. Double-click the rectangle&hellip;<\/p>\n","protected":false},"author":1,"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":[825],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>User restrictions for sending commands at PowerExplorer and XPowerMenuCreator. - Elipse Knowledgebase<\/title>\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\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"User restrictions for sending commands at PowerExplorer and XPowerMenuCreator.\" \/>\n<meta property=\"og:description\" content=\"Question: How can I insert user restrictions for sending commands via PowerExplorer and via XPowerMenuCreator? Solution: At PowerExplorer 1. Access the Rectangle1&#8217;s script at XPowerMenuCreator XControl. 2. Double-click the rectangle&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/\" \/>\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-03-25T20:44:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-10T17:02:55+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture_1.jpg\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\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\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"User restrictions for sending commands at PowerExplorer and XPowerMenuCreator.\",\"datePublished\":\"2019-03-25T20:44:20+00:00\",\"dateModified\":\"2019-06-10T17:02:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/\"},\"wordCount\":357,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Elipse Power\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/\",\"name\":\"[:pt]User restrictions for sending commands at PowerExplorer and XPowerMenuCreator.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:44:20+00:00\",\"dateModified\":\"2019-06-10T17:02:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"User restrictions for sending commands at PowerExplorer and XPowerMenuCreator.\"}]},{\"@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\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"User restrictions for sending commands at PowerExplorer and XPowerMenuCreator. - Elipse Knowledgebase","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\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]User restrictions for sending commands at PowerExplorer and XPowerMenuCreator.[:] - Elipse Knowledgebase","og_description":"Question: How can I insert user restrictions for sending commands via PowerExplorer and via XPowerMenuCreator? Solution: At PowerExplorer 1. Access the Rectangle1&#8217;s script at XPowerMenuCreator XControl. 2. Double-click the rectangle&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:44:20+00:00","article_modified_time":"2019-06-10T17:02:55+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID5112EN\/Picture_1.jpg"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"User restrictions for sending commands at PowerExplorer and XPowerMenuCreator.","datePublished":"2019-03-25T20:44:20+00:00","dateModified":"2019-06-10T17:02:55+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/"},"wordCount":357,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Elipse Power"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/","url":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/","name":"[:pt]User restrictions for sending commands at PowerExplorer and XPowerMenuCreator.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:44:20+00:00","dateModified":"2019-06-10T17:02:55+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/user-restrictions-for-sending-commands-at-powerexplorer-and-xpowermenucreator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"User restrictions for sending commands at PowerExplorer and XPowerMenuCreator."}]},{"@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\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3448"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3448"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3448\/revisions"}],"predecessor-version":[{"id":7129,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3448\/revisions\/7129"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}