Solved

HTA - Supress "Unresponsive Script" dialog

Posted on 2014-01-17
3
435 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 52

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 52

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

920 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