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
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>
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?
Summary: in java, while running the some process, i want place the progress bar in the runing, progress bar indicator should be moved until the process end. i heard that threads will used, but i don't know how...
Summary: Hello again, after having a search around for this I am still non-the wiser... I have a script that gathers the total size of the PC's %systemdrive%. However, it shows It's output in bytes. My questio...
Summary: I've seen numerous posts asking how to show a progress bar while performing an action in an NT shell script. Here's some code for displaying a progress bar while copying files using an NT shell script...