Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

HTA - Supress "Unresponsive Script" dialog

Posted on 2014-01-17
3
Medium Priority
?
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
Bill Prew earned 2000 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 58

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

Industry Leaders: 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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

604 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