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.

Difference between revisions of "User:DDR"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
===Dwarf Fortress General Script===
 
===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.
+
This AutoHotKey script (ahk 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.
 +
 
 +
The gettage of AHK and this Script (for beginners):
 +
Grab the installer from http://www.autohotkey.com/, and install it.
 +
Next, copy the script you want below.
 +
Nip over to Windows Explorer. Go to where you want to store the script, and, from the right click menu, select new -> autohotkey script.
 +
Edit the script (it's in the right-click menu). Click in the text that appears, and press ctrl-a, ctrl-v, ctrl-s, ctrl-f4.
 +
Now, run the script by double-clicking on it. Now, when you press the key combo, it will start the script.
 +
 
 +
Fortress Mode Keys:
 
<pre>; AutoHotkey Version: 1.x
 
<pre>; AutoHotkey Version: 1.x
 
; Language:      English
 
; Language:      English
Line 16: Line 25:
 
; ctrl number pad plus. - Enter select, and advance the cursor with the number pad plus 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.
 
; 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.
 +
; ctrl q . . . . - Dig quarters bloc. 3x3 rooms, ((8 rooms in 2x4 grid) on hallway) x4. Enter dig mode and place cursor on upper left corner of future 2x2 up/down stairway.
  
 
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
 
#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.
 
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
 +
SetKeydelay, 30
 +
 +
#SingleInstance force
  
 
^+.::Send {> 10}
 
^+.::Send {> 10}
Line 33: Line 45:
  
 
^i::Send {ENTER}3{ENTER}7{SHIFTDOWN}.{SHIFTUP}
 
^i::Send {ENTER}3{ENTER}7{SHIFTDOWN}.{SHIFTUP}
 +
Return
 +
 +
^q::
 +
Send, i{ENTER}{RIGHT}{DOWN}{ENTER}{SHIFTDOWN}, .{SHIFTUP}d9{ENTER}{SHIFTDOWN}, {SHIFTUP}{SHIFTDOWN}{RIGHT}{SHIFTUP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{SHIFTDOWN}.{SHIFTUP}{ENTER}{DOWN}{DOWN}7{ENTER}1{ENTER}x{ENTER}9{ENTER}d{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}3{ENTER}11{ENTER}77722138{ENTER}9918{ENTER}{ENTER}11{ENTER}988{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}444{ENTER}{ENTER}x{ENTER}{ENTER}d4{ENTER}{ENTER}3{ENTER}11{ENTER}3{ENTER}{ENTER}3{ENTER}11{ENTER}778888{ENTER}11{ENTER}337{ENTER}{ENTER}88{ENTER}{ENTER}224138{ENTER}33{ENTER}{LEFT}{LEFT}{LEFT}{LEFT}{ENTER}{UP}{UP}{UP}{UP}{UP}{UP}{LEFT}{UP}{ENTER}{UP}{UP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{DOWN}{ENTER}{ENTER}{LEFT}{LEFT}{LEFT}{LEFT}{UP}{UP} ;lower right corner
 +
Send, 9936{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}7{ENTER}99{ENTER}4444{ENTER}22222224{ENTER}66666666{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}7{ENTER}99{ENTER}66{ENTER}33{ENTER}1{ENTER}{ENTER}137{ENTER}33{ENTER}1{ENTER}{ENTER}6666{ENTER}{ENTER}9{ENTER}77{ENTER}88{ENTER}99{ENTER}122{ENTER}{ENTER}1111144444444444 ;upper right corner
 +
Send, {LEFT}{ENTER}{LEFT}{LEFT}{ENTER}9{ENTER}{ENTER}7{ENTER}99x222{ENTER}44d{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}9{ENTER}77{ENTER}44{ENTER}11{ENTER}3{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}1771{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}7{ENTER}99{ENTER}714{ENTER}4x{ENTER}d{ENTER}11{ENTER}3{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}1{ENTER}{SHIFTDOWN}{RIGHT}{SHIFTUP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{ENTER}86 ; upper left corner
 +
Send, 411{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}3{ENTER}11{ENTER}44{ENTER}77{ENTER}9{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}144{ENTER}x{ENTER}7d{ENTER}{ENTER}3d{ENTER}11{ENTER}3{ENTER}{ENTER}3{ENTER}11{ENTER}44{ENTER}77{ENTER}9{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}66666666666666688{SHIFTDOWN}.{SHIFTUP} ;lower left corner
 
Return</pre>
 
Return</pre>

Revision as of 02:29, 2 May 2010

AHK Scripts

Dwarf Fortress General Script

This AutoHotKey script (ahk 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.

The gettage of AHK and this Script (for beginners): Grab the installer from http://www.autohotkey.com/, and install it. Next, copy the script you want below. Nip over to Windows Explorer. Go to where you want to store the script, and, from the right click menu, select new -> autohotkey script. Edit the script (it's in the right-click menu). Click in the text that appears, and press ctrl-a, ctrl-v, ctrl-s, ctrl-f4. Now, run the script by double-clicking on it. Now, when you press the key combo, it will start the script.

Fortress Mode Keys:

; 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.
;	ctrl q	.	.	.	.	- Dig quarters bloc. 3x3 rooms, ((8 rooms in 2x4 grid) on hallway) x4. Enter dig mode and place cursor on upper left corner of future 2x2 up/down stairway.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetKeydelay, 30

#SingleInstance force

^+.::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

^q:: 
Send, i{ENTER}{RIGHT}{DOWN}{ENTER}{SHIFTDOWN}, .{SHIFTUP}d9{ENTER}{SHIFTDOWN}, {SHIFTUP}{SHIFTDOWN}{RIGHT}{SHIFTUP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{SHIFTDOWN}.{SHIFTUP}{ENTER}{DOWN}{DOWN}7{ENTER}1{ENTER}x{ENTER}9{ENTER}d{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}3{ENTER}11{ENTER}77722138{ENTER}9918{ENTER}{ENTER}11{ENTER}988{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}444{ENTER}{ENTER}x{ENTER}{ENTER}d4{ENTER}{ENTER}3{ENTER}11{ENTER}3{ENTER}{ENTER}3{ENTER}11{ENTER}778888{ENTER}11{ENTER}337{ENTER}{ENTER}88{ENTER}{ENTER}224138{ENTER}33{ENTER}{LEFT}{LEFT}{LEFT}{LEFT}{ENTER}{UP}{UP}{UP}{UP}{UP}{UP}{LEFT}{UP}{ENTER}{UP}{UP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{DOWN}{ENTER}{ENTER}{LEFT}{LEFT}{LEFT}{LEFT}{UP}{UP}	;lower right corner
Send, 9936{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}7{ENTER}99{ENTER}4444{ENTER}22222224{ENTER}66666666{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}7{ENTER}99{ENTER}66{ENTER}33{ENTER}1{ENTER}{ENTER}137{ENTER}33{ENTER}1{ENTER}{ENTER}6666{ENTER}{ENTER}9{ENTER}77{ENTER}88{ENTER}99{ENTER}122{ENTER}{ENTER}1111144444444444	;upper right corner
Send, {LEFT}{ENTER}{LEFT}{LEFT}{ENTER}9{ENTER}{ENTER}7{ENTER}99x222{ENTER}44d{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}9{ENTER}77{ENTER}44{ENTER}11{ENTER}3{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}1771{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}7{ENTER}99{ENTER}714{ENTER}4x{ENTER}d{ENTER}11{ENTER}3{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}1{ENTER}{SHIFTDOWN}{RIGHT}{SHIFTUP}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{ENTER}86	; upper left corner
Send, 411{ENTER}{ENTER}1{ENTER}33{ENTER}1{ENTER}{ENTER}3{ENTER}11{ENTER}44{ENTER}77{ENTER}9{ENTER}{ENTER}9{ENTER}77{ENTER}9{ENTER}{ENTER}144{ENTER}x{ENTER}7d{ENTER}{ENTER}3d{ENTER}11{ENTER}3{ENTER}{ENTER}3{ENTER}11{ENTER}44{ENTER}77{ENTER}9{ENTER}{ENTER}7{ENTER}99{ENTER}7{ENTER}{ENTER}66666666666666688{SHIFTDOWN}.{SHIFTUP}	;lower left corner
Return