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

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -