Export your cards, build your decks and more!
Image is kinda big, just want to show some progress here.
Please follow the instructions at https://github.com/octalmage/robotjs to install the dependencies for robotjs
.
git clone https://github.com/cly/hearthstone-tools.git
cd hearthstone-tools
- TBD
- Run Hearthstone
- Make sure graphics resolution is 1024x768 and quality is High.
- This restriction will be relaxed in the future.
- Ensure the Hearthstone app is locked to the top left pixel of the screen.
- A tool like Spectacle on Mac OS X will make this easy.
- This restriction will be relaxed in the future.
- Only tested on Mac OS X El Capitan 10.11.1 with a MacBook Pro 15in.
- Please let me know if it works/does not work on other platforms!
- Start a web server while you play Hearthstone.
- Render a web page with helpful tools as you play.
- Web server talks to browser page on some websocket port.
- Server also talks to screen, mouse and keyboard through robotjs.
- As things are being automated, record actions and render in browser.
- Setup a commandline REPL for instructions.
- Create an exporter bin that will export cards.
- Create a page flipper.
- Import existing card info.
- Create a script that imports card info bitmaps.
- Create a local storage of imported bitmap and card infos.
- Read screen pixels.
- Compare screen pixels with card info.
- Output as each event (card found, page flip) is accomplished.