Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Downloader

Discussion on Downloader within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
Wink Downloader

Hi everyone , i decided to share some little home-made creation.
This is a downloader.
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$doIng "0"
#Region ### START Koda GUI section ### Form=C:\Users\Utente\Documents\loldownlaod.kxf
$Form2 GUICreate("Downloader"24164, -1, -1)
$Download GUICtrlCreateButton("Download"16167525)
$link GUICtrlCreateInput(""7715024)
$Dprogress GUICtrlCreateProgress(73415024)
$Dspeed GUICtrlCreateLabel("0kb/s"168393624)
$Cp GUICtrlCreateLabel("0"209392224)
GUICtrlCreateLabel("%"219393624)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
         
Case $GUI_EVENT_CLOSE
            
If $doIng "0" Then
            
Exit
         Else
            
InetClose ($do)
            
Sleep (600)
            Exit
         EndIf
         Case 
$Download
            $DLINK 
GUICtrlRead ($link)
            If 
$DLINK "" Then
               MsgBox 
(0,"Error","A link must be inserted")
            Else
            
_Download()
            EndIf
    EndSwitch
WEnd
 Func _Download
()
      
$doIng "1"
      
$est StringRight ($DLINK,3)
      
$nick FileSaveDialog ("Choose a filename","","File in download (*." $est ")",2,"")
      If 
$nick "" Then
         Sleep 
(100)
      Else
      
$do InetGet ($DLINK$nick "." $est,1,1)
      
$doneornot InetGetInfo ($do,2)
      While 
$doneornot False
         $byteD 
InetGetInfo ($do,0)
         
Sleep (1000)
         
$NbyteD InetGetInfo ($do,0)
         
$bps $NbyteD $byteD
         $kbps 
$bps 1024
         
If $kbps 1024 Then
            $kbps 
$kbps /1024
         GuiCtrlSetData 
($Dspeed,$kbps " mbs")
      Else
         
GuiCtrlSetData ($Dspeed,$kbps " kbs")
         EndIf
         
$size InetGetInfo ($do,1)
         
$percent $byteD $size 100
         GUICtrlSetData 
($Dprogress,$percent)
         
GUICtrlSetData ($Cp,$percent)    
         If 
$percent 100 Then
            Sleep 
(700)
            
MsgBox (0,"","Download complete")
            
GUICtrlSetData ($Dprogress,"0")
            
InetClose ($do)
            
$doIng "0"
            
GUICtrlSetData ($Cp,"0")            
            
ExitLoop
         
EndIf         
      
WEnd
      
EndIf

EndFunc 
It still have to do some improovements , use it as you like (I think it's quite useless).
kimboy600 is offline  
Thanks
1 User
Old 08/26/2013, 17:18   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
kimboy600, I saw you uploading some scripts but to me it seems that you don't spent much time with them. You read about that on the internet and then you put it online.

If you would spend some time with your downloader script for example, you could make a downloader that can queue files or read self-made containers.

In my opinion I'd say that this is less than useless because it shows no signs of creativity, but if you think that the speed metre is something new then I have to say that every program has that.
alpines is offline  
Old 08/26/2013, 18:08   #3
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
Quote:
Originally Posted by alpines View Post
kimboy600, I saw you uploading some scripts but to me it seems that you don't spent much time with then. You read about that on the internet and then you put it online.

If you would spend some time with your downloader script for example, you could make a downloader that can queue files or read self-made containers.

In my opinion I'd say that this is less than useless because it shows no signs of creativity, but if you think that the speed metre is something new then I have to say that every program has that.
As you said , i don't spend lot of time in scripting but i don't serach for them online and i put them there , i search a function and then i try to do a script based on that function. I know that the spped metre isn't new , but i use this program as an internet speed metre.
Btw , i'm not creative at all and i'm searching for ideas about any script to do, post it here if you have one.
kimboy600 is offline  
Old 08/26/2013, 18:11   #4

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,257
Sorry, but i can't cancel the download

Good Script but this problem must be solved

PS: Its better when you round the long numbers.. f.E.
$Kbps = "50.2156943"
Round($kbps,2) -> Round to 50.22


MfG
Kilroy.
.yorliK is offline  
Old 08/26/2013, 19:01   #5
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
What you said may be right but I don't think so but it's not the goal to achieve a working script for every function.
I think it's more important to combine these functions to a even bigger script with UDFs and much more.

If you want to improve your skill (reading your texts I don't think you want to) you have to make something better.
An idea to start is for example a container for your Downloader and also a queue, so users can easily load in the container to have all of the links they want to download in the list.
alpines is offline  
Reply


Similar Threads Similar Threads
MR - YT Downloader (Youtube Video Downloader)
08/10/2012 - Coding Releases - 4 Replies
Anleitung: Youtube URL eingeben, Dateityp auswählen und entsprechend beim Zielort der Datei, den Dateityp dran setzen. Beispiel ihr wählt eine MP4 Datei aus und beim abspeichern der Datei müsst ihr MP4 dahinter setzen (namederdatei.mp4) http://img6.imagebanana.com/img/o72zlbei/pic.PNG Download: MR - YT Downloader v1.0.exe Virustotal: Protokoll
[CF] Downloader
11/17/2011 - CrossFire - 1 Replies
hi könnte jemand die file uploaden damit mann schneller downloaden kann? weil ich will net mit 20 kb oder manchmal sogar 9000 b downloaden ..
FOG-Downloader
10/27/2011 - General Gaming Discussion - 3 Replies
ja ._.
J Downloader
05/30/2011 - Technical Support - 4 Replies
Hallo, ich hab eine 4k leitung und lade höchstens 475kb/s runter. Ich hab gehört, das man mit J Downloader mehr laden kann, stimmt das? Meine leitung lässt ja nur 475kb/s zu.
ViP Downloader (1 Day Only)
10/10/2010 - WarRock Hacks, Bots, Cheats & Exploits - 48 Replies
Hallo com, das ist jetzt echt kein fake! Im anhang findet ihr einen ViP Downloader der geht aber nur ein TAG! nicht das andere morgen schreiben OMG nub geht nicht bla bla bla... Der hat opk, aber nach c.a 15 min crasht der daher wen ihr damit powerlvling macht nach jede 10 mins c.a relog machen damit eure kills gespeichert werden. Er hat auch alles andere Chams Wallhack usw. Die die in haben wollen im anhang da ist kein Virus oder Sonstiges drinne.



All times are GMT +1. The time now is 11:19.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.