Solved

HTA - Supress "Unresponsive Script" dialog

Posted on 2014-01-17
3
460 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 55

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 55

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

Independent Software Vendors: 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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

724 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