Announcement

Collapse
No announcement yet.

Dowload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dowload

    This there anything wrong with this function, it does not seem to move the progress bar at all.

    PHP Code:
    function ImageDownload(_ThisTable)
        
    Progress.SetVisible("DownloadCallBack"true);
        
        
    local function Callback (nDownloadednTotalTransferRateSecondLeftSecondsLeftFormatMessage)
            
    sTotal String.GetFormattedSize(nTotalFMTSIZE_AUTOMATICtrue);
            
    Progress.SetCurrentPos("DownloadCallBack", (nDownloaded nTotal) * 100);
            return 
    true;
        
    end

        
    if File.DoesExist(FolderPath.."\\".._ThisTable.SaveAs)then
                Hope 
    nil;
                
    MoveSave false;
                
    Dialog.Message("Downloaded""You already own this download.")
        else
            
    HTTP.Download(_ThisTable.URLFolderPath.."\\".._ThisTable.SaveAsMODE_BINARY1580nilnilCallback);
            
    Progress.SetVisible("DownloadCallBack"false);
            if 
    File.DoesExist(FolderPath.."\\".._ThisTable.SaveAs)then
                Dialog
    .Message("Download"_ThisTable.SaveAs.." has downloaded."MB_OKMB_ICONNONE);
            
    end
            DialogEx
    .Close(0);
        
    end
    end 
    DialogEx
    Click image for larger version

Name:	dl.png
Views:	1
Size:	2.8 KB
ID:	288398

    Settings
    Click image for larger version

Name:	dl2.png
Views:	1
Size:	13.5 KB
ID:	288399

    I am unable to get it to move but it hold up/locks up like its deff doing something and it does download the file
    Plugins or Sources MokoX
    BunnyHop 2021 Here
Working...
X