cueclub Posted May 4, 2010 Share Posted May 4, 2010 I created a progress bar with some help file knowledge. But I need to improve it a nit. Here is what I have. $t = 600 $pb = $t * $d6 ProgressOn("test ", "Time remaining till 0", "0 percent") For $i = 0 To 100 Step 1 Sleep($pb) ProgressSet($i, $i & " percent complete") Next ProgressSet(100, "Done", "Complete") Beep(500, 1000) Sleep(600) ProgressOff() Okay now for the silly question. Can I make it so the progress bar is movable. It just sits in the middle of the screen. And wont move until it completes. Thanks in advance. w Link to comment Share on other sites More sharing options...
MrMitchell Posted May 4, 2010 Share Posted May 4, 2010 (edited) It's the last parameter in the ProgressOn() function, the 'opt' parameter:ProgressOn ( "title", "maintext" [, "subtext" [, x pos [, y pos [, opt]]]] )opt[optional] Default is 'always on top/with title'Add up the following options you want:1 = borderless, titleless window2 = Without "always on top" attribute16 = Window can be moved Edited May 4, 2010 by MrMitchell Link to comment Share on other sites More sharing options...
cueclub Posted May 4, 2010 Author Share Posted May 4, 2010 (edited) ah okay great. I looked in the help section but didnt see it. Would it be on the wiki instead? Or where can I find more info on the options for future reference? Thanks for your answer. edit: never mind. It helps if you read the whole help section. Cue Edited May 5, 2010 by cueclub Link to comment Share on other sites More sharing options...
cueclub Posted May 5, 2010 Author Share Posted May 5, 2010 another question. Is there a way to change the color of the bar from green to lets say red/blue whichever? Or is green the standard, Thanx Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 5, 2010 Share Posted May 5, 2010 You can use GUICtrlSetColor to set the color. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
cueclub Posted May 5, 2010 Author Share Posted May 5, 2010 ah ok thanks somdccomputerguy. I had thought to taht, but thought there was somthing else to use for progress bars. Thanks again. Cue Link to comment Share on other sites More sharing options...
cueclub Posted May 5, 2010 Author Share Posted May 5, 2010 Okay I have another quick progress question. I have my progress code wrapped in a function assigned to a hotkey. When I press the hotkey (pause) it pauses as it should and the progress bar does as well, But when I press the pause key again it doesnt do anything. Is there something extra I need to add in there. A separate pause command for the progress bar itself perhaps? I will post the code if it is needed. Just dont have access to it at the moment. Thanks Cue 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