{"id":1361,"date":"2019-03-25T17:34:45","date_gmt":"2019-03-25T20:34:45","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/basic-vbscript-for-elipse-e3-lesson-4-events\/"},"modified":"2019-05-29T16:59:14","modified_gmt":"2019-05-29T19:59:14","slug":"basic-vbscript-for-elipse-e3-lesson-4-events","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/","title":{"rendered":"Basic VBScript for Elipse E3: Lesson 4 &#8211; Events"},"content":{"rendered":"<p><span id=\"anchor_div\"> <\/span><span style=\"font-size: large;\"><span style=\"color: #990099; font-weight: bold;\">Screen Events<\/span><\/span><br \/>\n<span style=\"font-weight: bold; font-size: large;\"><br style=\"color: #3366ff;\" \/><span style=\"color: #3366ff;\">KeyDown (KeyCode, Shift) <\/span><\/span><\/p>\n<p>This occurs at the moment a button is pressed, regardless of the focus on the screen.<br \/>\n<span style=\"font-weight: bold;\">KeyCode<\/span>: <span style=\"background-color: #ffffff;\">Integer t<\/span>hat identifies the ASCII character of the pressed button.<br \/>\n<span style=\"font-weight: bold;\">Shift<\/span>: Displays the pressed button <span style=\"background-color: #ffffff;\">alongside <\/span>the mouse click:<span style=\"background-color: #ffffff;\"> 4 = Key [Shift]; 8 = Key [Ctrl]; 12 = Keys [Ctrl] + [Shift].<\/span><\/p>\n<p>Example:<\/p>\n<pre><span style=\"font-family: Courier New; background-color: #cccccc;\">Sub Screen1_KeyDown(KeyCode, Shift) <\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">'Displays a message box when the user presses a button <\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">MsgBox \"Button code: \" & KeyCode<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">End Sub<\/span><\/pre>\n<p><span style=\"color: #3366ff; font-weight: bold; font-style: italic; font-size: large;\">Exercises:<\/span><\/p>\n<p>1. When the user presses Esc on screen, quit the Viewer.<br \/>\n2. When the combination Ctrl+Y is pressed, display a message box.<\/p>\n<p><span style=\"font-size: large;\"><span style=\"font-weight: bold; color: #3366ff;\">MouseDown (Button, ShiftState, MouseX, MouseY) <\/span><\/span><\/p>\n<p>This occurs when any mouse button is pressed on the screen. Use MouseDown event to determine specific actions when the screen is clicked by users.<br \/>\n<span style=\"font-weight: bold;\">Button<\/span>:\u00a0 1 -The pressed mouse button is the left one. 2 &#8211; The pressed mouse button is the right one.<br \/>\n<span style=\"font-weight: bold;\">ShiftState<\/span>: Displays the pressed key with the mouse:<span style=\"background-color: #ffffff;\"> 4 = Key [Shift]; 8 = Key [Ctrl]; 12 = Keys [Ctrl] + [Shift].<\/span><br \/>\n<span style=\"font-weight: bold;\">MouseX<\/span>:Displays the X position where the mouse was clicked on screen.<br \/>\n<span style=\"font-weight: bold;\">MouseY<\/span>: Displays the Y position where the mouse was clicked on screen.<\/p>\n<p>Example:<br \/>\n<br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">MsgBox &#8220;Coordinate X: &#8221; &#038; MouseX &#038; vbNewLine &#038; &#8220;Coordinate Y: &#8221; &#038; MouseY<\/span><\/p>\n<p><span id=\"anchor_div\"> <\/span><span id=\"anchor_div\"> <\/span><span id=\"anchor_div\"> <\/span><span id=\"anchor_div\"> <\/span><span id=\"anchor_div\"> <\/span><span id=\"anchor_div\"> <\/span><span style=\"color: #3366ff; font-size: large;\"><span style=\"font-weight: bold; font-style: italic;\">Exercises:<\/span><\/span><\/p>\n<p><span id=\"anchor_div\"> <\/span>3. By clicking with the left button on screen, display a calendar on the click&#8217;s<span style=\"background-color: #ffffff;\"> x and y coordinates.<\/span><br \/>\n4. By right-clicking on screen, open the color pallet (ShowColorPicker) and change <span style=\"background-color: #ffffff;\">screen background&#8217;s color.<\/span><\/p>\n<p><span style=\"color: #3366ff; font-size: large;\"><span style=\"font-weight: bold;\">OnPreShow (Arg) <\/span><\/span><\/p>\n<p>This occurs before the screen is displayed. The <span style=\"font-weight: bold;\">Arg <\/span>variable receives the content from the OpenScreen() method&#8217;s Arg parameter, which generates this event.<\/p>\n<p>Example:<\/p>\n<p>In a button on the home screen, we inserted the script below, where the word &#8220;scrap&#8221; is the Arg parameter.<\/p>\n<pre>\r\n<br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">Sub CommandButton1_Click()<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">Application.GetFrame(\"\").OpenScreen(\"Screen1\"), \"Scrap\"<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">End Sub<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">In the OnPreShow event from Screen1, we display Arg on a message box:<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">Sub Screen1_OnPreShow(Arg)<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">\u00a0\u00a0\u00a0 MsgBox Arg\u00a0\u00a0\u00a0 <\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">End Sub<\/span><\/pre>\n<p><span id=\"anchor_div\"> <\/span><span style=\"font-weight: bold; font-style: italic; font-size: large;\"><span style=\"color: #3366ff;\">Exercises:<\/span><\/span><\/p>\n<p>5. On a screen, create a setpoint and a button to call a second screen. Pass what was typed in the setpoin<span style=\"background-color: #ffffff;\">t t<\/span>hrough Arg parameter.<br \/>\n6. The second screen must show the Arg parameter on a display.<br \/>\n7. Create an Xcontrol with an Engine design, named XEngine.<br \/>\n8. Input 3 XEngines on the screen.<br \/>\n9. By clicking on XEngine, a screen must open (always the same screen) and a display of this second screen must show the clicked XEngine&#8217;s name.<\/p>\n<p><span style=\"color: #990099; font-weight: bold; font-size: large;\">Setpoint Events<\/span><br \/>\n<span style=\"font-size: large;\"><br style=\"color: #3366ff; font-weight: bold;\" \/><span style=\"color: #3366ff; font-weight: bold;\">Validate (Cancel, NewValue)<\/span><\/span><\/p>\n<p>This occurs after the testing of the SetPoint&#8217;s limits and before SetPoint&#8217;s value <span style=\"background-color: #ffffff;\">is<\/span> sent to the tag. This event&#8217;s purpose is to enable the user to cancel the sending of the SetPoint&#8217;s value to the tag. The old value can be accessed through the SetPoint&#8217;s Value Property.<br \/>\n<span style=\"font-weight: bold;\">Cancel<\/span>: Boolean that indicates if the operation of assigning SetPoint&#8217;s value to the tag must be canceled.\u00a0 (Cancel = True). Default is False<br \/>\n<span style=\"font-weight: bold;\">NewValue<\/span>:\u00a0 the value that is being rated.<\/p>\n<p>Example:<\/p>\n<pre><span style=\"font-family: Courier New; background-color: #cccccc;\">Sub Setpoint1_Validate(Cancel, NewValue)<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">' Displays a MsgBox that asks the user if they want to use the new value typed in the SetPoint<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">message = \"Current Value: \" & Value & vbnewline & \"New Value: \" & NewValue & vbnewline & \"Accept new value?\"<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">If MsgBox(message, vbQuestion+vbYesNo, \"Validate Event\")=vbNo Then <\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">\u00a0\u00a0\u00a0 Cancel = True<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">End If<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">End Sub<\/span>\r\n<span style=\"font-weight: bold; font-style: italic; font-size: large;\"><br style=\"color: #3366ff;\" \/><span id=\"anchor_div\" style=\"color: #3366ff;\"> <\/span><span style=\"color: #3366ff;\">Exercises:<\/span><\/span><\/pre>\n<p>10. Insert a setpoint and a display<span style=\"background-color: #ffffff;\"> on <\/span>screen. Link both to the same internal tag.<br \/>\n11. If the value typed in the SetPoint is different from 10, 20 or 30, a message must be displayed to the user telling them that the value is not allowed. The value must not be passed to the tag.<\/p>\n<p><span style=\"font-weight: bold; font-size: large;\"><span style=\"color: #990099;\">E3Browser Events<\/span><\/span><\/p>\n<p><span style=\"font-size: large;\"><span style=\"color: #3366ff; font-weight: bold;\">OnDrawRow (Selected, Line, RowTextColor, RowBackColor)<\/span><\/span><\/p>\n<p><span style=\"font-weight: bold;\">Selected<\/span>:\u00a0 indicates if the row is selected;<br \/>\n<span style=\"font-weight: bold;\">Line<\/span>: indicates the number of the row being drawn;<br \/>\n<span style=\"font-weight: bold;\">RowTextColor<\/span>:\u00a0 indicates row&#8217;s text color;<br \/>\n<span style=\"font-weight: bold;\">RowBackColor<\/span>: indicates text&#8217;s background color.<br \/>\nIf the color is changed in this event, this change will be used by E3Browser in the <span style=\"background-color: #ffffff;\">row design.<\/span> If GetColumnValue() method is called<span style=\"background-color: #ffffff;\">\u00a0 from inside the event<\/span>, the values returned will be from the row being designed, and not from the selected row.<\/p>\n<p>Example:<\/p>\n<p><span style=\"background-color: #cccccc; font-family: Courier New;\">Status = GetColumnValue(1)<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">If Status=0 then<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">\u00a0\u00a0\u00a0 RowTextColor = RGB(255,0,0) &#8216;red<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">Else<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">RowTextColor = RGB(255,0,0) &#8216;green<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">End if<\/span><br \/>\n<span style=\"font-size: large;\"><br style=\"color: #3366ff; font-weight: bold; font-style: italic;\" \/><span style=\"color: #3366ff; font-weight: bold; font-style: italic;\">Exercises:<\/span><\/span><\/p>\n<p>12. Insert a Database object in the application and configure it.<br \/>\n13. Create a demonstration tag.<br \/>\n14. Insert an alarm to the demonstration tag.<br \/>\n15. Save the alarms in the Database.<br \/>\n16. Display the alarm data in the E3Browser.<br \/>\n17. If the record is an alarm entry, its color must be red. If it is alarm acknowledgement, its color must be blue. If it is an alarm return, its color must be black.<\/p>\n<p><span style=\"font-size: large;\"><br style=\"color: #990099; font-weight: bold;\" \/><span style=\"color: #990099; font-weight: bold;\">E3Chart Events<\/span><\/span><\/p>\n<p><span style=\"font-size: large;\"><span style=\"color: #3366ff; font-weight: bold;\">OnLegendClick(Row, Col, RowData)<\/span><\/span><\/p>\n<p>This occurs when the user clicks on a legend row. <span style=\"font-weight: bold;\">Row <\/span>and <span style=\"font-weight: bold;\">Col <\/span>parameters indicate, respectively, the row and the column that were clicked. RowData parameter is the index of the legend&#8217;s pen where the click occurred.<\/p>\n<p>Example:<\/p>\n<p><span style=\"background-color: #cccccc; font-family: Courier New;\">Sub E3Chart1_OnLegendClick(Row, col, RowData)<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">MsgBox &#8220;<span style=\"background-color: #cccccc;\">Name of the pen<\/span>: &#8221; &#038; Pens.Item(RowData).name<\/span><br style=\"background-color: #cccccc; font-family: Courier New;\" \/><span style=\"background-color: #cccccc; font-family: Courier New;\">End Sub<\/span><\/p>\n<p><span style=\"font-size: large;\"><span style=\"font-weight: bold; font-style: italic; color: #3366ff;\">Exercises:<\/span><\/span><\/p>\n<p>18. Create a chart on screen with at least 3 pens. Display the legend.<br \/>\n19. In OnStartRunning event from E3Chart, enter the code below so that all the pens always appear:<br \/>\n<span style=\"font-family: Courier New; background-color: #cccccc;\">Sub E3Chart1_OnStartRunning()<\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">\u00a0\u00a0\u00a0 Legend.ShowAllPens = True\u00a0\u00a0\u00a0 <\/span><br style=\"font-family: Courier New; background-color: #cccccc;\" \/><span style=\"font-family: Courier New; background-color: #cccccc;\">End Sub<\/span><br \/>\n<span style=\"background-color: #ffffff;\">20. By clicking on a pen in the legend, display a menu with the options Visible and Color (Select Menu).<\/span><br style=\"background-color: #ffffff;\" \/><span style=\"background-color: #ffffff;\">21. By clicking on the Visible option, the pen must appear\/disappear.<\/span><br style=\"background-color: #ffffff;\" \/><span style=\"background-color: #ffffff;\">22. By <\/span>clicking on the Color option, a color palette must open, where it is possible to choose the pen&#8217;s new color.<\/p>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/Lesson4.zip\">Lesson4.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Screen EventsKeyDown (KeyCode, Shift) This occurs at the moment a button is pressed, regardless of the focus on the screen.KeyCode: Integer that identifies the ASCII character of the pressed button&#8230;<br \/>\nAutor<br \/>\nPaula Pereira En\u00e9as<\/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":[763],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Basic VBScript for Elipse E3: Lesson 4 - Basic VBScript for Elipse E3: Lesson 4 - Events[:] - 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\/basic-vbscript-for-elipse-e3-lesson-4-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic VBScript for Elipse E3: Lesson 4 - Events\" \/>\n<meta property=\"og:description\" content=\"Screen EventsKeyDown (KeyCode, Shift) This occurs at the moment a button is pressed, regardless of the focus on the screen.KeyCode: Integer that identifies the ASCII character of the pressed button... Autor Paula Pereira En\u00e9as\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/\" \/>\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:34:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-29T19:59:14+00:00\" \/>\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=\"9 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\/basic-vbscript-for-elipse-e3-lesson-4-events\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Basic VBScript for Elipse E3: Lesson 4 &#8211; Events\",\"datePublished\":\"2019-03-25T20:34:45+00:00\",\"dateModified\":\"2019-05-29T19:59:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/\"},\"wordCount\":1664,\"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\/basic-vbscript-for-elipse-e3-lesson-4-events\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/\",\"name\":\"[:pt]Basic VBScript for Elipse E3: Lesson 4 - Events[:en]Basic VBScript for Elipse E3: Lesson 4 - Events[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:34:45+00:00\",\"dateModified\":\"2019-05-29T19:59:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic VBScript for Elipse E3: Lesson 4 &#8211; Events\"}]},{\"@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":"Basic VBScript for Elipse E3: Lesson 4 - Basic VBScript for Elipse E3: Lesson 4 - Events[:] - 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\/basic-vbscript-for-elipse-e3-lesson-4-events\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Basic VBScript for Elipse E3: Lesson 4 - Events[:en]Basic VBScript for Elipse E3: Lesson 4 - Events[:] - Elipse Knowledgebase","og_description":"[:pt]Screen EventsKeyDown (KeyCode, Shift) This occurs at the moment a button is pressed, regardless of the focus on the screen.KeyCode: Integer that identifies the ASCII character of the pressed button... Autor Paula Pereira En\u00e9as[:en]Screen EventsKeyDown (KeyCode, Shift) This occurs at the moment a button is pressed, regardless of the focus on the screen.KeyCode: Integer that identifies the ASCII character of the pressed button... Autor Paula Pereira En\u00e9as[:]","og_url":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:34:45+00:00","article_modified_time":"2019-05-29T19:59:14+00:00","author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Basic VBScript for Elipse E3: Lesson 4 &#8211; Events","datePublished":"2019-03-25T20:34:45+00:00","dateModified":"2019-05-29T19:59:14+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/"},"wordCount":1664,"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\/basic-vbscript-for-elipse-e3-lesson-4-events\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/","url":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/","name":"[:pt]Basic VBScript for Elipse E3: Lesson 4 - Events[:en]Basic VBScript for Elipse E3: Lesson 4 - Events[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:34:45+00:00","dateModified":"2019-05-29T19:59:14+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/basic-vbscript-for-elipse-e3-lesson-4-events\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Basic VBScript for Elipse E3: Lesson 4 &#8211; Events"}]},{"@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\/1361"}],"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=1361"}],"version-history":[{"count":4,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1361\/revisions"}],"predecessor-version":[{"id":6736,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1361\/revisions\/6736"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=1361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=1361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=1361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}