The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "Beren/Macros"

From A Tale in the Desert
Jump to navigationJump to search
(New page: '''Flax Weeding''' ---- This is a flax hotkey weeding macro for Linux/xautomation. #!/usr/bin/bash xte 'mouseclick 1'; sleep 0.1; xte 'mousermove 20 -10'; sleep 0.1; xte 'mouseclick 1'...)
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
This is a flax hotkey weeding macro for Linux/xautomation.
 
This is a flax hotkey weeding macro for Linux/xautomation.
  
 +
<code>
 +
<pre>
 
#!/usr/bin/bash
 
#!/usr/bin/bash
 
 
xte 'mouseclick 1';
 
xte 'mouseclick 1';
 
sleep 0.1;
 
sleep 0.1;
Line 12: Line 13:
 
sleep 0.1;
 
sleep 0.1;
 
xte 'mouseclick 1';
 
xte 'mouseclick 1';
 +
</pre>
 +
</code>
  
 
To get this to work in Gnome do the following:
 
To get this to work in Gnome do the following:
  
 
1. Run "gconf-editor" from a command line.
 
1. Run "gconf-editor" from a command line.
 +
 
2. Go to apps->metacity->keybinding_commands
 
2. Go to apps->metacity->keybinding_commands
 +
 
3. Change the Value in command_1 to the command to run the above script, e.g. bash /home/beren/macros/weed.sh
 
3. Change the Value in command_1 to the command to run the above script, e.g. bash /home/beren/macros/weed.sh
 +
 
4. Go to apps->metacity->global_keybindings
 
4. Go to apps->metacity->global_keybindings
 +
 
5. Change the value of "run_command_1" to e.g. <Alt>s
 
5. Change the value of "run_command_1" to e.g. <Alt>s
 +
  
 
Now when you hover your mouse over flax which requires weeding and hit Alt+s it'll run the macro.
 
Now when you hover your mouse over flax which requires weeding and hit Alt+s it'll run the macro.

Latest revision as of 01:50, 15 December 2008

Flax Weeding


This is a flax hotkey weeding macro for Linux/xautomation.

#!/usr/bin/bash
xte 'mouseclick 1';
sleep 0.1;
xte 'mousermove 20 -10';
sleep 0.1;
xte 'mouseclick 1';

To get this to work in Gnome do the following:

1. Run "gconf-editor" from a command line.

2. Go to apps->metacity->keybinding_commands

3. Change the Value in command_1 to the command to run the above script, e.g. bash /home/beren/macros/weed.sh

4. Go to apps->metacity->global_keybindings

5. Change the value of "run_command_1" to e.g. <Alt>s


Now when you hover your mouse over flax which requires weeding and hit Alt+s it'll run the macro.