0

I have a program which makes the mouse go crazy and point randomly on different places on screen. it works just fine, but when i go to task manager or simply click ctrl + alt + delete, it stops functioning, even when im exiting task manager. any help?

(the program still seems to run in the proccess list, but simply doesn't do anything)

the program:

from win32api import SetCursorPos,GetSystemMetrics
from time import sleep
from random import uniform
from win32console import GetConsoleWindow
from win32gui import ShowWindow

win = GetConsoleWindow()
ShowWindow(win,0)

def click(x,y):
    SetCursorPos((x,y))

while True:
    click((int)(uniform(GetSystemMetrics(0),10)),(int)(uniform(GetSystemMetrics(1),10)))
     sleep(0.02)
Paul R
  • 208,748
  • 37
  • 389
  • 560
Ben L
  • 743
  • 2
  • 7
  • 15

0 Answers0