The code is:
<code>import random
import time
import pyautogui as pag
print("The program has initiated!")
print("To stop the program, just close it")
while True:
x = random.randint(600,800)
y = random.randint(200,600)
pag.moveTo(x,y,0.5)
time.sleep(3)
</code>
<code>import random
import time
import pyautogui as pag
print("The program has initiated!")
print("To stop the program, just close it")
while True:
x = random.randint(600,800)
y = random.randint(200,600)
pag.moveTo(x,y,0.5)
time.sleep(3)
</code>
import random
import time
import pyautogui as pag
print("The program has initiated!")
print("To stop the program, just close it")
while True:
x = random.randint(600,800)
y = random.randint(200,600)
pag.moveTo(x,y,0.5)
time.sleep(3)
When I run this in PyCharm it works normally, but when I run it in the source file thingy it just opens terminal and immediately closes.
I tried changing the file type to txt and back to py, still nothing changed.