# Autohotkey scripts

**URL:** <https://discourse.cataclysmdda.org/t/autohotkey-scripts/390>\
**Category:** The Bunker\
**Created:** [March 8, 2013, 5:52pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390 "2013-03-08T17:52:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenoxite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kenoxite/32/858_2.png) [@kenoxite](https://discourse.cataclysmdda.org/u/kenoxite)\
**Post date:** [March 8, 2013, 5:52pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/1 "2013-03-08T17:52:57Z")

</div>

A simple autohotkey script that automates somewhat the process of cooking meat and boiling water. For meat press Ctrl+F and it’ll try to cook five chunks in a row. For water press Ctrl+W and it’ll automatically go to the process up to where you choose the container for your clean water.

[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.

; Make meat  
^F::  
loop 5 {  
Send, {&}  
Sleep, 100  
Send, {\>}  
Sleep, 100  
Send, {\>}  
Sleep, 100  
Send, {Return}  
Sleep, 100  
Send, {Return}  
Sleep, 100  
Send, {ESC}  
Sleep, 100  
}

; Make water  
^W::  
Send, {&}  
Sleep, 100  
Send, {\>}  
Sleep, 100  
Send, {\>}  
Sleep, 100  
Send, {\>}  
Sleep, 100  
Send, {Return}  
Sleep, 100  
Send, {N}  
Sleep, 100[/code]

Hopefully some day this won’t be needed as we’ll have a proper way to go through grindy batch processes like those in-game.

To use this script first get AutoHotkey ([http://www.autohotkey.com/](http://www.autohotkey.com/)), install it, create a new autohotkey script in your DDA dir (or wherever) and copy/paste the code from above. Then double click the script file.

## – I’m not sure how legit is seen by this community using autohotkey. If for some reason you think this thread is inappropriate feel free to close it or delete it.

EDIT: Added sleeps at the end of each block. Particularly necessary for the meat one, as sometimes it failed to register the first actions of the next loop

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [March 8, 2013, 6:29pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/2 "2013-03-08T18:29:02Z")

</div>

There’s no problem using AHK to remove the tedium from tasks. We want a fun game, not a water boiling simulator.

---

<div class="post-metadata">

**Author:** ![kenoxite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kenoxite/32/858_2.png) [@kenoxite](https://discourse.cataclysmdda.org/u/kenoxite)\
**Post date:** [March 8, 2013, 7:12pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/3 "2013-03-08T19:12:41Z")

</div>

Great. Any plans on streamlining that kind of task?

---

<div class="post-metadata">

**Author:** ![Mij](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Mij](https://discourse.cataclysmdda.org/u/Mij)\
**Post date:** [March 8, 2013, 7:46pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/4 "2013-03-08T19:46:23Z")

</div>

A repeat last action key would be pretty fantastic.

---

<div class="post-metadata">

**Author:** ![n9103](https://avatars.discourse-cdn.com/v4/letter/n/e19adc/32.png) [@n9103](https://discourse.cataclysmdda.org/u/n9103)\
**Post date:** [March 9, 2013, 12:43am UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/5 "2013-03-09T00:43:12Z")

</div>

> [@Mij](#):
>
> A repeat last action key would be pretty fantastic.

This, a dozen times this.

---

<div class="post-metadata">

**Author:** ![HurlockHolmes](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@HurlockHolmes](https://discourse.cataclysmdda.org/u/HurlockHolmes)\
**Post date:** [March 11, 2013, 6:25am UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/6 "2013-03-11T06:25:19Z")

</div>

You sir, are a gentleman and a scholar. Thanks for this.

---

<div class="post-metadata">

**Author:** ![kenoxite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kenoxite/32/858_2.png) [@kenoxite](https://discourse.cataclysmdda.org/u/kenoxite)\
**Post date:** [March 11, 2013, 1:35pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/7 "2013-03-11T13:35:17Z")

</div>

Oh, you’re too kind, my dear sir.

Also, modified the script a bit so it works better with the loops when creating cooked meat.

---

<div class="post-metadata">

**Author:** ![Iosyn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/iosyn/32/35_2.png) [@Iosyn](https://discourse.cataclysmdda.org/u/Iosyn)\
**Post date:** [March 11, 2013, 1:49pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/8 "2013-03-11T13:49:55Z")

</div>

> [@The Darkling Wolf](#):
>
> There’s no problem using AHK to remove the tedium from tasks. We want a fun game, not a water boiling simulator.

Hey, it’s a roguelike. Boiling water is fun. 😃

That said thanks for bumping this kenoxite, can’t believe I missed it. looks very useful-- and yeah, cooking one piece of meat at a time in a frying pan or pot seems a bit stupid to me, so cooking or boiling a batch of meat or water would be nice.

---

<div class="post-metadata">

**Author:** ![kenoxite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kenoxite/32/858_2.png) [@kenoxite](https://discourse.cataclysmdda.org/u/kenoxite)\
**Post date:** [March 11, 2013, 5:22pm UTC](https://discourse.cataclysmdda.org/t/autohotkey-scripts/390/9 "2013-03-11T17:22:06Z")

</div>

No problem.

Anyway, it seems that soon this script won’t be needed anymore. Check the latest commits to github 😉
