summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmw2_bot.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tmw2_bot.sh b/tmw2_bot.sh
new file mode 100644
index 0000000..adbe8c0
--- /dev/null
+++ b/tmw2_bot.sh
@@ -0,0 +1,15 @@
+# User Settings
+USER="login_name";
+MANAPLUS="1.9.3.23";
+
+# Server settings
+SERVER="server.tmw2.org";
+
+# Logic
+while :; do
+ xdotool search --sync --name "ManaPlus $MANAPLUS - $USER $SERVER" key "ctrl" ;
+ sleep 1 ;
+ xdotool search --sync --name "ManaPlus $MANAPLUS - $USER $SERVER" key z z ;
+ sleep 1 ;
+done
+