A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

"animator.hta" has stopped working!



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old September 26th 13, 01:41 AM posted to alt.windows7.general
Peter Jason
external usenet poster
 
Posts: 2,310
Default "animator.hta" has stopped working!

Win7 64bit SP1

Suddenly it just gives the error

"animator.hta is not a valid Win32 application."

Peter
Ads
  #2  
Old September 26th 13, 03:00 AM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default "animator.hta" has stopped working!

On Thu, 26 Sep 2013 10:41:50 +1000, Peter Jason wrote:

Win7 64bit SP1

Suddenly it just gives the error

"animator.hta is not a valid Win32 application."

Peter


Come on, give us a clue.

What program are you running? What is it trying to do?

I suspect you just found a bad website.

http://en.wikipedia.org/wiki/HTML_Application

--
Gene E. Bloch (Stumbling Bloch)
  #3  
Old September 26th 13, 04:14 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default "animator.hta" has stopped working!

Peter Jason wrote:

Win7 64bit SP1

Suddenly it just gives the error


And just what is "it"? HTAs are applications, not the OS. You ran an
application and then got this error. Is it a secret application? You
don't know that it got started (i.e., it's a hidden program but then why
would it need to hide from you unless it was malware)?

"animator.hta is not a valid Win32 application."


So what is this "animator" application that you started? Who wrote it?
From where did you get it? What does it do?

HTA = HTML Application

The "application" requires Internet Explorer's libraries to run.

http://en.wikipedia.org/wiki/HTML_Application

If somehow you removed part or all of Internet Explorer than HTAs won't
run, too. It's possible the HTA is coded for an older version of the IE
libs. You updated to a later version of IE and now the HTAs you
installed won't run. For that, you'll have to discuss the problem with
whomever wrote the HTA to get them to update it to use the new libs for
the new version of IE.

So did you recently update to a later version of IE? Might it be IE10?
  #4  
Old September 26th 13, 04:36 AM posted to alt.windows7.general
Peter Jason
external usenet poster
 
Posts: 2,310
Default "animator.hta" has stopped working!

On Wed, 25 Sep 2013 19:00:40 -0700, "Gene E.
Bloch" wrote:

On Thu, 26 Sep 2013 10:41:50 +1000, Peter Jason wrote:

Win7 64bit SP1

Suddenly it just gives the error

"animator.hta is not a valid Win32 application."

Peter


Come on, give us a clue.

What program are you running? What is it trying to do?

I suspect you just found a bad website.

http://en.wikipedia.org/wiki/HTML_Application





Here it is:

********


'====================animator.hta=================
htmlheadtitleAnimator/title/head
bodyscript type="text/vbs"
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "img src=""" & file.name &
""""
end if
next
/script/body/html
'==============================================

********





It's been working well for months, but now it's
ground to a halt!

I have numerous copies wotking in various image
folders, and they all don't work.




  #5  
Old September 26th 13, 05:08 AM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default "animator.hta" has stopped working!

On Thu, 26 Sep 2013 13:36:44 +1000, Peter Jason wrote:

On Wed, 25 Sep 2013 19:00:40 -0700, "Gene E.
Bloch" wrote:

On Thu, 26 Sep 2013 10:41:50 +1000, Peter Jason wrote:

Win7 64bit SP1

Suddenly it just gives the error

"animator.hta is not a valid Win32 application."

Peter


Come on, give us a clue.

What program are you running? What is it trying to do?

I suspect you just found a bad website.

http://en.wikipedia.org/wiki/HTML_Application


Here it is:

********

'====================animator.hta=================
htmlheadtitleAnimator/title/head
bodyscript type="text/vbs"
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "img src=""" & file.name &
""""
end if
next
/script/body/html
'==============================================

********

It's been working well for months, but now it's
ground to a halt!

I have numerous copies wotking in various image
folders, and they all don't work.


Go to a VBS newsgroup or an HTML or browser newsgroup.

Also, try improving the indenting & layout of that brief piece of code,
just to make it more readable to a human.

I am not a VBS programmer lately, and I've never worked with HTA, so I
won't give any advice.

Well, I'll give one piece of advice: try running it in a different
browser, or change your default browser back to what it was yesterday.
(Yes, that's two pieces...)

--
Gene E. Bloch (Stumbling Bloch)
  #6  
Old September 26th 13, 05:37 AM posted to alt.windows7.general
Peter Jason
external usenet poster
 
Posts: 2,310
Default "animator.hta" has stopped working!

On Wed, 25 Sep 2013 21:08:17 -0700, "Gene E.
Bloch" wrote:

On Thu, 26 Sep 2013 13:36:44 +1000, Peter Jason wrote:

On Wed, 25 Sep 2013 19:00:40 -0700, "Gene E.
Bloch" wrote:

On Thu, 26 Sep 2013 10:41:50 +1000, Peter Jason wrote:

Win7 64bit SP1

Suddenly it just gives the error

"animator.hta is not a valid Win32 application."

Peter

Come on, give us a clue.

What program are you running? What is it trying to do?

I suspect you just found a bad website.

http://en.wikipedia.org/wiki/HTML_Application


Here it is:

********

'====================animator.hta=================
htmlheadtitleAnimator/title/head
bodyscript type="text/vbs"
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "img src=""" & file.name &
""""
end if
next
/script/body/html
'==============================================

********

It's been working well for months, but now it's
ground to a halt!

I have numerous copies wotking in various image
folders, and they all don't work.


Go to a VBS newsgroup or an HTML or browser newsgroup.

Also, try improving the indenting & layout of that brief piece of code,
just to make it more readable to a human.

I am not a VBS programmer lately, and I've never worked with HTA, so I
won't give any advice.

Well, I'll give one piece of advice: try running it in a different
browser, or change your default browser back to what it was yesterday.
(Yes, that's two pieces...)



Come to think of it, a virus-checker I used to get
rid of some adware scrambled my Firefox settings
and I had to reset everything. I'd better check
it further.
  #7  
Old September 26th 13, 05:56 AM posted to alt.windows7.general
Paul
external usenet poster
 
Posts: 18,275
Default "animator.hta" has stopped working!

Peter Jason wrote:
On Wed, 25 Sep 2013 21:08:17 -0700, "Gene E.
Bloch" wrote:

On Thu, 26 Sep 2013 13:36:44 +1000, Peter Jason wrote:

On Wed, 25 Sep 2013 19:00:40 -0700, "Gene E.
Bloch" wrote:

On Thu, 26 Sep 2013 10:41:50 +1000, Peter Jason wrote:

Win7 64bit SP1

Suddenly it just gives the error

"animator.hta is not a valid Win32 application."

Peter
Come on, give us a clue.

What program are you running? What is it trying to do?

I suspect you just found a bad website.

http://en.wikipedia.org/wiki/HTML_Application
Here it is:

********

'====================animator.hta=================
htmlheadtitleAnimator/title/head
bodyscript type="text/vbs"
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "img src=""" & file.name &
""""
end if
next
/script/body/html
'==============================================

********

It's been working well for months, but now it's
ground to a halt!

I have numerous copies wotking in various image
folders, and they all don't work.

Go to a VBS newsgroup or an HTML or browser newsgroup.

Also, try improving the indenting & layout of that brief piece of code,
just to make it more readable to a human.

I am not a VBS programmer lately, and I've never worked with HTA, so I
won't give any advice.

Well, I'll give one piece of advice: try running it in a different
browser, or change your default browser back to what it was yesterday.
(Yes, that's two pieces...)



Come to think of it, a virus-checker I used to get
rid of some adware scrambled my Firefox settings
and I had to reset everything. I'd better check
it further.


Some of the security is pretty screwy in Windows.

Firefox uses Internet Explorer security settings, so
in theory, changing a "security level" in the Internet
Explorer security settings, can affect Firefox. This
was a decision by Firefox, to only have one set of
controls, rather than having another two thousand
registry entries for Firefox as well.

Paul
  #8  
Old September 26th 13, 06:59 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default "animator.hta" has stopped working!

Just how are you starting this HTA? By double-clicking on it in Windows
Explorer? If so, does the .hta filetype has a handler associated with
it? In a command shell, when you run:

assoc .hta

what does it tell you is the filetype handler? Is it htafile? If so,
what is the "open" action defined for the htafile filetype? From the
above command, you should get:

..hta=htafile

Then you go into the registry to find what actions are defined for the
htafile filetype. In regedit, go to:

HKEY_CLASSES_ROOT\htafile\Shell

Under there should be a subkey for the action, like "Open" under which
is another subkey called "Command" for the command to run the handler
for that filetype. So under:

HKEY_CLASSES_ROOT\htafile\Shell\Open\Command

what is the default data item's value? I have:

C:\Windows\SysWOW64\mshta.exe "%1" %*

That means the .hta file gets passed as the first replaceable parameter
in the command line. They've enclosed it in double-quotes just in case
the path to the .hta file or the filename itself has space characters.
The %* means to pass the remaining command line parameters (but notice
it isn't enclosed by double-quotes). If double-clicking on an .hta
file, I would expect only the %1 to have a non-blank value, anyway,
which is the path and filename of the .hta file on which you double
clicked.

Is the mshta.exe found in the path specified in the registry for this
handler? If you cannot see it in that path using Windows Explorer, use
the attrib.exe in a command shell to check if the hidden or system file
attributes were set on it (they shouldn't be). Some rogueware does this
where it first sets the hidden or system file attributes, or both, on
many files, might rename them, and some nasty rogues (ransonware) will
encrypt the file(s) and hold them for ransom until you pay for their
"anti-virus" program to remove the infection (that is their doing).
  #9  
Old September 26th 13, 07:10 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default "animator.hta" has stopped working!

Peter Jason wrote:

Here it is:

********

'====================animator.hta=================
html
head
titleAnimator/title
/head
body
script type="text/vbs"
set fso=CreateObject("Scripting.FileSystemObject")
set fldr=fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4))=".gif" then
document.write "img src=""" & file.name & """"
end if
next
/script
/body
/html
'==============================================

********


Think about your starter post and consider just how anyone would have
not a clue what you were asking about.

I'll have to assume the VBS syntax for the for-loop is correct (i.e.,
that it is terminated with a 'next' statement). Why is there no HTA
Application object tag in the head section? As I recall, the HEAD
section should have an HTA tag, like:

head
HTA:APPLICATION
APPLICATIONNAME="Animator"
SYSMENU="yes"
/HTA:APPLICATION
titleAnimator
/title
/head

See:
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

Maybe if you're not needing access to any members of the HTA then you
can omit this tag.

I first think you need to check if .hta has an associated handler as
mentioned in my other reply.
  #10  
Old September 26th 13, 07:18 AM posted to alt.windows7.general
Peter Jason
external usenet poster
 
Posts: 2,310
Default "animator.hta" has stopped working!

On Thu, 26 Sep 2013 00:59:37 -0500, VanguardLH
wrote:

Just how are you starting this HTA?


All I know is that it had an exe extension, and
when I copied it into a folder with GIF files and
clicked on it then all the gifs were animated all
at once.


By double-clicking on it in Windows
Explorer? If so, does the .hta filetype has a handler associated with
it? In a command shell, when you run:

assoc .hta

what does it tell you is the filetype handler? Is it htafile? If so,
what is the "open" action defined for the htafile filetype? From the
above command, you should get:

.hta=htafile

Then you go into the registry to find what actions are defined for the
htafile filetype. In regedit, go to:

HKEY_CLASSES_ROOT\htafile\Shell

Under there should be a subkey for the action, like "Open" under which
is another subkey called "Command" for the command to run the handler
for that filetype. So under:

HKEY_CLASSES_ROOT\htafile\Shell\Open\Command

what is the default data item's value? I have:

C:\Windows\SysWOW64\mshta.exe "%1" %*

That means the .hta file gets passed as the first replaceable parameter
in the command line. They've enclosed it in double-quotes just in case
the path to the .hta file or the filename itself has space characters.
The %* means to pass the remaining command line parameters (but notice
it isn't enclosed by double-quotes). If double-clicking on an .hta
file, I would expect only the %1 to have a non-blank value, anyway,
which is the path and filename of the .hta file on which you double
clicked.

Is the mshta.exe found in the path specified in the registry for this
handler? If you cannot see it in that path using Windows Explorer, use
the attrib.exe in a command shell to check if the hidden or system file
attributes were set on it (they shouldn't be). Some rogueware does this
where it first sets the hidden or system file attributes, or both, on
many files, might rename them, and some nasty rogues (ransonware) will
encrypt the file(s) and hold them for ransom until you pay for their
"anti-virus" program to remove the infection (that is their doing).

  #11  
Old September 26th 13, 08:41 AM posted to alt.windows7.general
JustMe
external usenet poster
 
Posts: 1
Default "animator.hta" has stopped working!


Reformatted and tested okay on my system...


'====================animator.hta=================
htmlheadtitleAnimator/title/headbody
script type="text/vbs"
set fso = CreateObject("Scripting.FileSystemObject")
set fldr = fso.GetFolder(".")
for each file in fldr.files
if lcase(right(file.name,4)) = ".gif" then
document.write "img src=""" & file.name & """"
end if
next
/script/body/html
'=================================================


1) Dialog window is: HTML Application Host Window Class
2) Relies on "Internet Explorer_Server" working properly.
3) Script must have a hta extension. ie: animator.hta
4) Script must be placed in the folder containing gif files.
5) When script is double-clicked, a popup window will
display the gifs inside it. (upon successful execution)



  #12  
Old September 26th 13, 08:08 PM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default "animator.hta" has stopped working!

Peter Jason wrote:

VanguardLH wrote:

Just how are you starting this HTA?


All I know is that it had an exe extension, and when I copied it into
a folder with GIF files and clicked on it then all the gifs were
animated all at once.


HTA programs are HTML code to be submitted to and ran by the mshta.exe
interpreter. You should be using the htafile handler, not the one for
exefile.

You'll need to fix your filetype associations. Or just try renaming
from animator.exe to animator.hta and then see what happens when you
double-click in Windows Explorer in an .hta filetype.
  #13  
Old September 27th 13, 01:18 AM posted to alt.windows7.general
Peter Jason
external usenet poster
 
Posts: 2,310
Default "animator.hta" has stopped working!

On Thu, 26 Sep 2013 14:08:10 -0500, VanguardLH
wrote:

Peter Jason wrote:

VanguardLH wrote:

Just how are you starting this HTA?


All I know is that it had an exe extension, and when I copied it into
a folder with GIF files and clicked on it then all the gifs were
animated all at once.


HTA programs are HTML code to be submitted to and ran by the mshta.exe
interpreter. You should be using the htafile handler, not the one for
exefile.

You'll need to fix your filetype associations. Or just try renaming
from animator.exe to animator.hta and then see what happens when you
double-click in Windows Explorer in an .hta filetype.


I tried to get back the *.exe extension by fixing
the "file association" to "Windows Command
Processor" and now I can't change this back again,
even from the Set Associations window. The HTA
alwys opens with the CMD black screen in the
centre! How do I reverse this?
  #14  
Old September 27th 13, 03:07 AM posted to alt.windows7.general
Char Jackson
external usenet poster
 
Posts: 10,449
Default "animator.hta" has stopped working!

On Fri, 27 Sep 2013 10:18:32 +1000, Peter Jason wrote:

I tried to get back the *.exe extension by fixing
the "file association"


While filename extensions and their associated handlers have a relationship,
they are not the same thing. You don't change a filename extension by
changing the associated handler. Instead, you simply rename the file.

--

Char Jackson
  #15  
Old September 27th 13, 04:39 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default "animator.hta" has stopped working!

Peter Jason wrote:

On Thu, 26 Sep 2013 14:08:10 -0500, VanguardLH
wrote:

Peter Jason wrote:

VanguardLH wrote:

Just how are you starting this HTA?

All I know is that it had an exe extension, and when I copied it into
a folder with GIF files and clicked on it then all the gifs were
animated all at once.


HTA programs are HTML code to be submitted to and ran by the mshta.exe
interpreter. You should be using the htafile handler, not the one for
exefile.

You'll need to fix your filetype associations. Or just try renaming
from animator.exe to animator.hta and then see what happens when you
double-click in Windows Explorer in an .hta filetype.


I tried to get back the *.exe extension by fixing
the "file association" to "Windows Command
Processor" and now I can't change this back again,
even from the Set Associations window. The HTA
alwys opens with the CMD black screen in the
centre! How do I reverse this?


Why were you trying to "get back the .exe" association when you
should've been renaming the .exe file to .hta and then double-click on
the .hta file to use the htafile handler for that filetype? Even if
there was a problem with the htafile definition in the registry, why
were you putzing around with the exefile definition?

I'm not sure what you used. By "Set Associations" do you mean you went
to Control Panel - Programs - Default Programs (enter "default
programs" in the Start menu searchbox) and then clicked on "Associate a
file type or protocol with a program"? Or were you in a command shell
and ran the assoc.exe program?

In the former Control Panel method, you won't even see .exe listed as a
filetype so how were you able to change it? Did you mean you used this
applet to change the *.hta* association? Since you were told to
associate .hta files with the mshta.exe program, why did you instead
choose to associate it with cmd.exe (which I'm assuming is what you
meant by "Windows Command Processor" instead of command shell aka
command prompt)? If you picked the wrong handler for the .hta filetype
association then why not use the same procedure you used before to
instead associate the mshta.exe program as the .hta handler?
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 12:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.