rot3r Posted 13 hours ago Posted 13 hours ago hello Im creating an app that download several file.i have problem that when start first download and using a loop to monitor ans update status on a list view , somehow script is frozen and not working. is ther any way to send loops in background and better way to update listview? ; Wait for the download to complete : Do $currentDown[0][3]=InetGetInfo($hDownload, $INET_DOWNLOADREAD) Sleep(250) _GUICtrlListView_DeleteAllItems($idListview) _GUICtrlListView_AddArray($idListview,$currentDown ) Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE)
Developers Jos Posted 12 hours ago Developers Posted 12 hours ago Assume this is not the total script and yes the script will "hang in this loop" until this single download is done. 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.
Developers Jos Posted 11 hours ago Developers Posted 11 hours ago Sure, but you will have to share a script that demonstrates the issue so we can see what you are exactly doing and how to implement this. 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.
Nine Posted 8 hours ago Posted 8 hours ago I answer something very similar recently : “They did not know it was impossible, so they did it” ― Mark Twain Spoiler 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) Screen Scraping Multi-Threading Made Easy
Developers Jos Posted 7 hours ago Developers Posted 7 hours ago No multi-threading is required in this case as the download is performed already in the background, so all that is required is to store the handles of each submitted download in an array, and then loop through this array getting the status for each active download and handle the ended sessions. ioa747 1 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.
rot3r Posted 6 hours ago Author Posted 6 hours ago 1 hour ago, Jos said: No multi-threading is required in this case as the download is performed already in the background, so all that is required is to store the handles of each submitted download in an array, and then loop through this array getting the status for each active download and handle the ended sessions. i already sent the download to background,but the way you mentioned is fine if we just have download progress , but because the download may take time i want to other aspect of gui can work for example user can add more download to list. Global $hDownload = InetGet($url , @ScriptDir&"\"&$sFileName&$sExtension, BitOR( $INET_IGNORESSL, $INET_BINARYTRANSFER), $INET_DOWNLOADBACKGROUND)
Developers Jos Posted 6 hours ago Developers Posted 6 hours ago 9 minutes ago, rot3r said: but because the download may take time i want to other aspect of gui can work for example user can add more download to list. Understand, hence my question for a more complete script so we can assist. 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