diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-24 11:11:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-24 11:11:44 -0300 |
commit | cb0d3f9441b42540eb0827f410a7458cf38b05f8 (patch) | |
tree | d21420a69cef249678029e8ea0c1f56e29193bcc | |
parent | 044b408a5c9ad9ad9f1b69582449171d6a00cb99 (diff) | |
download | all-cb0d3f9441b42540eb0827f410a7458cf38b05f8.tar.gz all-cb0d3f9441b42540eb0827f410a7458cf38b05f8.tar.bz2 all-cb0d3f9441b42540eb0827f410a7458cf38b05f8.tar.xz all-cb0d3f9441b42540eb0827f410a7458cf38b05f8.zip |
New bot script in Python
-rwxr-xr-x | tmw2_bot.py | 21 |
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) + |