I had an idea while messing with ACWW. I found the location in the game's code where it loads from 0x4000130. Well, I thought, what if you make it load the button values from another address? And simply write the buttons you want to be pressed to that address.
You can have it load from 0x4000130 until a certain code is activated and then load from an address you choose.
Would this be possible? Or am I wasting my time?

0x20E7EC0 should point to the "gba buttons" address in ACWW
normally it'd be 0x20E7EC0 04000130
you can simply replace 04000130 with any address, right?

Edit: i can confirm it does work XD I just tried writing the code for "Down" to 0x22BF110, made the game load from that and my character started moving down on it's own.

Theoretically this can be used to make "auto" codes. Like a code that teleports you to a weed, simulates the B button being pressed, pulls the weed, pauses just long enough to do the "pull weed" animation, and teleports to the next weed and so on. All on it's own.

I'll work on this more when I get home tonight, this is what happens when you're bored and have too much free time -.-