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)
so 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