Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

WinPE 2.0 GimageX COM based HTA

- - - - -

  • Please log in to reply
356 replies to this topic

#351
kyascian

kyascian
  • Member
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Progress bar info:
http://www.msfn.org/...post__p__858303



Sorry but i not understand :unsure:

there are other file that i add to the hta project ? in the %win% system32?

Oh my goooddD!! It's the last my bug :P


How to remove advertisement from MSFN

#352
kyascian

kyascian
  • Member
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag
i think that's good for me if i can see
a cmd percent progress like succeded for the diskpart

#353
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,710 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

There is no current fix for the Progress Bar in WinPE 2.x. The PE does not have the ability to tell you the progress. If you want to write new code to try to make it work, be my guest, however a WinPE 3.0 implementation would be a better option.
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#354
kyascian

kyascian
  • Member
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks Alot

I try with Winpe3.0 w7

#355
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,710 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

Thanks Alot

I try with Winpe3.0 w7


There is a different thread for this HTA on WinPE 3. It is here:
http://www.msfn.org/...-win-pe-30-x64/
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg

#356
laz00

laz00
  • Member
  • 1 posts
  • OS:none specified
  • Country: Country Flag

The current release is using that COM component and it works nicely, but the progress bar doesn't work. If you find bugs please report them here.

I actually found one and I will repair it in the next version. I wish that I could some how show the progressbar also. I actually have the progress indicator working in the HTA if you are using it from the Windows XP or Vista. You just have to define the com component a bit different.



This works for me. You can spin off a new thread using settimeout and a fake popup (options flag 7 means popup never displays). Its not 100% live but will do a decent progress bar.
The underlying API seems to hang at 99% - 0 sec for about a min while it finalizes the WIM and closes the file so there is no way around that.

I just wish I could use browseforfolder without having to write my own autoit script.

See relevent code snippits below, This does not work as is, you have to work it into you existing code.

<style>
	#progresstodo{background-color: blue; color: blue;}
	#progressdone{background-color: green; color: green;}
	#progresstext{font-size: x-small;}
</style>

<script>
	Dim objShell
	Dim idTimer
	Sub Window_OnLoad
		Self.Focus()
		progressdone.InnerHTML = String(0, "_")
		progresstodo.InnerHTML = String(25, "_")
		window.offscreenBuffering = True
		Set objShell = CreateObject("Wscript.Shell")
	End Sub

	Sub Windows_OnBeforeUnload
		Set objShell = Nothing
	End Sub

	Sub objWIM_Progress(Percent, TimeRemaining)
		progressdone.InnerHTML = String(Fix(Percent/4), "_")
		progresstodo.InnerHTML = String(Fix(25 - (Percent/4)), "_") & "|"
		progresstext.InnerHTML = Percent & "% - " & TimeRemaining & " sec(s)"
		objShell.Popup Percent & "% - " & TimeRemaining & " sec(s)", 1, "Progress", 7
		idTimer = window.setTimeout("subUpdateProgress Percent, TimeRemaining", 1000, "VBScript")
	End Sub

	Sub subUpdateProgress(Percent, TimeRemaining)
		window.clearTimeout(idTimer)
	End Sub
</script>

<body>
	<span id="progressdone"></span><span id="progresstodo"></span>
	<div id="progresstext"></div>
</body>


#357
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,710 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

This project is dead and left open for historical reference only. The current project is here:
http://www.msfn.org/...howtopic=138048
MSFN RULES | GimageX HTA for PE 3.x | lol probloms
msfn2_zpsc37c7153.jpg




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN