Solved

HTA - Supress "Unresponsive Script" dialog

Posted on 2014-01-17
3
448 Views
Last Modified: 2014-01-17
Experts,

I have a GUI HTA that I've put together (with some assistance of other users here on EE), that's a pretty cool little interface into our AD infrastructure (Much like AD Users & Computers).

In any case, I have it running LDAP search queries against our VERY LARGE forest, alot of which are based on a user's last name.  The script works fine, with no issues - but as it's rolling through our multiple domain forest, if it's a pretty common name I'm searching for, it can understandably take a considerate amount of time.

I'm fine with this.  Unfortunately, the MSHTA isn't.  It'll run the script in the background, and eventually give a dialog box stating the script's unresponsive, asking me to terminate or keep running it.

Of course, I just click past it, and let the script finish up what it's doing...  But my question is this now.  Is there a way to inform the HTA shell to ignore the script timeouts?  I'm guessing it's an IE setting, but I'd prefer not to change anything on the desktop if possible, and just add it to the code (vbs).

Something like:

On Error Resume Next AND Shut-Up-About-Unresponsive-Scripts!
     Code
     More Code
On Error Goto 0
0
Comment
Question by:usslindstrom
  • 2
3 Comments
 
LVL 54

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 39789104
Looks like it is controlled by a registry setting.

http://support.microsoft.com/kb/175500

~bp
0
 
LVL 5

Author Closing Comment

by:usslindstrom
ID: 39789132
Thanks BP.  You always come through for me.  :)

Hmmm.   Thinking about being the least intrusive...  Maybe I should have my HTA read the value of that key currently, change it as provided by the KB Article to suppress the warning, then return the original value back once the script has run (whatever it may have been originally to as not override user's settings permanently).
0
 
LVL 54

Expert Comment

by:Bill Prew
ID: 39789172
Thanks, hope that works out, I like the change and restore approach (assuming the script has update privs to registry...).

~bp
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS - Centering an image 2 22
SQL to JSON 14 30
HTML question 2 23
SP result not being displayed 5 35
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question