button - automatic press key in Python -
im trying make auto-clicker , auto-button presser.
this 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) want spacebar pressed automatic (with 3sec sleep in between) 100 times. have tried sendkeys, cant find download place.
sorry bad english, hope can help.
this question or this one might out, should search these things , check if similar questions exist before posting.
Comments
Post a Comment