{"id":881,"date":"2019-03-25T17:32:41","date_gmt":"2019-03-25T20:32:41","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/kb25172-creating-hot-keys-in-e3\/"},"modified":"2020-01-22T14:09:56","modified_gmt":"2020-01-22T17:09:56","slug":"kb25172-creating-hot-keys-in-e3","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/","title":{"rendered":"KB-25172: Creating hot keys in E3."},"content":{"rendered":"<div style=\"text-align: justify;\">\n<p><span style=\"font-weight: bold;\">Question:<\/span><\/p>\n<p>How can I create hot keys in E3?<\/p>\n<p><span style=\"font-weight: bold;\">Solution:<\/span><\/p>\n<p>You can do so by using screen&#8217;s <span style=\"font-style: italic;\">KeyDown <\/span>or <span style=\"font-style: italic;\">KeyUp <\/span>events, where you can identify the code of the pushed key via <span style=\"font-style: italic;\">KeyCode <\/span>variable.<\/p>\n<p><span style=\"font-weight: bold;\">Example of script:<br \/>\n<\/span><br \/>\n<span style=\"font-family: Courier New; color: #000000;\">Sub MainScreen_KeyDown(KeyCode, Shift)<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">\u00a0\u00a0\u00a0 MsgBox KeyCode\u00a0\u00a0\u00a0 <\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">End Sub<\/span><\/p>\n<\/div>\n<div style=\"text-align: justify;\">Based on the returned code, you can create a script that tests this value and performs any other actions necessary.<br \/>\n<span style=\"font-weight: bold;\"><br \/>\nFor example:<br \/>\n<\/span><br \/>\n<span style=\"font-family: Courier New; color: #000000;\">Sub MainScreen _KeyUp(KeyCode, Shift)<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">\u00a0\u00a0\u00a0 if KeyCode = 112 then<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 MsgBox &#8220;You&#8217;ve pressed F1&#8221;<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">\u00a0\u00a0\u00a0 end if<\/span><br style=\"font-family: Courier New; color: #000000;\" \/><span style=\"font-family: Courier New; color: #000000;\">End Sub<br \/>\n<\/span><\/div>\n<div style=\"text-align: justify;\">\n<p><span style=\"font-weight: bold;\">NOTE<\/span>: The <em>KeyDown<\/em> and <em>KeyUp<\/em> events are executed only if the screen where the scripts were created is opened and has the focus.<\/p>\n<p>Attached to this article is a sample application developed with <span style=\"font-weight: bold;\">Elipse E3<\/span> version 3.1 build 270.<\/p>\n<\/div>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/Sample-19.zip\">Sample.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I create hot keys in E3? Solution: You can do so by using screen&#8217;s KeyDown or KeyUp events, where you can identify the code of the pushed&hellip;<\/p>\n","protected":false},"author":7,"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],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-25172: Creating hot keys in E3. - 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\/kb25172-creating-hot-keys-in-e3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-25172: Creating hot keys in E3.\" \/>\n<meta property=\"og:description\" content=\"Question: How can I create hot keys in E3? Solution: You can do so by using screen&#8217;s KeyDown or KeyUp events, where you can identify the code of the pushed&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/\" \/>\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:32:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-22T17:09:56+00:00\" \/>\n<meta name=\"author\" content=\"Paulo Gustavo S\u00fcffert\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paulo Gustavo S\u00fcffert\" \/>\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\/kb25172-creating-hot-keys-in-e3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/\"},\"author\":{\"name\":\"Paulo Gustavo S\u00fcffert\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/8517ae12d1613d5a70f61b30399b5090\"},\"headline\":\"KB-25172: Creating hot keys in E3.\",\"datePublished\":\"2019-03-25T20:32:41+00:00\",\"dateModified\":\"2020-01-22T17:09:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/\"},\"wordCount\":131,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/\",\"name\":\"[:pt]KB-25172: Creating hot keys in E3.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:32:41+00:00\",\"dateModified\":\"2020-01-22T17:09:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-25172: Creating hot keys in E3.\"}]},{\"@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\/8517ae12d1613d5a70f61b30399b5090\",\"name\":\"Paulo Gustavo S\u00fcffert\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ce04e818ef4126e9cba08720cfcfbf2a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ce04e818ef4126e9cba08720cfcfbf2a?s=96&d=mm&r=g\",\"caption\":\"Paulo Gustavo S\u00fcffert\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/pgustavo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KB-25172: Creating hot keys in E3. - 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\/kb25172-creating-hot-keys-in-e3\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]KB-25172: Creating hot keys in E3.[:] - Elipse Knowledgebase","og_description":"Question: How can I create hot keys in E3? Solution: You can do so by using screen&#8217;s KeyDown or KeyUp events, where you can identify the code of the pushed&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:32:41+00:00","article_modified_time":"2020-01-22T17:09:56+00:00","author":"Paulo Gustavo S\u00fcffert","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Paulo Gustavo S\u00fcffert","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/"},"author":{"name":"Paulo Gustavo S\u00fcffert","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/8517ae12d1613d5a70f61b30399b5090"},"headline":"KB-25172: Creating hot keys in E3.","datePublished":"2019-03-25T20:32:41+00:00","dateModified":"2020-01-22T17:09:56+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/"},"wordCount":131,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/","url":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/","name":"[:pt]KB-25172: Creating hot keys in E3.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:32:41+00:00","dateModified":"2020-01-22T17:09:56+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/kb25172-creating-hot-keys-in-e3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-25172: Creating hot keys in E3."}]},{"@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\/8517ae12d1613d5a70f61b30399b5090","name":"Paulo Gustavo S\u00fcffert","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ce04e818ef4126e9cba08720cfcfbf2a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ce04e818ef4126e9cba08720cfcfbf2a?s=96&d=mm&r=g","caption":"Paulo Gustavo S\u00fcffert"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/pgustavo\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/881"}],"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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":3,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"predecessor-version":[{"id":9876,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/881\/revisions\/9876"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}