New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux support added #21
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…tone window on Linux Wnck/GTK add to work on Linux support. More work is needed to mouse/keyboard support
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)
Deopster
added a commit
that referenced
this pull request
Nov 8, 2021
* Modern (#18) * added free pve content * fix to farm 23, 27, 28 levels * start to work on Linux support using the real folders name (case sentive) (#19) * OS detection added and screenshot removed from repo (#20) * 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 * Linux support added (#21) * 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 Co-authored-by: MODERN122 <45830356+MODERN122@users.noreply.github.com> Co-authored-by: Efemache <56414438+Efemache@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-- Linux --
The bot is (normally) working on Linux. (I have a bug but I think it exists on Windows, I'll open an issue)
The bot select Wnck/Gtk for Linux and AHK for Windows to focus on the Hearthstone window.
For mouse/keyboard support, I add to use autopygui which is multi-platform (windows, linux & macos) instead of AHK.
Need some tests on Windows too.
-- bug --
I solved a bug to with screen resolution when calling partscreen :
"partscreen(2560, " => replaced with "partscreen(int(setings[0].split('x')[0])"
--improvement --