preload button hover image:
HomeSearchRankingsStatisticsAboutContact
Current Time: Dec 03, 2024, 11:27:00 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: 0.27.176.38c
Downloads: 77 Size: 7.7 KB
Views: 501 Type: ZIP
Rating (0 votes): Unrated
Description
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.

Notes:
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
Commands
More From This Author
Comments
No comments have been posted for this file yet.
HomeSearchRankingsStatisticsAboutContact

Website by Brett Flannigan. The core site script is PHCDownload (© 2005-2024).
Hosted by Linode.