Skip to content

Commit

Permalink
Linux support added (#21)
Browse files Browse the repository at this point in the history
* start to work on Linux support using the real folders name (case sentive)

* OS detection added (Windows / Linux) and support to catch the Hearthstone window on Linux

Wnck/GTK add to work on Linux support. More work is needed to mouse/keyboard support

* .gitignore added to delete screenshot from git repo

* remove one unnecessary AHK import

* Documentation for and dependencies to 'pyautogui' added

* win.rect replace by a function to work Windows & Linux

win.rect replace by a function (windowMP).
Will be change in near futur to be a class for "win" variable (to replace more AHK functions)

* resolution '2560' ('partscreen' function call) replaced by settings-file resolution

* support for Linux added - using pyautogui for Windows & Linux

* remove part.png from repository
  • Loading branch information
Efemache committed Nov 8, 2021
1 parent 9daa089 commit 2c6853c
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 135 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
files/1920x1080/screen.png
files/2560x1440/screen.png
files/3840x2160/screen.png
files/1920x1080/part.png
files/2560x1440/part.png
files/3840x2160/part.png
2 changes: 2 additions & 0 deletions HSbotRunner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pip3 install -r requirements.txt
python3 main.py
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,27 @@ In plans
4. It is possible to expand the functionality originally conceived.

<h1 align="center">Installation</h1>
<h2 align="center">Windows</h1>
<ul>
<li>download the project</li>
<li>Download the project</li>
<li>Open Settings.ini and set your settings</li>
<li>Run HSbotRunner.bat</li>
</ul>

![image](https://user-images.githubusercontent.com/68296704/138607261-d743018d-4c50-4482-a4e7-81091cb0f963.png)

<ul>
<li>then open Settings.ini and set yr settings</li>
<li>Start the game</li>
</ul>

<h2 align="center">Linux</h1>
<ul>
<li>Download the project</li>
<li>Open Settings.ini and set your settings</li>
<li>Install gir1.2-wnck-3.0 (sudo apt install gir1.2-wnck-3.0)</li>
<li>Run HSbotRunner.sh</li>
<li>Start the game</li>

[![Watch the video](https://user-images.githubusercontent.com/68296704/138687982-0f6d971d-783d-4f35-a3a5-4f5d5a3e59af.png)](https://www.youtube.com/watch?v=nOZXCkrQ5fk)


Expand Down
Binary file removed files/1920x1080/part.png
Binary file not shown.
Binary file removed files/2560x1440/part.png
Binary file not shown.
Binary file removed files/3840x2160/part.png
Binary file not shown.

0 comments on commit 2c6853c

Please sign in to comment.