Jump to content

Download all the autoit forum "winks"


z0mgItsJohn
 Share

Recommended Posts

What it dose.. it gos to "http://www.autoitscript.com/forum/style_emoticons/autoit/" and extracts all the wink names from it and then downloads it and saves it to a folder called "winks"... simple basic and too the point.. xD

source.au3 :

#Include <File.Au3>
DirCreate ('Winks')
If FileExists ('extract.html') Then FileDelete ('extract.html')
INetGet ('http://www.autoitscript.com/forum/style_emoticons/autoit/','extract.html')
$Count = _FileCountLines ('extract.html')
$Scan = '<tr><td valign="top"><img src="/icons/image2.gif" alt="[IMG]"></td><td><a href="'
For $A = '1' To $Count 
$Read = FileReadLine ('extract.html', $A)
If StringInStr ($Read, $Scan) <> '0' Then 
$String = StringReplace ($Read, $Scan, '')
$String = StringSplit ($String, '">')
If $String['0'] > '0' Then INetGet ('http://www.autoitscript.com/forum/style_emoticons/autoit/' & $String['1'], 'Winks/' & $String['1'])
EndIf 
Next
FileDelete ('extract.html')

enjoy ^^; :D

- John

Edited by John2006

Latest Projects :- New & Improved TCP Chat

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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