Automate repetitive tasks, such as opening programs, typing, clicking, copying & pasting, and more. Pytobot is easy to use, requires no programming knowledge, and has a built-in recorder!
pip install -r requirements.txt
MouseClickLeft(500, 1000)
# Left mouse click at screen coordinates (x, y)MouseClickRight(500, 1000)
# Right mouse click at screen coordinates (x, y)MouseMove(500, 1000)
# Move the mouse to screen coordinates (x, y)MouseDoubleClickLeft(500, 500)
# Double left clickMouseScroll(5)
# Mouse scroll 5 digits up (positive) or down (negative)MouseClickLeftHold
# Click and hold the left mouse buttonMouseClickLeftRelease
# Click and release the left mouse buttonMouseClickDragLeft(500, 1000 -> 600, 1100)
# Click and drag the left mouse button to screen coordinates (x, y)KeyboardEnter
# Press the Enter keyKeyboardTab
# Press the Tab keyKeyboardSpace
# Press the Space keyKeyboardBackspace
# Press the Backspace keyKeyboardDelete
# Press the Delete keyKeyboardArrowUp
# Press the up arrow keyKeyboardArrowDown
# Press the down arrow keyKeyboardArrowLeft
# Press the left arrow keyKeyboardArrowRight
# Press the right arrow keyKeyboardWrite("word or phrase")
# Type the specified word or phraseKeyboardCtrlHold
# Hold down the Ctrl keyKeyboardCtrlRelease
# Release the Ctrl keyKeyboardCmd
# Press the CMD key (e.g., for switching apps)Copy
# Copy (same as Ctrl+C)Paste("name")
# Paste the quoted textPaste
# Paste (same as Ctrl+V) by default the clipboardCut
# Cut (same as Ctrl+X)SelectAllAndCopy
# Select all and copy (same as Ctrl+A and Ctrl+C)ProgramOpen("notepad")
# Open a program (e.g., - - Notepad) Some programs may have different names than displayed in the taskbar e.g. Affinity Designer is DesignerProgramClose("notepad")
# Close a programProgramActivate("notepad")
# Activate a programProgramMinimize("notepad")
# Minimize a programProgramMaximize("notepad")
# Maximize a programProgramBringToFront("notepad")
# Bring a program to the frontExecutePytobotScript("sample.txt")
# Execute another Pytobot scriptWait(5)
# Wait for 5 secondsTakeScreenshot
# Take a screenshot and save it in Pictures\ScreenshotsClickOnImage("C:\path\to\image.png")
# Click on an image on the screen e.g. an image of a button that you want to click onSetVariable(YourVariable = "value")
# Set a variableSetVariable(YourVariable = Clipboard())
# Set a variable from the clipboard==
# Equal to!=
# Not equal to>
# Greater than<
# Less than>=
# Greater than or equal to<=
# Less than or equal to#
# Single-line comment#Sample Comment
KeyboardCmd
KeyboardWrite("edge")
KeyboardEnter
KeyboardWrite("Tell me a fun fact")
KeyboardEnter