# Is There Macro in The Game?

**URL:** <https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632>\
**Category:** The Drawing Board\
**Created:** [September 29, 2016, 2:56pm UTC](https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632 "2016-09-29T14:56:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_k1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/_k1/32/1335_2.png) [@\_k1](https://discourse.cataclysmdda.org/u/_k1)\
**Post date:** [September 29, 2016, 2:56pm UTC](https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632/1 "2016-09-29T14:56:11Z")

</div>

So far I haven’t found any.

Either the Angband macro, or DF macro, can help with the extensive item interaction.

---

<div class="post-metadata">

**Author:** ![Hibou](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/hibou/32/1330_2.png) [@Hibou](https://discourse.cataclysmdda.org/u/Hibou)\
**Post date:** [September 29, 2016, 7:21pm UTC](https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632/2 "2016-09-29T19:21:46Z")

</div>

I don’t think there’s true macros in the game, but there is the Execute Action menu under the ‘%’ button.

---

<div class="post-metadata">

**Author:** ![\_k1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/_k1/32/1335_2.png) [@\_k1](https://discourse.cataclysmdda.org/u/_k1)\
**Post date:** [September 30, 2016, 3:43pm UTC](https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632/3 "2016-09-30T15:43:02Z")

</div>

Although it’s a list of what you can do, ‘%’ requires as many key presses as simply 'a’pply, and cannot repeat.

I want to macro the ‘elyEnterEnterl’ rubble clearing process.

So I got a macro maker called autohotkey, and created a ‘khkhkhkh’ macro to test, but it seemed that only the last letter ‘h’ was actually input. And I set the delay 50 milisec, but that did not work.

---

<div class="post-metadata">

**Author:** ![The13thRonin](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@The13thRonin](https://discourse.cataclysmdda.org/u/The13thRonin)\
**Post date:** [October 1, 2016, 8:40am UTC](https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632/4 "2016-10-01T08:40:30Z")

</div>

[quote="§k, post:3, topic:12632"]Although it’s a list of what you can do, ‘%’ requires as many key presses as simply 'a’pply, and cannot repeat.

I want to macro the ‘elyEnterEnterl’ rubble clearing process.

So I got a macro maker called autohotkey, and created a ‘khkhkhkh’ macro to test, but it seemed that only the last letter ‘h’ was actually input. And I set the delay 50 milisec, but that did not work.[/quote]

I use this program too!

---

<div class="post-metadata">

**Author:** ![\_k1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/_k1/32/1335_2.png) [@\_k1](https://discourse.cataclysmdda.org/u/_k1)\
**Post date:** [October 1, 2016, 11:17am UTC](https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632/5 "2016-10-01T11:17:21Z")

</div>

GREAT! How do you use it? Could you share any script?

---

<div class="post-metadata">

**Author:** ![\_k1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/_k1/32/1335_2.png) [@\_k1](https://discourse.cataclysmdda.org/u/_k1)\
**Post date:** [October 4, 2016, 3:39pm UTC](https://discourse.cataclysmdda.org/t/is-there-macro-in-the-game/12632/6 "2016-10-04T15:39:00Z")

</div>

[code]#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.  
; #Warn ; Enable warnings to assist with detecting common errors.  
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.  
SetWorkingDir %A\_ScriptDir% ; Ensures a consistent starting directory.

F1::  
loop 10 {  
loop 10 {  
Send, e  
Sleep, 100  
Send, h  
Sleep, 100  
Send, y  
Sleep, 100  
Send, {Enter}  
Sleep, 100  
Send, {Enter}  
Sleep, 100  
Send, h  
Sleep, 500  
}  
loop 10 {  
Send, l  
Sleep, 500  
}  
Send, j  
Sleep, 500  
}[/code]

That’s how Urist finishes a 10x10 designation of rubble clearing.
