From cb0d3f9441b42540eb0827f410a7458cf38b05f8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 24 Sep 2019 11:11:44 -0300 Subject: New bot script in Python --- tmw2_bot.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tmw2_bot.py diff --git a/tmw2_bot.py b/tmw2_bot.py new file mode 100755 index 0000000..72a44b0 --- /dev/null +++ b/tmw2_bot.py @@ -0,0 +1,21 @@ +#!/usr/bin/python2 + +# TODO: Put this on Except ImportException(): +print "This program requires PyAutoGUI installed" +print "Use pip install pyautogui if you are lacking package" + +import pyautogui +import random +from time import sleep + +sleep(2) +pyautogui.alert('Mouboo Botter version 0.1\nEnsure that ManaPlus windows is focused.\nThis program needs window on focus!') +sleep(1) + +while True: + pyautogui.press('ctrl') + sleep(1) + pyautogui.press('z') + pyautogui.write(['z', 'z']) + sleep(1) + -- cgit v1.2.3-60-g2f50