SyedHamza Posted January 27, 2021 Posted January 27, 2021 For example, I want to download a image form internet in Music folder but it download image where autoit (.exe is placed. If my autoit (.exe) is placed on desktop, it will download image on desktop too my code: Quote Local $hDownload = InetGet("https://media.com/abc.jpg","abc.jpg", 1 , 1) Sleep(250) Do Sleep(250) Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE) Sleep(1000) Expand i want to download image on my desired location please help....
Nine Posted January 27, 2021 Posted January 27, 2021 Make file name a full path (second parameter). “They did not know it was impossible, so they did it” ― Mark Twain Reveal hidden contents Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Developers Jos Posted January 27, 2021 Developers Posted January 27, 2021 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Expand Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SyedHamza Posted January 28, 2021 Author Posted January 28, 2021 For example, I want to download an image from the internet in the Music folder but it downloads an image where AutoIt (.exe) is placed. If my AutoIt (.exe) is placed on a desktop, it will download the image on the desktop too my code: Quote Local $hDownload = InetGet("https://media.com/abc.jpg","abc.jpg", 1 , 1) Sleep(250) Do Sleep(250) Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE) Sleep(1000) I want to download image on my desired location please help...
Developers Jos Posted January 28, 2021 Developers Posted January 28, 2021 (edited) On 1/28/2021 at 11:55 AM, SyedHamza said: I want to download image on my desired location Expand So what about you add the path to the filename to include the location? .. and why did you start a new topic? ...Just stick with this one please! Jos Edited January 28, 2021 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SyedHamza Posted January 28, 2021 Author Posted January 28, 2021 i am very beginner, you can give me one example?
Developers Jos Posted January 28, 2021 Developers Posted January 28, 2021 On 1/28/2021 at 11:55 AM, SyedHamza said: Local $hDownload = InetGet("https://media.com/abc.jpg","c:/what/ever/directory/abc.jpg", 1 , 1) Expand Come on .... try something and don't claim noobness as a reason not to try and learn! SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SyedHamza Posted January 28, 2021 Author Posted January 28, 2021 it works when we give a full path like Quote C:\Users\bob\Desktop\abc.png Expand but not works when adding a command like @ScriptDir, @StartupDir, etc. I wanna download the file in Startup. How I do it?
Developers Jos Posted January 28, 2021 Developers Posted January 28, 2021 Show us how you tried else we can't see what is wrong! SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SyedHamza Posted January 28, 2021 Author Posted January 28, 2021 Sorry bro. It is working now i forgot to add complete path, i wrote On 1/28/2021 at 11:55 AM, SyedHamza said: Local $hDownload = InetGet("https://media.com/abc.jpg","@StartupDir", 1 , 1) it was my fault now i give complete path like this On 1/28/2021 at 11:55 AM, SyedHamza said: Local $hDownload = InetGet("https://media.com/abc.jpg","@StartupDir & "\abc.png"", 1 , 1) and this working perfect thanks you so much for your time
SyedHamza Posted January 28, 2021 Author Posted January 28, 2021 sir, but I have another issue. not related to script or syntax it a problem with windows defender I write a very very basic program. this #RequireAdmin ProgressOn("Waiting", "Setup", "Loading") For $i = 0 To 50 ProgressSet($i) Sleep(50) Next but I don't know why is my Windows Defender detecting a virus in it? it is just a loading bar and nothing more...
Developers Jos Posted January 28, 2021 Developers Posted January 28, 2021 On 1/28/2021 at 2:30 PM, SyedHamza said: but I don't know why is my Windows Defender detecting a virus in it? Expand SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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