preload button hover image:
Current Time: Oct 06, 2022, 11:37:32 am
 Dwarf Fortress File Depot » Miscellaneous » DF app controller source code example
Registration is not required to download. However, it will allow you to vote, comment, and upload. Forgot your password?
File Listing: DF app controller source code example
Last Updated: Apr 07, 2008, 08:33:18 am
File version: 0.1 beta
For DF version:
Downloads: 90 Size: 7.7 KB
Views: 1,074 Type: ZIP
Rating (0 votes): Unrated
The enclosed source code shows how to control DF from a second application. This example shows two things:
1) It accepts keypresses and forwards them to DF.
2) The "File/Open" menu selection opens and parses a "loadout" file, sending the specified item selections to DF as though you entered them manually.

DF needs to be running, though it can be started either before or after this program.
For the "File/Open" (loadout) command, DF needs to be in the item selection screen ("prepare for the journey carefully" then tab to the items screen.) This command will remove the default selections by sending 105 VK_SUBTRACT keypresses (numpad -), then will send the keypresses needed to select the items listed in the loadout file. See loadout.txt for an example.
This only works on Windows.
There is almost no error checking.
This does not directly change DF memory.
Raw Data: JSON / Text
Checksum / Hash
SHA-256: aae6b759b2fc0921256e4c92da467bed5025c468d7138874734555a0159dc5d5
IP: logged
More From This Author
No comments have been posted for this file yet.

Website © 2022 FenriSoft. The core site script is PHCDownload (© 2005-2022).
Hosted by Linode.