MegaGlest Forum
MegaGlest => Feature requests => Topic started by: andy_5995 on 14 February 2016, 04:07:56
-
Right now, clicking on a barracks, and then clicking on the swordman icon will build 1 swordman.
What if there was a number (0-9) below each unit icon? I could change that number to 3 by clicking an up or down arrow, so that every time I click the unit icon, it would add 3 units to the production queue. Later in the game, if I want to change it back to 1, or to 9, I could click the up or down arrow above and below the number.
-
Proper hotkeys would solve this problem and make the game much more enjoyable.
-
In the meantime, I've made a couple of my own key bindings
I set up keyboard shortcuts to execute these scripts:
Alt-1 will run this script during the game:
#!/bin/sh
# 1st-unit.sh 20160425.1
# After a building has been selected, will move the mouse to
# the first unit and simulate a single-mouse click.
#
# This uses 'xmacroplay', included in the "xmacro" package found
# in most *nix distributions.
# The x & y coordinates for MotionNotify will depend on the
# players resolution, and can be found using xmacrorec2 from
# the "xmacro" package.
echo -e "MotionNotify 1112 239" | /usr/bin/xmacroplay :0
echo -e "ButtonPress 1" | /usr/bin/xmacroplay :0
echo -e "ButtonRelease 1" | /usr/bin/xmacroplay :0
exit $?
assigned to Alt-4
#!/bin/sh
# 4clicks.sh 20160425.1
# simulate left-click 4 times
#
for i in 1 2 3 4
do
echo -e "ButtonPress 1" | /usr/bin/xmacroplay :0
echo -e "ButtonRelease 1" | /usr/bin/xmacroplay :0
sleep 1s
done
exit $?