{"id":160,"date":"2006-12-05T13:51:25","date_gmt":"2006-12-05T13:51:25","guid":{"rendered":"http:\/\/www.mjtnet.com\/blog\/2006\/12\/05\/web-automation-in-vista\/"},"modified":"2006-12-05T13:51:25","modified_gmt":"2006-12-05T13:51:25","slug":"web-automation-in-vista","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2006\/12\/05\/web-automation-in-vista\/","title":{"rendered":"Web Automation in Vista"},"content":{"rendered":"<p>To run <a href=\"\/webrecorder.htm\">WebRecorder<\/a>, or VBScript macros which automate Internet Explorer in Vista (IE7), you will first need to disable &#8220;Protected Mode&#8221;.   Consider this simple VBScript code:<\/p>\n<p>Dim IE<br \/>\nSet IE = CreateObject(&#8220;InternetExplorer.Application&#8221;)<br \/>\nIE.Visible=1<br \/>\nIE.Navigate &#8220;http:\/\/www.mjtnet.com&#8221;<\/p>\n<p>In IE6 and in IE7 under XP this code would create a new IE instance and then navigate it to mjtnet.com.  But Vista adds something to IE called &#8220;Protected Mode&#8221; and for some reason Protected Mode causes the Navigate method to open up a new IE window.  This is most annoying because it means any subsequent code in a script like the one above would fail because IE object refers to the instance created with the CreateObject call, but the page is now in the second instance.<\/p>\n<p>You can disable &#8220;Protected Mode&#8221; in IE under Tools\/Internet Options\/Security.  This puts things back to normal and means code like the above will continue to work.<\/p>\n<p>One known issue with WebRecorder&#8217;s IEAuto.DLL is that the WaitNewIE function hangs when using IE7.  We&#8217;re working on this now.  This function is only used when an action in IE causes a new window\/tab to appear.   Apart from that, once you have disabled &#8220;Protected Mode&#8221; WebRecorder\/IEAuto works fine with IE7\/Vista.<\/p>\n<p>Update: Version 1.78 is now available, fixing the issue with WaitNewIE on IE7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To run WebRecorder, or VBScript macros which automate Internet Explorer in Vista (IE7), you will first need to disable &#8220;Protected Mode&#8221;. Consider this simple VBScript code: Dim IE Set IE = CreateObject(&#8220;InternetExplorer.Application&#8221;) IE.Visible=1 IE.Navigate &#8220;http:\/\/www.mjtnet.com&#8221; In IE6 and in IE7 under XP this code would create a new IE instance and then navigate it to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,4,6,10],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/160"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":0,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}