Kyan Posted February 25, 2012 Share Posted February 25, 2012 Hi everyone Someone knows who do I display the progress bar in the taskbar?example:I don't know how to use this code (I me newbie here): http://msdn.microsoft.com/en-us/magazine/dd942846.aspx Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 25, 2012 Share Posted February 25, 2012 It's not the easiest thing, but do a search for ITaskBarList and you'll get some examples. looks useful. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Kyan Posted February 25, 2012 Author Share Posted February 25, 2012 It's not the easiest thing, but do a search for ITaskBarList and you'll get some examples. looks useful.thanks, it has the progress bar in the taskbar Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
Kyan Posted February 25, 2012 Author Share Posted February 25, 2012 works great Its possible change the colour of a normal progress bar? (to yellow, red, in case of abort state) Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2012 Share Posted February 25, 2012 works great Its possible change the colour of a normal progress bar? (to yellow, red, in case of abort state) Use the below function to change the color (State). ; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc Link to comment Share on other sites More sharing options...
Kyan Posted February 25, 2012 Author Share Posted February 25, 2012 (edited) Use the below function to change the color (State). ; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc yeah, works but looses the $PBS_SMOOTH EDIT: this can be implemented with dllcall?: HWND hWnd = m_Progress.GetSafeHwnd(); ::SetWindowTheme(hWnd, NULL, NULL); m_Progress.StepIt(); Edited February 25, 2012 by DiOgO Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2012 Share Posted February 26, 2012 yeah, works but looses the $PBS_SMOOTH EDIT: this can be implemented with dllcall?: HWND hWnd = m_Progress.GetSafeHwnd(); ::SetWindowTheme(hWnd, NULL, NULL); m_Progress.StepIt(); Try adding $PBS_SMOOTH to the function like below: ; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16 + $PBS_SMOOTH,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc Link to comment Share on other sites More sharing options...
Kyan Posted February 26, 2012 Author Share Posted February 26, 2012 Try adding $PBS_SMOOTH to the function like below: ; 1 = Normal(Green Color), 2 = Error(Red Color) 3 = Pause(Yellow Color) Func _SetProgressBar_Color($iProgressBarId, $iState) If @OSBuild < 6000 Then Return SetError(1,0,0); Only works on vista/server08 or higher _SendMessage(GUICtrlGetHandle($iProgressBarId),0x400 + 16 + $PBS_SMOOTH,$iState,0); $PBM_SETSTATE (WM_USER + 16) EndFunc continues without the smooth style Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
nend Posted February 28, 2012 Share Posted February 28, 2012 Hoi DiOgo,I've made a small udf for this function it used AutoItObject to do the trickhttp://www.nendsoftware.nl/Taskbarprogress.zipI've made this a while ago for myself.It has no comment lines in it but it's very easy to know how it works.I've you have trouble to use it let me know and I will make a example code. Link to comment Share on other sites More sharing options...
Kyan Posted March 3, 2012 Author Share Posted March 3, 2012 Hoi DiOgo,I've made a small udf for this function it used AutoItObject to do the trickhttp://www.nendsoftware.nl/Taskbarprogress.zipI've made this a while ago for myself.It has no comment lines in it but it's very easy to know how it works.I've you have trouble to use it let me know and I will make a example code.thanks it uses the $PBS_SMOOTH? Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now