Deck construction script menu

User Tag List

Results 1 to 2 of 2
  1. #1
    phyte's Avatar Member
    Reputation
    7
    Join Date
    Aug 2008
    Posts
    136
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Deck construction script

    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
    Last edited by phyte; 03-24-2014 at 12:22 AM.

    Deck construction script
  2. #2
    Davaned's Avatar Private
    Reputation
    1
    Join Date
    Mar 2014
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Huh, pretty cool. I have played around with AHK a fair amount, but never thought to do this. If blizzard doesn't let us get more deck slots, it might be worthwhile doing this.

    Also, an interesting thought: You can use this deck script to make a "dream deck", with the rarer legendaries at the top and the shitty replacements at the bottom. As you get new cards, you can update your deck automatically.

    I think that if you could find a way to generate the deck file from an image of a decklist, this would be amazing. That way you could save one of your decks, then reload it later.
    Last edited by Davaned; 03-26-2014 at 10:14 PM.

Similar Threads

  1. Save More Than 9 Decks with This Script...
    By ArBar in forum Hearthstone: Heroes of Warcraft
    Replies: 7
    Last Post: 02-15-2015, 12:19 PM
  2. Making money with decks of cards
    By Matt in forum World of Warcraft Guides
    Replies: 6
    Last Post: 11-25-2006, 10:49 PM
  3. I got banned by using that, Anti AFK auto queue script or w/e
    By julian_in in forum World of Warcraft General
    Replies: 22
    Last Post: 11-03-2006, 02:30 PM
  4. Any Anti AFK Scripts available?
    By paboee in forum World of Warcraft General
    Replies: 2
    Last Post: 08-30-2006, 09:11 AM
  5. [Program] WoW Jumper AntiAFK Script
    By Cypher in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 06-23-2006, 10:38 PM
All times are GMT -5. The time now is 04:25 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search