#๐Ÿ”’ array/grid beginner help needed

20 messages ยท Page 1 of 1 (latest)

grim lanternBOT
#

@orchid hull

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.

orchid hull
#
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

#
  1. 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

#
  1. how do i skip that corner in I>J
devout lantern
#

!rule 5

grim lanternBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

orchid hull
#

im thinking like

x*apple*100
#

and why is this script illegal

devout lantern
#

automation isnt legal

orchid hull
#

makes sense, should i delete it?

devout lantern
#

yeah

orchid hull
#

ok thank u

devout lantern
grim lanternBOT
#
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.

#

๐Ÿ”’ array/grid beginner help needed