AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Crazy Scripting : The Font Downloader v1.0

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Mon Jan 05, 2009 2:19 pm    Post subject: Crazy Scripting : The Font Downloader v1.0 Reply with quote

    A simple script to Search/Preview/Download from over 6600 TrueType fonts
    available in http://www.webpagepublicity.com

    Download FontDL.ahk




    The script requires TheFontList.txt ( 138 KiB ) which will be auto-downloaded as and when required.

    • Keywords should be seperated from each other with +
    • Double click on a fontname or press enter to Preview it
    • Tested in Vista Ultimate & Windows XP


    Thanks to Sean for helping me with DoFileDownload()
    Thanks to olfen for HttpQueryInfo() from which HttpQueryContentLength() was derived.
    Thanks to Lexikos / Laszlo for the MulDiv tip on extracting string from a pointer
    Code:
    HttpQueryContentLength( URL ) { ; Thx olfen www.autohotkey.com/forum/viewtopic.php?t=10510
     hIOU := DllCall( "wininet\InternetOpenUrlA", UInt
          , ( hIO := DllCall( "wininet\InternetOpenA", Str,N, UInt,1, Str,N, Str,N, UInt,0 ) )
          , Str,URL, Str,N, UInt,0, UInt,0x80000000, UInt,0 )
     If ErrorLevel || !hIOU
        Return -1 
     Loop % VarSetCapacity( CL,20,0 ) - 15
       If Q:=DllCall( "wininet\HttpQueryInfoA", UInt,hIOU, Int,5, UInt,&CL, UIntP,Len, Int,0 )
         Break
     DllCall( "wininet\InternetCloseHandle", UInt,hIO )
     DllCall( "wininet\InternetCloseHandle", UInt,hIOU )
    Return, Q ? DllCall( "MulDiv", Int,&CL, Int,1, Int,1, Str ) : -2   
    }


_________________
URLGet - Internet Explorer based Downloader


Last edited by SKAN on Wed Jan 07, 2009 8:24 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Z_Gecko
Guest





PostPosted: Mon Jan 05, 2009 2:29 pm    Post subject: Reply with quote

Very Nice!
amazing as alway, SKAN
Back to top
SoggyDog



Joined: 02 May 2006
Posts: 783
Location: Greeley, CO

PostPosted: Mon Jan 05, 2009 2:37 pm    Post subject: Reply with quote

Sweet!
_________________

SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
infogulch



Joined: 27 Mar 2008
Posts: 649

PostPosted: Mon Jan 05, 2009 3:49 pm    Post subject: Reply with quote

Really cool SKAN! You should add a "Download & Install" button cuz the if we're using this awesome script, we're already too lazy to go look for the font ourself, let alone actually dragging it into the fonts on our system. Razz
_________________
Scripts - License
Back to top
View user's profile Send private message
tidbit



Joined: 09 Mar 2008
Posts: 1807
Location: Minnesota, USA

PostPosted: Mon Jan 05, 2009 4:14 pm    Post subject: Reply with quote

I like it alot Smile very cool
when saving, I just set the save directory to font folder Smile insta install.
_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
Even monkeys fall from trees. - Japanese proverb
Back to top
View user's profile Send private message
infogulch



Joined: 27 Mar 2008
Posts: 649

PostPosted: Mon Jan 05, 2009 4:16 pm    Post subject: Reply with quote

tidbit wrote:
when saving, I just set the save directory to font folder Smile insta install.
Oh.
...
Duh. Razz
_________________
Scripts - License
Back to top
View user's profile Send private message
skwire



Joined: 18 Jan 2006
Posts: 273
Location: Conway, Arkansas

PostPosted: Mon Jan 05, 2009 6:38 pm    Post subject: Reply with quote

Fantastic, SKAN. Really, really nice.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Trubbleguy



Joined: 20 Jan 2007
Posts: 96
Location: Melbourne

PostPosted: Mon Jan 05, 2009 8:49 pm    Post subject: Reply with quote

Superb, just superb, I had no idea you could get so many free fonts from one place.
Thanks Skan.
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Wed Jan 07, 2009 8:33 pm    Post subject: Reply with quote

Thanks to everyone. Very Happy

Here is an updated version, that uses Microsoft's fontinst tool, to install the downloaded fonts.



Download TFD-v1.0.zip 79.96 KiB ( The Script, FontList & fontinst.exe )

( VirusTotal.com results for fontinst.exe )
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
SoggyDog



Joined: 02 May 2006
Posts: 783
Location: Greeley, CO

PostPosted: Thu Jan 08, 2009 4:40 am    Post subject: Reply with quote

It just keeps getting better!
Awesome tool for graphic designers.
_________________

SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group