{"id":170,"date":"2012-05-07T15:15:39","date_gmt":"2012-05-07T19:15:39","guid":{"rendered":"https:\/\/jeremystein.com\/brain\/?p=170"},"modified":"2012-11-01T16:29:41","modified_gmt":"2012-11-01T20:29:41","slug":"landesk-vbs-script-display-message-window-in-front","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/landesk-vbs-script-display-message-window-in-front\/","title":{"rendered":"LANDesk VBS script display message window in front"},"content":{"rendered":"<p>If you have a VBS script running a WScript.echo command to display a message to the user, the message may just blink in the task bar and go unnoticed by the user.  To ensure that the message comes into focus, you can try this nasty approach of temporarily minimizing all other windows:<\/p>\n<pre>Dim Shl :Set Shl = CreateObject(\"Shell.Application\")\r\nShl.MinimizeAll\r\nWScript.Echo \"Important: you should do X.\"\r\nShl.UndoMinimizeAll<\/pre>\n<p><strong>Update:<\/strong> I&#8217;ve learned that a better way to solve this problem is just to use MsgBox with the vbSystemModal parameter:<\/p>\n<pre>MsgBox \"Important: you should do X.\", vbSystemModal<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you have a VBS script running a WScript.echo command to display a message to the user, the message may just blink in the task bar and go unnoticed by the user. To ensure that the message comes into focus, you can try this nasty approach of temporarily minimizing all other windows: Dim Shl :Set [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-windows-batch-files"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}