Jump to content

Recommended Posts

Posted (edited)

CheckFileSize v1.12 Final!

CheckFileSize is a program that designed to check file size on the internet :).

Posted Image

More ScreenShots:

Main Dialog - After Checking

Details Dialog

Options Dialog

================

Common Features:

================

* Integration to Internet Explorer and Opera Browser.

* Quick Mode of displaying File Size information (with ToolTip under mouse).

* Download checked file with favorite Download Manager.

* Basic Proxy support.

* URL Correction.

* ClipBoard Monitoring.

* Program is fully portable, no need to install.

* Multi-Language Support.

* Program is free, and distributed with Open Source.

======================

Command Line Switches:

======================

/URL=somefile.zip - Url to file for checking the size.

/Referrer=web-site - Referrer to a web-site that Url is checking from (used for passing to Download Manager).

/AutoCheck - Check automatically when program is executed with /URL= switch.

/ToolTip=N - Will only display a simple ToolTip under the mouse with main information about file size -> N is the number of seconds to display the tooltip.

====================

Download page

Now also available from local Downloads Manager.

* Sources for AutoIt v3.2.8.1 Included

Edited by MrCreatoR

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

Nice work my friend! :) Very cool! Thank you for example and sharing!

For future version you need to make a correct work with php-links, e.g. http://game.chirkom.uz/modules/mydownloads/visit.php?cid=6&lid=83.

Anyway great job! I got a more examples! I like it! Thank you again! :(

Posted (edited)

Thanks rasim! :)

  Quote

For future version you need to make a correct work with php-links, e.g. http://game.chirkom.uz/modules/mydownloads...id=6&lid=83.

Well, this current url returns «HTTP/1.1 200 OK» via «HEAD» request, so i really can't see a way to get redirection of php script. Ok, i think i found a way... please standby .... :(

Just replace this:

If StringInStr($Check_Response, @CRLF & @CRLF) Then _
        $Check_Response = StringRegExpReplace($Check_Response, "(?i)(?s)" & @CRLF & @CRLF & ".*$", "")

with this:

If StringInStr($Check_Response, @CRLF & @CRLF) Then
        Local $sMetaRedirect_URL = ""
        
        If StringRegExp($Check_Response, '(?i)(?s).*<meta.*="Refresh" content="\d+; URL=.*"') Then
            $sMetaRedirect_URL = StringRegExpReplace($Check_Response, _
                '(?i)(?s).*<meta.*?="Refresh" content="\d+; URL=(.*)".*', '\1')
            
            If $sMetaRedirect_URL <> "" And $sMetaRedirect_URL <> $Check_Response Then
                $aHostPage = _GetHostAndPage($sMetaRedirect_URL)
                $Check_Response = _HTTPGetResponse($aHostPage[0], $aHostPage[1], "HEAD", $sURI_Referrer)
                GUICtrlSetData($URL_Input, $sMetaRedirect_URL)
            EndIf
        EndIf
        $Check_Response = StringRegExpReplace($Check_Response, "(?i)(?s)" & @CRLF & @CRLF & ".*$", "")
    EndIf

This way the meta redirected files will be recognized. Soon i will update this in the archive, thanks.

Edited by MrCreatoR

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 3 weeks later...
Posted

Update:

v1.12 Final Release! [28.05.2008]

  • Added meta redirection recognition (thanks to rasim).
  • Few stability fixes.

Please see first post.

P.S

Now also available from local Downloads Manager.

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 1 year later...
Posted

Is anyone using this program? Just curios... :)

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

  MrCreatoR said:

Is anyone using this program? Just curios... :)

Well untill today I didn't even know it existed. :)

I'm not sure I'll use it as a stand alone program BUT I have been looking for code to check the "modified" date of "on-line" files. It should be very usefull for checking if an on-line file is more recent then the local one. Better then creating and maintaining a "version control" file.

I think if you repackaged the getsize, etc in a UDF there would be interest. Well I would be interested. :-)

Great code!

Thanks for sharing!!!

John Morrison

  • 5 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...