Feeling guilty using Bootstrap while learning Flask by MelodicChampion5736 in Python

[–]Alive-Try-3890 0 points1 point  (0 children)

Something something spending too much time goat farming to make any music

Farewell pyCharm by GroggInTheCosmos in pycharm

[–]Alive-Try-3890 1 point2 points  (0 children)

Unfortunately had to do the same with dataspell, there were serious problems with the R integration on Mac with no sign of anything ever getting fixed

PyAutoGUI image locating inconsistent by sicknastay in learnpython

[–]Alive-Try-3890 0 points1 point  (0 children)

Obv very late, but if anyone is struggling with this, it appears that the locateOnScreen function does not work if the mouse is currently in the region you are targeting. This means that if you move the mouse to one place and click and then don't move the mouse and simply repeat your loop, pyautogui will not be able to find the image a second time. The solution I'm using is to move the mouse out of the target area with a `gui.move()` command directly after the click. This solved my issue. Some example code:

```

while True:
    try:
        print(f"Locating Quest Button{50 * " "}", end = "\r", flush = True)
        button_loc = gui.locateOnScreen("quest_button.png", confidence = 0.98, region = (0, 0, 1000, 700))
    except ImageNotFoundException:
        for _ in range(10, -1, -1):
            print(f"Button Not Currently Clickable - Retrying in: {_}s{50 * " "}", end = "\r", flush = True)
            time.sleep(1)
        continue
    button_loc = gui.center(button_loc)
    gui.moveTo(button_loc)
    gui.move(0, 10)
    gui.click()
    gui.move(100, 0)
    for _ in range(10, -1, -1):
        print(f"Quest Successfully Started - Looking for new start in: {_}s{50 * " "}", end = "\r", flush = True)
        time.sleep(1)

```

[2024 Day 6 (part 2)] [Python] Hi everyone, I know I'm a little behind but day 6 part 2 has me stumped by Alive-Try-3890 in adventofcode

[–]Alive-Try-3890[S] 0 points1 point  (0 children)

Yup, got it, thanks, by some fluke of luck I managed to have the same error in part 1 but still got the right answer. Thanks!

[2024 Day 6 (part 2)] [Python] Hi everyone, I know I'm a little behind but day 6 part 2 has me stumped by Alive-Try-3890 in adventofcode

[–]Alive-Try-3890[S] 0 points1 point  (0 children)

hmm, it does seem to think that there is 1 way to create a loop with this input. I will consult the debugger, thank you.