Guest AllanC Posted November 2, 2004 Share Posted November 2, 2004 i cant get this to work, but the download part works alone with the progressbar but when i put it together like here with my input boxes, the progressbar will not do any thing and when the file is downloadet it just start over ----------------------------------------------------------------------#Include <GUIConstants.au3>WinClose("Download Time maneger", "")GUICreate("Download Time maneger", 390,250) GUICtrlCreatelabel ("Download 1", 10, 20, 300, 20) global $dl1 = GUICtrlCreateInput ("http://www.ige.dk/files/Battlefield2/BF2-Lanvegas.rar", 10, 35, 200, 20) ;insert link to the fileglobal $place1 = GUICtrlCreateInput ("file.exe", 10, 80, 200, 20) global $knap = GUICtrlCreateButton ("Download file",250,30,100,25) ;download buttonGuiSetState(@SW_SHOW)while 1 $msg = GUIGetMsg() if $msg = $knap then ProgressOn("Progress Meter", "Så meget har den hentet ", "0 percent")$d = guiread($dl1)$p = guiread($place1)$size = InetGetSize($d)$Procent = $size / 100$h = $Procent$aktualsize = 0$i = 0GUISetState (@SW_SHOW) while 1 = 1 if $aktualsize = 0 then InetGet($d,$p, 1, 1) ; -----> filen den henter <----- endif if $aktualsize > $Procent then $OmRegnSize = $aktualsize / 1024 / 1024 $OmregnSize = Round($OmRegnSize, 2) $size1 = $size / 1024 / 1024 $size1 = Round($size1, 2)ProgressSet( $i, $i & " % hentet " & $OmRegnSize & " Mb Af " & $size1 & " Mb") $Procent = $procent + $h $i = $i +1 $aktualsize = FileGetSize($d) elseif $aktualsize = $size then exitloop endif $aktualsize = FileGetSize($d)wendProgressSet(100 , "Done", "Complete")sleep(1000)ProgressOff()endif If $msg = $GUI_EVENT_CLOSE Then ExitLoopwend------------------------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
SlimShady Posted November 2, 2004 Share Posted November 2, 2004 I'm not good with debugging people's script, so I made my own version.Download http://www.autoitscript.com/fileman/users/public/SlimShady/DownloadMngr.au3.Maybe you'll learn things from studying it. Link to comment Share on other sites More sharing options...
Pa Callender Posted October 22, 2006 Share Posted October 22, 2006 (edited) GUIRead($whatever)oÝ÷ Ûú®¢×º·¥Ê+wöÊ®¢×ºÚ"µÍÕRPÝXY ÌÍÝÚ]]Perhaps that's your problem... try it... Damnations - I've just replied to a post that was made TWO years ago : Edited October 22, 2006 by Pa Callender [size="4"]YOU SHALL NOT PARSE!![/size] Link to comment Share on other sites More sharing options...
_Kurt Posted October 25, 2006 Share Posted October 25, 2006 Perhaps that's your problem... try it...Damnations - I've just replied to a post that was made TWO years ago : Umm no this post was NOT made two years ago, that was mearely the date he became a member in Auto-It forums Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 25, 2006 Share Posted October 25, 2006 Nov 2 2004, 09:40 AMDate of SlimShady's last post in this thread. 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