User:HarrisonH/AHK/unload

This is a script I wrote for AutoHotKey that empties the rucksack in HM64 automatically. It's optimized for use in the Greenhouse, but will also work in the Chicken Coop and the Barn. It will not work outside (the timing is off), though it'd be easy to change it so that it does. It's used by pressing the Windows Key and T. "z" is set to the A button, and "x" is set to the B button.

SetKeyDelay, 125, 100
 * t::

Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send {DOWN} Send {RIGHT} Send {RIGHT} Send {RIGHT} Send z Send z Send x Sleep 550 Send z Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send {DOWN} Send {RIGHT} Send {RIGHT} Send z Send z Send x Sleep 550 Send z Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send {RIGHT} Send {RIGHT} Send {RIGHT} Send z Send z Send x Sleep 550 Send z Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send {DOWN} Send {RIGHT} Send z Send z Send x Sleep 550 Send z Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send {RIGHT} Send {RIGHT} Send z Send z Send x Sleep 550 Send z Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send {DOWN} Send z Send z Send x Sleep 550 Send z Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send {RIGHT} Send z Send z Send x Sleep 550 Send z Send {ENTER} Sleep 350 Send {DOWN} Send {DOWN} Send z Send z Send x Sleep 550 Send z return