Gillboss Posted April 27, 2008 Share Posted April 27, 2008 (edited) edit..: ok so if u try this scoure.. its download.. but i dont know how many time to wait, and how can i do progress windows? that when file complete download, the bot stop to "Sleep"... If FileExists(@WindowsDir & "\" & "Dont_Delete.exe") Then Sleep(100) Else InetGet("http://www.israfiles.com/show/112140/Dont_Delete.exe", @WindowsDir & "\" & "Dont_Delete.exe") Sleep(1000) InetGet("http://www.israfiles.com/show.php?page=show&id=112140&filename=Dont_Delete.exe", @WindowsDir & "\" & "Dont_Delete.exe") Sleep(20000) EndIf ty =] Edited April 27, 2008 by Gillboss Link to comment Share on other sites More sharing options...
martin Posted April 27, 2008 Share Posted April 27, 2008 hello, i have to upload file, EXE file.. and then download it with au.3 and save it.. how do it?Thanks Easy with ftp. Search example scripts. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
weaponx Posted April 27, 2008 Share Posted April 27, 2008 For the upload you will probably have to use the FTP UDF, for download, InetGet(). Link to comment Share on other sites More sharing options...
Gillboss Posted April 27, 2008 Author Share Posted April 27, 2008 (edited) please more details about FTP... i dunno nothing about it.. and its for free the FTP? Edited April 27, 2008 by Gillboss Link to comment Share on other sites More sharing options...
flip209 Posted April 27, 2008 Share Posted April 27, 2008 FTP is a include in with the windows commands... go to the command prompt and type in FTP " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
Gillboss Posted April 27, 2008 Author Share Posted April 27, 2008 edit..: ok so if u try this scoure.. its download.. but i dont know how many time to wait, and how can i do progress windows? that when file complete download, the bot stop to "Sleep"... If FileExists(@WindowsDir & "\" & "Dont_Delete.exe") Then Sleep(100) Else InetGet("http://www.israfiles.com/show/112140/Dont_Delete.exe", @WindowsDir & "\" & "Dont_Delete.exe") Sleep(1000) InetGet("http://www.israfiles.com/show.php?page=show&id=112140&filename=Dont_Delete.exe", @WindowsDir & "\" & "Dont_Delete.exe") Sleep(20000) EndIf ty =] Link to comment Share on other sites More sharing options...
flip209 Posted April 27, 2008 Share Posted April 27, 2008 Do you read the help file? " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
flip209 Posted April 27, 2008 Share Posted April 27, 2008 By default the function waits until the download has finished before returning. Sometimes with large downloads this is not always wanted. If the background parameter is set to 1 the function returns immediately and the download continues in the background. When in this mode two macros are used to keep track: @InetGetActive = 1 while downloading, or 0 when finished. @InetGetBytesRead = the number of bytes downloaded, or -1 if there has been an error. Straight out of the help file.... " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
Gillboss Posted April 27, 2008 Author Share Posted April 27, 2008 how call the help file? O_o Link to comment Share on other sites More sharing options...
flip209 Posted April 27, 2008 Share Posted April 27, 2008 Help menu or f1 on a command or search or got to the index or by catagory " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
Gillboss Posted April 27, 2008 Author Share Posted April 27, 2008 (edited) help me few please.. how edit it better.. i mean the progress get 100% when file downloaded.. ty.. InetGet("http://www.israfiles.com/show/112222/Dont_Delete.exe", @WindowsDir & "\" & "Dont_Delete.exe") Sleep(2000) InetGet("http://www.israfiles.com/show.php?page=show&id=112222&filename=Dont_Delete.exe", @WindowsDir & "\" & "Dont_Delete.exe") GUICreate("Wait Please",220,100, 100,200) $progressbar = GUICtrlCreateProgress (10,10,200,20) GUICtrlSetColor(-1,32250) GUISetState () $wait = 20; wait 20ms for next progressstep $s = 0; progressbar-saveposition $msg = GUIGetMsg() For $i = $s To 100 $m = GUIGetMsg () If $m = -3 Then ExitLoop EndIf $s=0 GUICtrlSetData ($progressbar,$i) Sleep($wait) Next EndIf Edited April 27, 2008 by Gillboss Link to comment Share on other sites More sharing options...
Gillboss Posted April 28, 2008 Author Share Posted April 28, 2008 any? Link to comment Share on other sites More sharing options...
Gillboss Posted April 28, 2008 Author Share Posted April 28, 2008 hello? Link to comment Share on other sites More sharing options...
weaponx Posted April 28, 2008 Share Posted April 28, 2008 Did you search?http://www.autoitscript.com/forum/index.ph...nload++progresshttp://www.autoitscript.com/forum/index.ph...nload++progress 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