#๐ array/grid beginner help needed
20 messages ยท Page 1 of 1 (latest)
@orchid hull
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.
import time
from pynput.mouse import Button, Controller
from pynput.keyboard import Key, Listener
mouse = Controller()
from vars import*
meow = [
]
woof = [
#[x coord, y coord, var]
]
def on_press(key):
try:
if key == Key.f4:
for kitties in meow:
mouse.position = (kitties[0], kitties[1])
time.sleep(0.2)
mouse.click(Button.left, kitties[2])
time.sleep(0.2)
elif key == Key.f5:
for puppies in woof:
mouse.position = (puppies[0], puppies[1])
time.sleep(0.2)
mouse.click(Button.left, puppies[2])
time.sleep(0.2)
except AttributeError:
return False
with Listener(on_press=on_press) as listener:
listener.join()
this is my grid
i will write like
woof = [
[100, 500, apple]
]
value of apple in my vars file is 4
- how do i make script pull grid
horizontal and vertical distance from each button is similar, 100 pixels
how do i make it click E
- how do i skip that corner in
I>J
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
automation isnt legal
makes sense, should i delete it?
yeah
ok thank u
do !close
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.
๐ array/grid beginner help needed