How to run pyautogui script in full screen under mac?

because automation does not require the best software windows or browsers to be fixed in size, after I have written the python script, I want to test it and find that after one window of mac is maximized, the window running the script is assigned to another desktop. How does my python script automate some operations on the current window?

Mar.20,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3609f-343ab.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3609f-343ab.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?