 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Mon Jan 05, 2009 2:19 pm Post subject: Crazy Scripting : The Font Downloader v1.0 |
|
|
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 |
|
 |
Z_Gecko Guest
|
Posted: Mon Jan 05, 2009 2:29 pm Post subject: |
|
|
Very Nice!
amazing as alway, SKAN |
|
| Back to top |
|
 |
SoggyDog
Joined: 02 May 2006 Posts: 783 Location: Greeley, CO
|
|
| Back to top |
|
 |
infogulch
Joined: 27 Mar 2008 Posts: 649
|
Posted: Mon Jan 05, 2009 3:49 pm Post subject: |
|
|
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.  _________________ Scripts - License |
|
| Back to top |
|
 |
tidbit
Joined: 09 Mar 2008 Posts: 1807 Location: Minnesota, USA
|
Posted: Mon Jan 05, 2009 4:14 pm Post subject: |
|
|
I like it alot very cool
when saving, I just set the save directory to font folder 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 |
|
 |
infogulch
Joined: 27 Mar 2008 Posts: 649
|
Posted: Mon Jan 05, 2009 4:16 pm Post subject: |
|
|
| tidbit wrote: | when saving, I just set the save directory to font folder insta install. | Oh.
...
Duh.  _________________ Scripts - License |
|
| Back to top |
|
 |
skwire
Joined: 18 Jan 2006 Posts: 273 Location: Conway, Arkansas
|
Posted: Mon Jan 05, 2009 6:38 pm Post subject: |
|
|
| Fantastic, SKAN. Really, really nice. |
|
| Back to top |
|
 |
Trubbleguy
Joined: 20 Jan 2007 Posts: 96 Location: Melbourne
|
Posted: Mon Jan 05, 2009 8:49 pm Post subject: |
|
|
Superb, just superb, I had no idea you could get so many free fonts from one place.
Thanks Skan. _________________
 |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Wed Jan 07, 2009 8:33 pm Post subject: |
|
|
Thanks to everyone.
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 |
|
 |
SoggyDog
Joined: 02 May 2006 Posts: 783 Location: Greeley, CO
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|