Sign in to follow this  
Followers 0
knightrid

Progress Bar Function Fails on Windows 8 only

3 posts in this topic

#1 ·  Posted (edited)

I have a simple function to display a progress meter and it works fine on XP Pro 32-bit, Win7 Enterprise 32-bit, and Win7 Enterprise 64-bit, but there is absolutely no output displayed on a Windows 8 system: 
 
Global $bSilent = False

Func _Lync2013_Progress($sTitle, $sMessage, $iLoopDelay) ; Make a progress bar to inform the user.
        Local $i
    If $bSilent = False Then
        ProgressOn($sTitle, $sMessage, "0 percent")
        For $i = 10 To 100 Step 10
            Sleep($iLoopDelay)
            ProgressSet($i, $i & " percent")
        Next
        ProgressSet(100, "Step completed", "Continuing Installation")
        Sleep(10000)
        ProgressOff()
    Else
        Sleep($timer_min * 3)
    EndIf
EndFunc   ;==>_Lync2013_Progress

_Lync2013_Progress("Searching for Lync 2010","Attempting system cleanup", 60000)

I've used this code successfully before, but never on Windows 8. 

Edited by knightrid

Share this post


Link to post
Share on other sites



Have you tried it with the GUICtrlCreateProgress function instead? I'm wondering if it's something in the ProgressOn function that's not working or something to do with progress bars in general in Win8.

BTW, the function you're using doesn't make a lot of sense the way it's written unless you're just using the progress window to delay the script. Because that's all it's doing. If you just wanted to display a progress bar while you're script is doing something else, a progressbar using the marquee setting would be a better choice.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

I have some forms that I abandoned because I was running low on time and didn't want to deal with the Resources UDF. I think I need to go ahead and implement the forms using the Resources UDF. 

I read several other posts to the forum about people who had problems with specific functions in Windows 8. I was basically using the progress bar as a delay until I had more time to come back and implement my original design. 

The environment I'm in is extremely diverse and I sometimes find functions don't work consistently across the variety of OS configurations that we have. I was going to submit this as a possible bug, but I wanted to bounce it off others to see if they had run into similar issues.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0