{"id":1043,"date":"2010-01-27T09:47:32","date_gmt":"2010-01-27T09:47:32","guid":{"rendered":"http:\/\/www.mjtnet.com\/blog\/?p=1043"},"modified":"2010-01-27T09:47:32","modified_gmt":"2010-01-27T09:47:32","slug":"why-does-my-script-hang-and-never-continue","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2010\/01\/27\/why-does-my-script-hang-and-never-continue\/","title":{"rendered":"Why Does My Script &#8220;Hang&#8221; and Never Continue?"},"content":{"rendered":"<p>This is a variation of a question we get regularly.  Usually it turns out that the script is waiting on a WaitWindowOpen line because of a typo in the window title.<\/p>\n<p>WaitWindowOpen, given a window title, will cause the script to wait until a window with that title exists.<\/p>\n<p>If you misspell the window title WaitWindowOpen will wait forever, because a matching window will never appear.<\/p>\n<p>Rather than rely on your typing, you can select the window title from a drop down list.  With the window you want to wait for open on the screen edit your WaitWindowOpen line in the Code Builder by right clicking on it and selecting &#8220;Edit in Code Builder&#8221;.  Now, select the window title from the drop down box. <\/p>\n<p>Remember you can also do a sub-string match using the asterisk:<\/p>\n<p>WaitWindowOpen>Notepad*<\/p>\n<p>This works for all window functions and will match the first window found that <em>contains<\/em> the given text (regardless of case).  So the above will match &#8220;Untitled &#8211; Notepad&#8221; as well as something like &#8220;My Notepad &#8211; MyFile.txt&#8221;.  It will stop at the first one found, so don&#8217;t be too general and try to find something unique.<\/p>\n<p>More advanced users might be interested to know that we&#8217;re adding the ability to use Regular Expressions in the window functions for version 12.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a variation of a question we get regularly. Usually it turns out that the script is waiting on a WaitWindowOpen line because of a typo in the window title. WaitWindowOpen, given a window title, will cause the script to wait until a window with that title exists. If you misspell the window title [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1043"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=1043"}],"version-history":[{"count":2,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1043\/revisions"}],"predecessor-version":[{"id":1046,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1043\/revisions\/1046"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=1043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=1043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=1043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}