From 18c7698c1effd6a2bd526c04dbe49a84978c153d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 23 Mar 2019 23:07:34 -0300 Subject: Add a simple Linux bot for At Keyboard botting --- tmw2_bot.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tmw2_bot.sh 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 + -- cgit v1.2.3-60-g2f50