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 User:DDR

Jump to navigation Jump to search

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


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 36: Line 36:
  
 
===Dwarf Fortress General AHK Script===
 
===Dwarf Fortress General AHK Script===
These AutoHotKey scripts (ahk scripts) 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. If you'd like to suggest a new hotkey, you can leave me a message on the talk page.
+
These AutoHotKey scripts (ahk scripts) 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. If you wish a new hotkey, you can leave me a message on the talk page.
  
====Examples====
+
====The gettage of AHK and this Script (for beginners):====
Trading at a depot is conductive to RSI, especially for trades of over 20,000☼. If you've got your depot set up so that it draws from an immediate stockpile which only accepts trade goods, you can hold '''ctrl-enter''' to select everything. (So, basically, this presses the select and down key for you as long as you hold the key combo.) Pressing '''ctrl-page down''' when you have a leather or cloth barrel from a trader selected selects that barrel for trading, and advances to the next cloth or leather barrel. Much easier!<br />
 
Now, let's say you want to move up couple dozen z-levels, for you are at the bottom of a large cavern. Normally, this is just a matter of holding shift-<, but it can take a few seconds to scroll up. If you press '''ctrl-shift-<''', you'll go up TEN z-levels for every press of the button. Over short distances of 20 z-levels, this reduces a several second wait to a second-long process, giving up to a 75% savings of time! Over long-distances, however, this hotkey is only slightly quicker, maybe 25% or so.<br />
 
Ah, designating rooms. It's both fun and kind of boring. My least favourite is designating bedrooms for my dwarfs. Sure, I could put them in a barracks, but where's the class? (Besides, they'll clean up their clothes if you give them their own room.) You can one-press designate two styles of room, and for one of the styles you can also invoke automatic furniture layout and automatic make room.
 
 
 
====The installation of AHK and this Script (for beginners):====
 
  
 
Grab the installer from http://www.autohotkey.com/, and install it.
 
Grab the installer from http://www.autohotkey.com/, and install it.
Line 49: Line 44:
 
Next, copy the script you want below.
 
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.
+
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, then press ctrl-a, ctrl-v, ctrl-s, ctrl-f4.
+
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.
 
Now, run the script by double-clicking on it. Now, when you press the key combo, it will start the script.

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)