This is an ahk script to add cards to a deck for you from a textfile named decklist.txt. It only works in 1280 x 960 windowed mode so that more people can use it without having to edit the script. Make sure the HS window isn't obstructed when you run it or you may end up clicking garbage. To make the decklist file just copy and paste from http://hearthpwn.com/decks, no formatting necessary. If you want to make your own decklist files you need to use '×' as the delimiter between the card name and the number. Don't confuse '×' with 'x'.
Run this from the deck construction menu on an empty deck file. It'll clear any other cards in there.
Code:
IfWinExist, Hearthstone
{
WinActivate, Hearthstone
sleep, 100
}
else
{
MsgBox, Window not found!
Exit
}
;1280 x 960
;search bar red x: 724, 904
;search bar: 654, 900
;top-left card: 220, 430
;top card/suggest button 1111 143
clearCards()
Loop, Read, decklist.txt
{
WinActivate, Hearthstone
StringSplit, split_by_x, A_LoopReadLine, ×
cardName = %split_by_x1%
after_x = %split_by_x2%
StringSplit, cards_for_num_clicks, after_x
numCards = %cards_for_num_clicks1%
click, 724, 904
click, 654, 900
send, %cardName%
send, {enter}
mousemove, 220, 430
click
IfInString, numCards, 2
click
}
clearCards()
{
loop, 30
{
WinActivate, Hearthstone
click, 1111 143
}
}
Sample file: decklist.txt
KolentoMiracleRogue - Hearthstone Decks
Code:
Gadgetzan Auctioneer × 2
Bloodmage Thalnos × 1 Minion 2 1 1
Nat Pagle × 1 Minion 2 0 4
Acolyte of Pain × 1 Minion 3 1 3
Leeroy Jenkins × 1 Minion 4 6 2
Backstab × 2 Ability 0 0 0
Preparation × 2 Ability 0 0 0
Shadowstep × 2 Ability 0 0 0
Cold Blood × 2 Ability 1 0 0
Conceal × 1 Ability 2 0 0
Deadly Poison × 2 Ability 1 0 0
Blade Flurry × 1 Ability 2 0 0
Eviscerate × 2 Ability 2 0 0
Sap × 2 Ability 2 0 0
Shiv × 2 Ability 2 0 0
Edwin VanCleef × 1 Minion 3 2 2
Fan of Knives × 2 Ability 3 0 0
SI:7 Agent × 2 Minion 3 3 3
Assassin's Blade × 1