0

im currently trying to make a auto-clicker and then a auto-button presser.

this is my code until now.

new=2;
url="www.google.com";

webbrowser.open(url,new=new);

time.sleep(25)


def click(x,y):
          win32api.SetCursorPos((x,y))
          win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
          win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
click(700,300)

time.sleep(3)

And after time.sleep(3) I want the spacebar to be pressed automatic (with 3sec sleep in between) 100 times. I have tried sendkeys, but cant find any download place.

Sorry for bad english, hope someone can help.

Burhan Khalid
  • 169,990
  • 18
  • 245
  • 284
user3717701
  • 1
  • 1
  • 1

1 Answers1

0

This question or this one might help you out, you should probably search these things and check if similar questions already exist before posting.

Community
  • 1
  • 1