Skip to content
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

More keys #63

Open
Jah-On opened this issue Nov 14, 2020 · 5 comments
Open

More keys #63

Jah-On opened this issue Nov 14, 2020 · 5 comments

Comments

@Jah-On
Copy link

Jah-On commented Nov 14, 2020

Hi,
Thanks for making this super fast module! I did notice a few keys were missing in the API reference such as num keys. Could you please add support for all 101 keys?
Thanks!

@wvupike2006
Copy link

I second this request, as I am making a tool that plays the game we make at work. I just started programming in Rust, but come from a decent foundation in c++ so I may try implement it myself, and submit a PR. It doesn't look to terribly difficult to add some extra keys.

@Jah-On
Copy link
Author

Jah-On commented Dec 6, 2020

Thanks dude!

@wvupike2006
Copy link

wvupike2006 commented Dec 7, 2020

@Jah-On Were you using this for a rust program as well as python, or only on python?

I figured out a solution but if you are in a hurry i figured i could just tell you. If it is python, use pydirectinput for keyboard functions as pyautogui fails if you are having your bot play a game with directx. Autopy is the best solution for image recognition, so use both and only import the function for keys and it should work great.

As for rust, I have a workaround as well as a solution that i would like to integrate into this project, but it may be a few days. I can give you the workaround if you need it for rust, just let me know.

One last bit of advice that i wish i had came to right away, is if you need your program to work on multiple monitors, consistently, use get_color() on unique pixels and then take the max of the 3 rgb values to account for slight variance. return true if pixel colors match to check your screen state and minimize the amount of photos needed.

@Jah-On
Copy link
Author

Jah-On commented Dec 7, 2020

I need it for python. It looks like pydirectinput is Windows only. I'm using it to make a cross platform remote desktop app, not a game bot ha ha. When do you think you could add the rust code? I would appreciate it if it could be done within 2-3 weeks but would still be grateful if it ended up being longer than that. Thanks!

@Jah-On
Copy link
Author

Jah-On commented Dec 10, 2020

@wvupike2006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants