v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing 40d:Macros and keymaps

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "40d"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Quality|Superior|11:05, 18 May 2015 (UTC)}}
 
 
{{av}}
 
{{av}}
 
Playing Dwarf Fortress means lots of typing.  Although the game has no internal macro/keymap system (except in alpha version 40d12), using an external program can save you a great deal of time when dumping, rewalling, designating, and so forth.
 
Playing Dwarf Fortress means lots of typing.  Although the game has no internal macro/keymap system (except in alpha version 40d12), using an external program can save you a great deal of time when dumping, rewalling, designating, and so forth.
  
#  Go to [[Utilities#AutoHotKey]] and download AutoHotKey.  Installation is simple and the program uses few system resources.
+
#  Go to [[40d:Utilities#AutoHotKey|Utilities#AutoHotKey]] and download AutoHotKey.  Installation is simple and the program uses few system resources.
 
#  Write macro scripts (file type .ahk), which may contain any number of commands.  You activate scripts by double-clicking .ahk files and deactivate them by right-clicking the AutoHotKey icon on the task bar.  Both of these can be done at any time - even right in the middle of a game.  AutoHotKey also allows for automated activation of scripts.
 
#  Write macro scripts (file type .ahk), which may contain any number of commands.  You activate scripts by double-clicking .ahk files and deactivate them by right-clicking the AutoHotKey icon on the task bar.  Both of these can be done at any time - even right in the middle of a game.  AutoHotKey also allows for automated activation of scripts.
  
Line 80: Line 79:
 
===Dumping===
 
===Dumping===
  
====[[GuiDumper.ahk]]====
+
====[[40d:GuiDumper.ahk|GuiDumper.ahk]]====
 
This script allows the user to specify a range of squares to dump.
 
This script allows the user to specify a range of squares to dump.
  
Line 86: Line 85:
 
Taken from an old version of [[User:Jackard|Jackard's user page]].
 
Taken from an old version of [[User:Jackard|Jackard's user page]].
  
To use, first have your bookkeeper do enough desk work so you can view individual items in the stocks listing.  Then bring it up and press del to quickly mark stuff.  To adjust the key repeat rate, edit the KEY_HOLD_MS value in \data\init\init.txt.
+
To use, first have your bookeeper do enough desk work so you can view individual items in the stocks listing.  Then bring it up and press del to quickly mark stuff.  To adjust the key repeat rate, edit the KEY_HOLD_MS value in \data\init\init.txt.
  
 
<pre>
 
<pre>
Line 107: Line 106:
 
This script uses a system similar the commands in the designations menu to mark most of the contents of a large area for dumping. [[User:Dukederek|My talk page]] has more detailed instruction.
 
This script uses a system similar the commands in the designations menu to mark most of the contents of a large area for dumping. [[User:Dukederek|My talk page]] has more detailed instruction.
  
Essentially you need to create two text files with the following titles and content. When playing DF it is safe to have blockdumpinit running constantly as long as you don't plan on using the ctrl-d combination for something else.
+
Essentially you need to create two text files with the following titles and content. When playing DF it is safe to have blockdumpinit running constantly as long as you dont plan on using the ctrl-d combination for something else.
  
 
'''blockdumpinit.ahk'''
 
'''blockdumpinit.ahk'''
Line 792: Line 791:
  
 
===Bed Assigning macro===
 
===Bed Assigning macro===
This will assign bedrooms to your dwarves. Press F3 followed by a single digit indicating how many beds to assign. Can repeat the action, as the number of beds assigned is stored in a counter. Room size is default, but easily edited into the script. By [[User:Napsterbater|Napsterbater]].
+
This will assign bedrooms to your dwarfs. Press F3 followed by a single digit indicating how many beds to assign. Can repeat the action, as the number of beds assigned is stored in a counter. Room size is default, but easily edited into the script. By [[User:Napsterbater|Napsterbater]].
  
 
<pre>
 
<pre>
Line 821: Line 820:
 
This macro can read a spreadsheet and designate rooms according to it. [http://www.bay12games.com/forum/index.php?topic=1428.0 Version 1]
 
This macro can read a spreadsheet and designate rooms according to it. [http://www.bay12games.com/forum/index.php?topic=1428.0 Version 1]
  
Version 2 of this macro apparently only works in versions up to and including 38c {{verify}}, and can be found here: [http://www.bay12games.com/forum/index.php?topic=1890.0 Version 2]
+
Version 2 of this macro apparently only works in versions up to and including 38c <sup>[[verify]]</sup>, and can be found here: [http://www.bay12games.com/forum/index.php?topic=1890.0 Version 2]
  
 
====Fedor's chambered circle====
 
====Fedor's chambered circle====
 
A circular room with eight equal-sized chambers, suitable for everything from housing to workshops to a mausoleum.<br>
 
A circular room with eight equal-sized chambers, suitable for everything from housing to workshops to a mausoleum.<br>
 
[http://mkv25.net/dfma/movie-216-room-designationmacro01 See this macro in action]<br>
 
[http://mkv25.net/dfma/movie-216-room-designationmacro01 See this macro in action]<br>
[[Macros_and_Keymaps_Examples#Room-designation Macro 01|Macro text]]
+
[[40d:Macros_and_Keymaps_Examples#Room-designation Macro 01|Macro text]]
  
 
====Valdemar's bedroom complex====
 
====Valdemar's bedroom complex====
Line 840: Line 839:
  
 
====Tulip's room macros====
 
====Tulip's room macros====
Based on [[Bedroom_design|the bedroom designs.]]
+
Based on [[40d:Bedroom_design|the bedroom designs.]]
  
 
^g means alt+g, !g means ctrl+g, and so on.
 
^g means alt+g, !g means ctrl+g, and so on.
Line 925: Line 924:
  
 
====LordGrunt's room macro====
 
====LordGrunt's room macro====
Based on 1 of the fractal [[Bedroom_design|bedroom designs.]]
+
Based on 1 of the fractal [[40d:Bedroom_design|bedroom designs.]]
  
 
[http://mkv25.net/dfma/movie-1226-fractalbedrooms Demo Movie]
 
[http://mkv25.net/dfma/movie-1226-fractalbedrooms Demo Movie]
Line 1,498: Line 1,497:
  
 
===Fancy Exploration Mining===
 
===Fancy Exploration Mining===
This script digs a connected series of mine shafts, as in [[Mineshaft Stitching]]. Start this script in the upper-left corner of the area you want to explore. Set the spacing to a value greater than 1 if you want to look for large clusters. Note that this pattern creates a very long walkway back to the start of the mineshafts. If you do not excavate routinely, consider connecting the top-level paths of areas you have already explored.
+
This script digs a connected series of mine shafts, as in [[40d:Mineshaft Stitching|Mineshaft Stitching]]. Start this script in the upper-left corner of the area you want to explore. Set the spacing to a value greater than 1 if you want to look for large clusters. Note that this pattern creates a very long walkway back to the start of the mineshafts. If you do not excavate routinely, consider connecting the top-level paths of areas you have already explored.
  
 
<pre>
 
<pre>
Line 1,714: Line 1,713:
  
 
====The MOUSE control====
 
====The MOUSE control====
For unrivaled mouse control in DF try [[User:Digger|this DF Mouse script]]
+
For unrivaled mouse control in DF try [http://www.dwarffortresswiki.net/index.php/User:Digger this DF Mouse script]
  
 
====Tile Counter or Scrolling Accelerator====
 
====Tile Counter or Scrolling Accelerator====
 
Lack of reference plus slow scroll speed make planning digging area frustrating,so here is the script that shows coordinate and speed scrolling up.
 
Lack of reference plus slow scroll speed make planning digging area frustrating,so here is the script that shows coordinate and speed scrolling up.
[[User:Daedalusai|ShowXY]]
+
[http://www.dwarffortresswiki.net/index.php/User:Daedalusai ShowXY]
  
 
===4-Pour Water Creation script===
 
===4-Pour Water Creation script===
Line 2,231: Line 2,230:
 
1111111111111111111111111111111111111
 
1111111111111111111111111111111111111
  
</pre>
 
 
=== jokermatt999's pump stack builder ===
 
 
Just a simple macro to place one mined level of a pump stack room, as illustrated in the pump stack page on this wiki. It's recommended you exit out after finishing up with it, as the macro is just assigned to p. Hit/Hold down p for multiple layers.
 
 
<pre>
 
p::Send i{Enter}{Enter}{Right}d{Enter}{Right}{Right}{Down}{Down}{Enter}h{Enter}{Enter}{Up}{Left}x{Enter}{Enter}{Left}{Left}{Down}h{Enter}{Enter}{Up}{Up}{Shift Down}.{Shift Up}
 
</pre>
 
 
<pre>
 
p::
 
Send i{Enter 2}
 
Send d6{Enter}33{Enter}
 
Send h{Enter 2}
 
Send x7{Enter 2}
 
Send h14{Enter 2}
 
Send 88{Shift Down}.{Shift Up}
 
return
 
 
</pre>
 
</pre>
  
 
{{Game_Interface FAQ}}
 
{{Game_Interface FAQ}}
 
[[Category:ahk scripts]]
 
[[Category:ahk scripts]]

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: