

How to auto mouse click without a program cookie clicker code#
This is what I have changed to the code click = 0Īnd at the end of the code I have added while True:

So my main question is, how can I have the number of clicks increase by one per second by the game itself (without the user needing to keep the mouse on the "Click!" button), and how can I have the Auto Clickers stack when more than one are bought (plus I would like to not have the program crash as soon as I try to buy it). When I hit the button that says "Purchase Auto Clicker", not only do I not get the number of clicks to increase by one per second, but the entire app crashes.

def purchaseAutoClickerCommand():Īnd the code in charge of the button purchaseAutoClickerButton = Button(master, text="Purchase Auto Clicker", command = purchaseAutoClickerCommand) I have found one other post that is about this, but the solution for that uses PyMouse which 1.) I can't get installed (Trust me I've tried everything) and 2.) Don't want to imitate user input. I am trying to add an Auto Clicker that you can buy through a button. PurchaseAutoClickerButton = Button(master, text="Purchase Auto Clicker", command = purchaseAutoClickerCommand) PurchaseDoubleClickButton = Button(master, text="Purchase Double Clicks", command = purchaseDoubleClicksCommand) MainClickButton = Button(master, text="Click!", command = buttonCommand) Print ('''Achievement Unlocked: Jackie Chan Style! Print ('''Achievement Unlocked: Click Ninja Master! Print ('''Achievement Unlocked: Little Ninja Clicks! Print('''Achievement Unlocked: Junior Clicker! Print("Auto clicker purchases need 75 clicks!") Print("Double click purchases need 50 clicks!") I have come up with some code that I am using for a clicker game, kinda like Cookie Clicker.
