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.

User:DDR

From Dwarf Fortress Wiki
Revision as of 23:15, 22 April 2010 by DDR (talk | contribs)
Jump to navigation Jump to search

AHK Scripts

Dwarf Fortress General Script

This script contains hotkeys that automate some repetitive tasks, such as selecting trade goods and designating 100 z-levels of up/down stairs. If any problem or key conflicts are encountered, please leave me a message on the talk page.

; AutoHotkey Version: 1.x
; Language:       English
; Platform:       WinXP
; Author:         D. D. Roberts <robertsdavidddr@gmail.com>
;
; Script Function:
;	This script is a collection of hotkeys that make playing Dwarf Fortress (fortress mode) much, much faster.
;
; Help:
;	ctrl <, >	.	.	.	- Move up or down ten levels. Very handy for the nice new 150 z-level forts.
;	ctrl enter	.	.	.	- Enter select, and advance the cursor with the down arrow key.
;	ctrl number pad plus.	- Enter select, and advance the cursor with the number pad plus key.
;	ctrl i	.	.	.	.	- Dig mode, up/down staircase selected, position mouse cursor in upper left corner. Press to designate a 2x2 up/down staircase and advance one level deeper.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

^+.::Send {> 10}
Return
^+,::Send {< 10}
Return

^Enter::Send {ENTER}{DOWN}
Return

^NumpadAdd::Send {ENTER}{NumpadAdd}
Return

^i::Send {ENTER}3{ENTER}7{SHIFTDOWN}.{SHIFTUP}
Return