Solved

HTA - Supress "Unresponsive Script" dialog

Posted on 2014-01-17
3
430 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 51

Accepted Solution

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

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

~bp
0
 
LVL 5

Author Closing Comment

by:usslindstrom
Comment Utility
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 51

Expert Comment

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

~bp
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Read about why website design really matters in today's demanding market.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now