#include <GUIConstants.au3> ; == GUI generated with Koda == $Form1 = GUICreate("AForm1", 622, 448, 192, 125) $progress = create_progress(128, 128, 193, 21, "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Sunset.jpg") GUISetState(@SW_SHOW) For $i = 0 To 101 Step 10 set_progress( $progress, $i ) ConsoleWrite($i & @CRLF) Sleep(100) Next For $i = 101 To 0 Step -10 set_progress( $progress, $i ) ConsoleWrite($i & @CRLF) Sleep(100) Next While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit Func create_progress($left, $top, $width, $height, $progressbar) If Not FileExists( $progressbar ) Then SetError( 1 ) Return -1 Else $progressbg = GUICtrlCreateLabel( "", $left-2, $top-2, $width+4, $height+4, -1, $WS_EX_CLIENTEDGE ) $progresspic = GUICtrlCreatePic( $progressbar, $left, $top, 0, $height) Dim $data[3] = [$width, $progressbg, $progresspic] Return $data EndIf EndFunc Func set_progress( $progress, $percent ) If Not IsArray( $progress ) Then SetError( 1 ) Return -1 ElseIf $percent < 101 And $percent > -1 Then $percent = $progress[0]*($percent*.01) ConsoleWrite($progress[0]) GUICtrlSetPos ( $progress[2], -1, -1, $percent ) Else Return -1 SetError( 2 ) EndIf EndFunc
Custom Progress Bar
#1
Posted 20 September 2006 - 01:02 AM
AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic!
Check out ConsultingJoe.com
My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed
#2
Posted 20 September 2006 - 01:07 AM
RK
#3
Posted 20 September 2006 - 01:08 AM
Its really simple I'm sure it could be made into a real ctrl or an option could be added to the progress controllol I didn't expect that.. very nice.
RK
AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic!
Check out ConsultingJoe.com
My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed
#4
Posted 20 September 2006 - 03:09 PM
#5
Posted 20 September 2006 - 03:37 PM
Thanks, do you know if there is a way to send it functions like guictrlsetdata()??This is really good. Easy to use also.
AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic!
Check out ConsultingJoe.com
My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed
#6
Posted 20 September 2006 - 03:55 PM
#7
Posted 20 September 2006 - 03:58 PM
so my functions that create the control make it act like a control so instead of my func to set the progress you can just do guictrlsetdata, or guictrldeleteI'm not sure I understand the question, can you explain?
AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic!
Check out ConsultingJoe.com
My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed
#8
Posted 20 September 2006 - 04:35 PM
#9
Posted 20 September 2006 - 05:32 PM
ok, just seeing if there was a way, I was thinking of a dummy control to emulate the real controlYou can't do that.
AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic!
Check out ConsultingJoe.com
My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed
#10
Posted 20 September 2006 - 11:55 PM
BTW: do you know when the menu gui function was add? I love it
AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic!
Check out ConsultingJoe.com
My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




