Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/22/2018 in all areas

  1. TheSaint

    Downloads Dropbox

    Updated to v1.6 (see first post for download). I have no clue, aside from the visual changes, what other improvements I may have made to the pretty basic, but not quite so basic now, program. My apologies about that, the update was done back in November 2017, and did not get uploaded for some reason long lost to me, as the two previous versions haven't been uploaded either. I did discover that I forgot to change the version number in the window title of the program, which was still on v1.5, even though the Program Information dialog correctly said v1.6. So perhaps I got distracted by some life issue at a crucial moment and finishing/uploading got forgotten in the wash. The zip file was named correctly, and I had backed it up, so it may just have been discovery of that wrong version number that delayed/put off uploading. Anyway, I have been using the program on and off since then, mostly with GOG game images, as I am about to describe. Usually I am pretty meticulous at recording update detail. One of the things my IonGoG Wishlist program does, is grab the full size game image (i.e. cover with title text), when you add a game to it. That program has an option (Ctrl+P) to save the image to a specified location, and that is generally what I use after buying and downloading a game from GOG. I rename the saved JPG file to Folder.jpg, and it displays as a thumbnail for that game in its root folder. Some games however, have more than one game to them, and while only having one web page at GOG, and thus one game image file, when added to your GOG Library, they show as two or more separate games. The Blackwell Bundle, which is 4 games (or episodes as some see it), is an example of that. When you download that game from GOG, four separate download folders are created by the GOG Downloader. I like to have a correct game image for each. This is where the Downloads Dropbox can help you. Or if you prefer you can just follow the manual instructions to get the correct image for every game, even the ones IonGoG Wishlist gets. In the screenshot above, is a game image path in the drop field, that I got by right clicking (in Firefox) on a game thumbnail in my GOG Library, then using the 'Copy Image Location' option, then using the 'Paste' button to add to the drop field. The original link had more to it (see thumbnail). But when you paste it into the Downloads Dropbox, it will strip the last portion (_196) off, and you get the following to download. I also clicked on the thumbnail in my GOG Library for that game, and then copied the game title (name) from the popup and then pasted that into the first input field of Downloads Dropbox. Having already specified a destination folder (by drag & drop) in the 4th input, I only need to click ADD to have it appear in the download list (last field). Then I click DOWNLOAD to get that game image ... or add others to the list first. P.S. If you are going to rename the downloaded image to Folder.jpg, then you don't really need to use the game title (name) in the first input field, just go with the very long default. But as I tend to do a few at a time though, a name can be helpful for recognition to later relocate to game folder and rename.
    1 point
  2. StdOutRead should take the same time as piping it to @TempDir & "\list-stout.txt". The issue with script above is scraping of text on each line, I tested it on a 9.7GB file with 4313 files and 1498 folders and it took about 3 minutes to complete, removing everything but capturing the file names and using the same 9.7GB file I was able to cut this down to 15 secs using the following: #include <Array.au3> #include <AutoItConstants.au3> Global $s7Zip = @OSArch = "x64" ? EnvGet("ProgramW6432") & "\7-Zip" : @ProgramFilesDir & "\7-Zip" Global $a7ZArchiveList = _7ZList("C:\test 1\1.05.24.7z", 1) _ArrayDisplay($a7ZArchiveList, "7-Zip Archive List", "", 0, Default, "Date/Time|Attributes|Size|Compressed|FileName") Func _7ZList($_sArchivePath, $iFolderFlag = 0) ;~ 0 = Don't Include Folders, 1 = Include Folders Local $sOutput = "", $sError = "" Local $iProcessId = Run($s7Zip & '\7z.exe l -r "' & $_sArchivePath & '"', "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $sOutput &= StdoutRead($iProcessId) If @error Then ExitLoop WEnd While 1 $sError &= StderrRead($iProcessId) If @error Then ExitLoop WEnd If $sOutput <> "" Then MsgBox(4096, "7-Zip Archive List", $sOutput) If StringStripWS($sError, 8) <> "" Then Exit MsgBox(4096, "7-Zip Error", $sError) Local $bStart = False, $aOutput = StringSplit($sOutput, @CRLF), $a7ZArchive[1] For $i = $aOutput[0] To 1 Step - 1 If StringStripWS($aOutput[$i], 8) = "" Then ContinueLoop If StringInStr($aOutput[$i], "------------------- ----- ------------ ------------ ------------------------") Then If $bStart = False Then $bStart = True ContinueLoop ElseIf $bStart = True Then $bStart = False ContinueLoop EndIf EndIf If $bStart Then If $iFolderFlag = 0 And StringInStr(StringStripWS(StringMid($aOutput[$i], 21, 5), 7), "D") Then ContinueLoop _ArrayAdd($a7ZArchive, StringStripWS(StringMid($aOutput[$i], 54, StringLen($aOutput[$i]) - 53), 7)) EndIf Next _ArraySort($a7ZArchive) $a7ZArchive[0] = UBound($a7ZArchive) - 1 Return $a7ZArchive EndFunc
    1 point
  3. You could try: #include <Array.au3> #include <AutoItConstants.au3> Global $s7Zip = @OSArch = "x64" ? EnvGet("ProgramW6432") & "\7-Zip" : @ProgramFilesDir & "\7-Zip" Global $a7ZArchiveList = _7ZList("C:\Downloads\FileName.7z") _ArrayDisplay($a7ZArchiveList, "7-Zip Archive List", "", 0, Default, "Date/Time|Attributes|Size|Compressed|FileName") Func _7ZList($_sArchivePath) Local $sOutput = "", $sError = "" Local $iProcessId = Run($s7Zip & '\7z.exe l -r "' & $_sArchivePath & '"', "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $sOutput &= StdoutRead($iProcessId) If @error Then ExitLoop WEnd While 1 $sError &= StderrRead($iProcessId) If @error Then ExitLoop WEnd If StringStripWS($sError, 8) <> "" Then Exit MsgBox(4096, "7-Zip Error", $sError) Local $bStart = False, $aOutput = StringSplit($sOutput, @CRLF), $a7ZArchive[1][5] For $i = $aOutput[0] To 1 Step - 1 If StringStripWS($aOutput[$i], 8) = "" Then _ArrayDelete($aOutput, $i) ContinueLoop EndIf If StringInStr($aOutput[$i], "------------------- ----- ------------ ------------ ------------------------") Then If $bStart = False Then $bStart = True ContinueLoop ElseIf $bStart = True Then $bStart = False ContinueLoop EndIf EndIf If $bStart Then _ArrayAdd($a7ZArchive, _ StringStripWS(StringMid($aOutput[$i], 1, 19), 7) & "|" & _ StringStripWS(StringMid($aOutput[$i], 21, 5), 7) & "|" & _ StringStripWS(StringMid($aOutput[$i], 27, 12), 7) & "|" & _ StringStripWS(StringMid($aOutput[$i], 40, 12), 7) & "|" & _ StringStripWS(StringMid($aOutput[$i], 54, StringLen($aOutput[$i]) - 53), 7)) EndIf Next _ArraySort($a7ZArchive, 0, 1, 0, 4) $a7ZArchive[0][0] = UBound($a7ZArchive) - 1 Return $a7ZArchive EndFunc
    1 point
  4. Search "control viewer" in example scripts forum.
    1 point
  5. Thanks, will be fixed in the next version. I am not aware of any being available. Jos
    1 point
  6. Jon

    AutoIt v3.3.14.5 Released

    AutoIt v3.3.14.5 has been released. Just a small bug fix to the updater script. Download it here. Complete list of changes: History
    1 point
×
×
  • Create New...