Card Pricing

Here is another .hta file that I put together to gather prices from a listing of cards exported from the magic album application. Since it reads from a simple tab formated file it should work with just about any generated list of cards as long as the columns align properly. Since I assist in pricing a local card shops cards, I have worked in the functionality of calculating a percentage price for trade-in, as well as a percentage price for retail based on the located web price.
It should work with the default file formating when you save your inventory as a .csv from the magic album application. If you wish to use it with any other list make sure you have each line formated as follows:
<cardname><tab><anyvalue><tab><setabbr><tab><anyvalue><tab><anyvalue><tab><qtynonfoil><tab><qtyfoil><tab><notes>
Example:
Abandon Hope<tab>Abandon Hope<tab>TE<tab>ENG<tab> <tab>5<tab>0<tab> <tab>
Screenshots:

Program:
v0.1 - http://rapidshare.com/files/336766453/mtg.price.gatherer.hta.html
v0.1 - MD5: CEB096715F91479AE71302E12622B1F7
v0.2 - http://rapidshare.com/files/336863870/mtg.price.gatherer.hta.html
v0.2 - MD5: 28CA4F1C193470229B91E24AA5FB95F0
v0.3 - http://rapidshare.com/files/336969179/mtg.price.gatherer.hta.html
v0.3 - MD5: 20734B4B2ED74EA99476D8932290FF85
v0.4 - http://www.megaupload.com/?d=Q0DYLP5L
v0.5 - Added As Attachment
v0.6 - Added As Attachment
v0.7 - Added As Attachment
v0.8 - Added As Attachment
v0.9 - Added As Attachment
This program is highly dependant on your internet connection. Pricing times may take a LONG while if you have a slow connection. Also though the code is there for pricing foils, foil pricing is NOT yet implemented.
NOTE
If you recieve the following error (or similar)

Please choose "no".
If you do not wish to see this message please follow these steps: http://support.microsoft.com/kb/175500
Updates:
v0.1 - Initial Release. Basic functionality with a few web sites to collect pricing information from.
v0.2 - Updated available pricing sites. I noticed a number of users like the http://www.magictraders.com web site for pricing so I have added that site as an available price guide. Also some other minor changes (such as version writing when debug mode is on, and a new routine for downloading http content.)
v0.3 - Corrected the price guide routines for the http://www.magictraders.com price guide. Thanks for informing me of the problem goldaar!
v0.4 - Updated the magictraders.com routines once again. What can I say there was a problem with the routines but hopefully *hopefully* the routines are fixed now. Now you should either get a price if the card was located or a price of 0.00 if the card was not. http://www.magictraders.com appears to not follow standard set abbr or do not list specialty sets at the moment (like elves vs. goblins)
v0.5 - Corrected rounding routines when calculating the retail pricing. Implemented the next few requirements for foil pricing.
v0.6 - Added the http://www.tcgplayers.com site as a pricing guide. Also reviewed and corrected the http://www.mtgmintcard.com site routines. They should now be functioning how ever as with every site they dont follow a standard set abbr value (mainly for core sets). If you end up with a value of 0.00 on any card please report it.
v0.7 - Changed the functionality of application in regards to how the data is outputed to the priced log. Now the application will put the identified price(s) of the card in the notes field. Then appends the tradein / retail calculations at the end of the line. With this new outputing if the price guide site supports a "high,med,low" price you will see all 3 in the notes section. Then calculate the tradein/retail price off the price range drop down box selection.
v0.8 - Added a new pricing site (http://www.supernovabots.com). Its an MTGO pricing site similar to magictraders (only for MTGO). Removed some code that was going to be implemented to try and get prices from http://www.mtgotraders.com but the owner has requested people not use his site. So I have removed any code about the site per his request. I have also implemented foil price checking for the http://www.abugames.com, http://www.abumtgo.com, http://www.magictraders.com, and http://www.supernovabots.com price guide site(s). Currently you MUST have seperate lines listing the foil and non foil versions of the card. If you have line that lists the card name and the qtyfoil and qtynonfoil is greater than 0 it will default to the NONFOIL price! As with any release if you find there is a price of "0.00" for any card please post and I will look into if there is an issue with the pricing code. Most of all sites do not have a standard abbreviation for the set names which may lead to a "0.00" price value.
v0.9 - Updated to include worldwake set. Sorry for taking so long. Was waiting to see if the next version of magic album would be released.
It should work with the default file formating when you save your inventory as a .csv from the magic album application. If you wish to use it with any other list make sure you have each line formated as follows:
<cardname><tab><anyvalue><tab><setabbr><tab><anyvalue><tab><anyvalue><tab><qtynonfoil><tab><qtyfoil><tab><notes>
Example:
Abandon Hope<tab>Abandon Hope<tab>TE<tab>ENG<tab> <tab>5<tab>0<tab> <tab>
Screenshots:

Program:
v0.1 - http://rapidshare.com/files/336766453/mtg.price.gatherer.hta.html
v0.1 - MD5: CEB096715F91479AE71302E12622B1F7
v0.2 - http://rapidshare.com/files/336863870/mtg.price.gatherer.hta.html
v0.2 - MD5: 28CA4F1C193470229B91E24AA5FB95F0
v0.3 - http://rapidshare.com/files/336969179/mtg.price.gatherer.hta.html
v0.3 - MD5: 20734B4B2ED74EA99476D8932290FF85
v0.4 - http://www.megaupload.com/?d=Q0DYLP5L
v0.5 - Added As Attachment
v0.6 - Added As Attachment
v0.7 - Added As Attachment
v0.8 - Added As Attachment
v0.9 - Added As Attachment
This program is highly dependant on your internet connection. Pricing times may take a LONG while if you have a slow connection. Also though the code is there for pricing foils, foil pricing is NOT yet implemented.
NOTE
If you recieve the following error (or similar)

Please choose "no".
If you do not wish to see this message please follow these steps: http://support.microsoft.com/kb/175500
Updates:
v0.1 - Initial Release. Basic functionality with a few web sites to collect pricing information from.
v0.2 - Updated available pricing sites. I noticed a number of users like the http://www.magictraders.com web site for pricing so I have added that site as an available price guide. Also some other minor changes (such as version writing when debug mode is on, and a new routine for downloading http content.)
v0.3 - Corrected the price guide routines for the http://www.magictraders.com price guide. Thanks for informing me of the problem goldaar!
v0.4 - Updated the magictraders.com routines once again. What can I say there was a problem with the routines but hopefully *hopefully* the routines are fixed now. Now you should either get a price if the card was located or a price of 0.00 if the card was not. http://www.magictraders.com appears to not follow standard set abbr or do not list specialty sets at the moment (like elves vs. goblins)
v0.5 - Corrected rounding routines when calculating the retail pricing. Implemented the next few requirements for foil pricing.
v0.6 - Added the http://www.tcgplayers.com site as a pricing guide. Also reviewed and corrected the http://www.mtgmintcard.com site routines. They should now be functioning how ever as with every site they dont follow a standard set abbr value (mainly for core sets). If you end up with a value of 0.00 on any card please report it.
v0.7 - Changed the functionality of application in regards to how the data is outputed to the priced log. Now the application will put the identified price(s) of the card in the notes field. Then appends the tradein / retail calculations at the end of the line. With this new outputing if the price guide site supports a "high,med,low" price you will see all 3 in the notes section. Then calculate the tradein/retail price off the price range drop down box selection.
v0.8 - Added a new pricing site (http://www.supernovabots.com). Its an MTGO pricing site similar to magictraders (only for MTGO). Removed some code that was going to be implemented to try and get prices from http://www.mtgotraders.com but the owner has requested people not use his site. So I have removed any code about the site per his request. I have also implemented foil price checking for the http://www.abugames.com, http://www.abumtgo.com, http://www.magictraders.com, and http://www.supernovabots.com price guide site(s). Currently you MUST have seperate lines listing the foil and non foil versions of the card. If you have line that lists the card name and the qtyfoil and qtynonfoil is greater than 0 it will default to the NONFOIL price! As with any release if you find there is a price of "0.00" for any card please post and I will look into if there is an issue with the pricing code. Most of all sites do not have a standard abbreviation for the set names which may lead to a "0.00" price value.
v0.9 - Updated to include worldwake set. Sorry for taking so long. Was waiting to see if the next version of magic album would be released.