#๐Ÿ”’ Arrow Program help

18 messages ยท Page 1 of 1 (latest)

hardy yew
#

I am still very new to coding and got a lot of help from AI so I don't really know what I am doing. My program is suppose to allow me to select an area off my screen and detect for arrow patterns then press the arrow keys in the same pattern sequence as the arrow sequence in the recorded screen area. It records the screen fine but it seems to be pressing the arrow keys in the wrong order and then when no patterns appear on the screen it still seems to be pressing some arrow keys for unknown reasons. I have added the images of the arrow keys in a random sequence for reference and the arrow key images I use for the programs references. I would love some advice on this.

Code link : https://paste.pythondiscord.com/XN3A

frigid leafBOT
#

@hardy yew

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

stark flint
#

One thing that might be causing an issue is the threshold value. Since the arrow images are very similar they might be being identified improperly, so for a first test I'd try increasing the threshold a bit

hardy yew
stark flint
#

By setting it to a different value on the functions you used threshold=0.8

hardy yew
#

Ah okay so would you recommend maybe like 5.0? or lower?

stark flint
#

No, the max is 1.0

#

Maybe 0.9? Idk

hardy yew
#

Sure thank you!

strong scaffold
#

!res - if you need to learn python, check out these

frigid leafBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

hardy yew
strong scaffold
hardy yew
#

ah okay

frigid leafBOT
#

:warning: The owner of this post is no longer in the server.

frigid leafBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.