Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Autohotkey script for populating Autolabor  (Read 1778 times)

FukkenSaved

  • Bay Watcher
    • View Profile
Autohotkey script for populating Autolabor
« on: January 08, 2015, 07:33:18 am »

Not sure if this is the right place, but here it is:
Code: [Select]
SetKeyDelay, 0 ; Without this it will take ~40 seconds, with it's down to ~3

; Ctrl + alt + A defines hotkey
^!a::

; Wood related
Send autolabor MINE 2 2 2{Enter} ; Set to 1 after basic fortress dug out
Send autolabor CARPENTER 1 1 1{Enter}
Send autolabor BOWYER 1 1 1{Enter}
Send autolabor CUTWOOD 1 1 1{Enter}
Send autolabor WOOD_CRAFT 1 1 1{Enter}

; Stone related
Send autolabor MASON 1 1 1{Enter}
Send autolabor DETAIL 1 1 1{Enter}
Send autolabor STONE_CRAFT 1 1 1{Enter}

; Animals
Send autolabor ANIMALCARE 1 1 1{Enter}
Send autolabor ANIMALTRAIN 1 1 1{Enter}
Send autolabor HUNT 0 0 1{Enter} ; Default deny
Send autolabor TRAPPER 1 1 1{Enter}
Send autolabor DISSECT_VERMIN 1 1 1{Enter}
Send autolabor GELD 1 1 1{Enter}

; Medical
Send autolabor DIAGNOSE 1 1 1{Enter}
Send autolabor SURGERY 1 1 1{Enter}
Send autolabor BONE_SETTING 1 1 1{Enter}
Send autolabor SUTURING 1 1 1{Enter}
Send autolabor DRESSING_WOUNDS 1 1 1{Enter}

; Unskilled medical
Send autolabor FEED_WATER_CIVILIANS 1 500 500{Enter} ; imo these should be high priority
Send autolabor RECOVER_WOUNDED 1 500 500{Enter}

; Farming
Send autolabor PLANT 1 1 1{Enter}
Send autolabor SOAP_MAKER 1 1 1{Enter}
Send autolabor BURN_WOOD 1 1 1{Enter}
Send autolabor POTASH_MAKING 1 1 1{Enter}
Send autolabor LYE_MAKING 1 1 1{Enter}
Send autolabor MILLER 1 1 1{Enter}
Send autolabor PRESSING 1 1 1{Enter}

Send autolabor HERBALIST 1 1 1{Enter}
Send autolabor PROCESS_PLANT 1 1 1{Enter}
Send autolabor BREWER 1 1 1{Enter}
Send autolabor COOK 1 1 1{Enter}
Send autolabor MILK 1 1 1{Enter}
Send autolabor MAKE_CHEESE 1 1 1{Enter}

; Animal products
Send autolabor BUTCHER 1 1 1{Enter}
Send autolabor TANNER 1 1 1{Enter}
Send autolabor LEATHER 1 1 1{Enter}
Send autolabor BONE_CARVE 1 1 1{Enter}

; Fish
Send autolabor FISH 0 0 1{Enter} ; Default deny
Send autolabor CLEAN_FISH 1 1 1{Enter}
Send autolabor DISSECT_FISH 1 1 1{Enter}

; Metalworking
Send autolabor SMELT 1 1 1{Enter}
Send autolabor FORGE_WEAPON 1 1 1{Enter}
Send autolabor FORGE_ARMOR 1 1 1{Enter}
Send autolabor FORGE_FURNITURE 1 1 1{Enter}
Send autolabor METAL_CRAFT 1 1 1{Enter}

; Gems
Send autolabor CUT_GEM 1 1 1{Enter}
Send autolabor ENCRUST_GEM 1 1 1{Enter}

; Glass
Send autolabor GLASSMAKER 1 1 1{Enter}

; Textile Industry
Send autolabor SHEARER 1 1 1{Enter}
Send autolabor SPINNER 1 1 1{Enter}
Send autolabor WEAVER 1 1 1{Enter}
Send autolabor CLOTHESMAKER 1 1 1{Enter}
Send autolabor DYER 1 1 1{Enter}
Send autolabor EXTRACT_STRAND 1 1 1{Enter}

; Pottery
Send autolabor POTTERY 1 1 1{Enter}
Send autolabor GLAZING 1 1 1{Enter}

; Engineering
Send autolabor MECHANIC 1 1 1{Enter}
Send autolabor ARCHITECT 1 1 1{Enter}
Send autolabor SIEGECRAFT 1 1 1{Enter}
Send autolabor SIEGEOPERATE 1 1 1{Enter}

; Pumps
Send autolabor OPERATE_PUMP 1 1 1{Enter}

; Bees
Send autolabor BEEKEEPING 1 1 1{Enter}
Send autolabor WAX_WORKING 1 1 1{Enter}

; Hauling
Send autolabor HAUL_ANIMALS haulers{Enter}
Send autolabor HAUL_BODY haulers{Enter}
Send autolabor HAUL_FOOD haulers{Enter}
Send autolabor HAUL_FURNITURE haulers{Enter}
Send autolabor HAUL_ITEM haulers{Enter}
Send autolabor HANDLE_VEHICLES haulers{Enter}
Send autolabor HAUL_REFUSE haulers{Enter}
Send autolabor HAUL_STONE haulers{Enter}
Send autolabor HAUL_TRADE haulers{Enter}
Send autolabor HAUL_WATER haulers{Enter}
Send autolabor HAUL_WOOD haulers{Enter}
Send autolabor CLEAN haulers{Enter}
Send autolabor REMOVE_CONSTRUCTION haulers{Enter}
Send autolabor PULL_LEVER haulers{Enter}

; Alchemy
Send autolabor ALCHEMIST 0 0 1{Enter} ; Not using any mods - disable

; Not in Dwarf Therapist
Send autolabor BUILD_ROAD 1 500 500{Enter} ; A degree above haulers
Send autolabor BUILD_CONSTRUCTION 1 500 500{Enter}

; End macro definition
return

Put that in a text file, rename it to autolabor.ahk and double click it into autohotkey. It certainly beats typing it all out, my settings are for beginning fortresses and it's in the same order as Dwarf Therapist. Ctrl+alt+A to run, in the DFHack window.
Logged

CyberianK

  • Bay Watcher
    • View Profile
Re: Autohotkey script for populating Autolabor
« Reply #1 on: January 12, 2015, 10:33:55 am »

awesome script,

but one question do you notice an improvement over the default?
For me the only thing I do is disable HUNT and FISH and CUTWOOD (those I do manual with Therapist to avoid them straying through the wilds when I don't want to) plus raise the ARCHITECT minimum. Pretty much everything else I leave default and did not have a problem with it so far.

Do you also have a script for Autoworkflow ? That one would be very helpful.
Logged