HTML Application (HTA) refresh problem

Author Message
MrYoson

  • Total Posts : 8
  • Scores: 0
  • Reward points : 0
  • Joined: 12/9/2011
  • Status: offline
HTML Application (HTA) refresh problem Friday, December 16, 2011 2:42 AM (permalink)
0
I have an HTA which should be updating a progress bar in real time, here is the code which updates the bar:

dim progress
dim objExec

Set objExec = wshShell.Exec("wscript " & chr(34) & compilePath & chr(34) & " " & startYear & " " & endYear & " " & savePath)

Do until objExec.StdOut.AtEndOfStream
progress = objExec.StdOut.ReadLine()

If Left(progress, 2) = "P2" Then
progress = Mid(progress, 3, 100)
End If

dMeterWrap.style.visibility = "visible"
dMeterValue.style.width = progress
dMeterText.innerHTML = "<b>Processing " & progress & "</b>"
Loop
 
the HTA is frozen while the script runs and updates "dMeter" (the progress bar) once the script is done running.
if i add a msgbox in the Do Loop it refreshes the window but i dont want to have to click a message box every
few seconds.
 
#1
    wenbibi

    • Total Posts : 11
    • Scores: 0
    • Reward points : 0
    • Joined: 12/18/2011
    • Status: offline
    Re:HTML Application (HTA) refresh problem Sunday, December 18, 2011 4:22 PM (permalink)
    0
    My Love

    Without you?I'd be a soul without a purpose. toronto asian escort Without you?I'd be an emotion without a heart toronto asian escorts I'm a face without expression,A heart with no beat. toronto escort Without you by my side,I'm just a flame without the toronto escorts
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9