Python: 3.10.6, os: MacOS 12.6, Software: VS code
I want to confirm before activating the mouse_click()
with pyautogui's message box (.alert or .confirm).
Running the script the message box opens, and if I do nothing its okey. But once I click in the message box, a button or anywhere in the message box window, the 'spinning wheel' appears. The application window crashes and needs to 'Force quit'.
Its the same with every message box.
import pyautogui
import time
def mouse_click():
while True:
time.sleep(1)
pyautogui.click()
def main():
pyautogui.confirm('Shall I proceed?')
mouse_click()
main()
quit()
What might be the issue?