summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtmw2_bot.py21
1 files changed, 21 insertions, 0 deletions
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)
+