I am trying to make an hta that brings up a simple media player window to play .wmv files stored locally on my hard drive. I have found several examples of script for this on the internet. Below is one example. I save this as temp.hta from Notepad. click on it, it begins to execute, showing the window and the player, but just before it starts to play, an error box pops up (I attached a screen shot of it) with the error shown above. It is bad enough that this box appears, but I can't even make it go away by clicking OK. It just instantly reappears. After a while I realized that if I rapid-fire click on it about 20 times or so I can finally make it disappear. When it does disappear, the video does play exactly how I want it to. But then when I exit the window, the window disappears, but then that same error box apprears again, once again requiring a series of rapid-fire clicks (but only 4 or 5 for some reason at this stage) to make it stay away. Why is it giving me this error?
Start Free Trial