KyonP
KyonP

Reputation: 3

mouse automation not to interfere actual mouse

I'm trying to make some code that accomplishes repeating clicking jobs while I'm doing other tasks (such as web surfing) on my PC.

I've tried Pyautogui, but the library interferes my actual mouse while the script running.

Is there any python lib I can use for this purpose?

or any advises?

for example,

import pyautogui, sys
print('Press Ctrl-C to quit.')
try:
    while True:
        pyautogui.moveTo(100, 200)

except KeyboardInterrupt:
    print '\n'

Such as this code, will move my mouse cursor to the location. however, I don't want that consequence.

Upvotes: 0

Views: 226

Answers (1)

veganaiZe
veganaiZe

Reputation: 569

Run it inside of a virtual machine.

Upvotes: 1

Related Questions