Author Topic: Speaking of Skin's and Downloaders.  (Read 403 times)

Offline bustr

  • Plutonium Member
  • *******
  • Posts: 12436
Speaking of Skin's and Downloaders.
« on: May 11, 2012, 12:47:41 PM »
What ever happened to that nifty little application for rapid downloading of skins (ahdown.exe)?
bustr - POTW 1st Wing


This is like the old joke that voters are harsher to their beer brewer if he has an outage, than their politicians after raising their taxes. Death and taxes are certain but, fun and sex is only now.

Offline Butcher

  • Platinum Member
  • ******
  • Posts: 5323
Re: Speaking of Skin's and Downloaders.
« Reply #1 on: May 11, 2012, 01:37:01 PM »
I tried looking for it, it must of been deleted with a patch upgrade.
JG 52

Offline GhostRider2110

  • Copper Member
  • **
  • Posts: 103
Re: Speaking of Skin's and Downloaders.
« Reply #2 on: May 11, 2012, 02:55:47 PM »
I still had a copy of it, but it didn't work for the skins.. Only found some Terrains..  :headscratch:
--Mitch AKA SEBaker

XO I./JG 1 DGS II scenario
Mitchell Baker AMA 7548 GSWA WB251 10th AF USSMA 358
Webmaster THRCC

Offline Kev367th

  • Platinum Member
  • ******
  • Posts: 5290
Re: Speaking of Skin's and Downloaders.
« Reply #3 on: May 13, 2012, 12:52:04 AM »
Goto - http://www.autoitscript.com/site/autoit/

Get and install AutoIt

Start the editor and paste in -


#include <IE.au3>
#include <Array.au3>

$oIE = _IECreate("http://www.hitechcreations.com/Flight-Sim/World-War-Two-Planes/downloads-skins-art.html",0,0)
$oLinks = _IELinkGetCollection ($oIE)
For $oLink In $oLinks
   $isResFile = StringInStr($oLink.href,".res")
   If $isResFile > 0 Then
   $oFilename = StringSplit($oLink.href,"/")
   InetGet($oLink.href,"C:\AH2\Skins\" & $oFilename[$oFilename[0]])
   EndIf
Next
_IEQuit($oIE)


Then run it.
Will download all skins to C:\AH2\Skins\ (create directory before running script)

I have two exe's made from the above, one for x86 and one for x64, but no way to attach them.

To change the save location modify the path inside the quotes on this line (it must end with \) -
InetGet($oLink.href,"C:\AH2\Skins\" & $oFilename[$oFilename[0]])

Apologies for posting code Skuzzy.
Just a basic
a) Open the download page in the backgroud
b) Get a list of all the download links on the page
c) Check for links containing .res
d) Split the download path to get the filename
d) Download the file
e) When finished close the background ie instance
« Last Edit: May 13, 2012, 01:39:51 AM by Kev367th »
AMD Phenom II X6 1100T
Asus M3N-HT mobo
2 x 2Gb Corsair 1066 DDR2 memory

Offline guncrasher

  • Plutonium Member
  • *******
  • Posts: 17323
Re: Speaking of Skin's and Downloaders.
« Reply #4 on: May 13, 2012, 03:00:09 AM »
nope mine is still in the original folder.  it's called ahdown.  ah doesnt delete files from it's folders. 

semp
you dont want me to ho, dont point your plane at me.