Computing.Net > Forums > Programming > Show GIF progress meter in HTA

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Show GIF progress meter in HTA

Reply to Message Icon

Name: keridbey
Date: February 5, 2008 at 15:41:21 Pacific
OS: WinXP
CPU/Ram: 1.83 Ghz / 1 Gb
Product: Dell
Comment:

I'm trying to create an HTA on a closed system (so security isn't an issue) that will ping several devices and output the results on the HTA. The actual pinging is handled by a batch file, and everything works; however, I want to display an animated GIF where the data will appear (to give the impression of a progress meter), and I'm not sure how to go about showing the GIF at the moment the button is clicked, then overwrite it with the ping results. Here's the subroutine I've cobbled together:

<script language="VBScript">
Sub DevicePing
Dim WShell
Set WShell = CreateObject("Wscript.Shell")
WShell.Run "cmd.exe /c DevicePing.cmd", 0, True
Const ForReading = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(".\CompleteResults.txt")
strContent = objFile.ReadAll
objFile.Close
strNewText = "<span style='background-color: #FFFF00'>text</span>"
strContent = Replace(strContent, "text", strNewText)
DataArea.InnerHTML = strContent
End Sub
</script>



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: February 5, 2008 at 18:15:28 Pacific
Reply:

What's wrong with feeding an img tag into DataArea.InnerHTML?


0

Response Number 2
Name: keridbey
Date: February 6, 2008 at 04:47:31 Pacific
Reply:

I'm still learning about HTAs, VBS, and HTML in general (trying to learn all three at once is probably silly, but I do like a challenge). Most of what I have learned has come from looking at other people's code (I'm hoping to take a class sometime this summer). What would be a good way to apply the tag so that it appears when the subroutine is called?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Show GIF progress meter in HTA

progress bar in java www.computing.net/answers/programming/progress-bar-in-java/3768.html

Show size of HDD in Mb using batch www.computing.net/answers/programming/show-size-of-hdd-in-mb-using-batch/17383.html

batch - Progress bar while copying www.computing.net/answers/programming/batch-progress-bar-while-copying-/15421.html