I don't use autoforage, instead i use a downshit and a couple socials, it does take a few minutes of groundwork however i do love the results
bind a key combination to a hotbar button (options>keys>hotbutton##) so that the key combo always clicks whatever social is in that button. in this example i'm using shift control a
in said hotbutton slot create a social macro such as
(aForage)
/stand
/pause 2, /doability 2 (or whatever you have assigned the forage skill to)
/pause 20, /autoinventory
/pause 20, /autoinventory
stuff this downshit into your toons mq2melle ini
downshit42=/if (${Me.AbilityReady[Forage]}) /keypress shift+ctrl+a+
i also create 2 additional social buttons usually placed in the same bar one to turn forage on, one to turn it off
(Forage ON)
/melee downflag42=1
(Forage OFF)
/melee downflag42=0
i will also stuff the actual skill button right next to the forage social macro button as a reminder when it is on that it's working
so when i'm somewhere i want to forage i just hit the (Forage ON) button, and when i'm done, or i'm doing something where having /autoinventory commands firing off constantly i can just hit (Forage OFF) and it stops.
i also use the same downshit number for every single toon so that if i'm running a group i can start all of them foraging with a single /bcga //melee downflag42=1 command, cause all my mains have forage AA's even though all but the ranger/druid/bard types are capped at a skill of 100
granted it does take a few minutes to set up, and uses a few buttons but it's extremely flexible, also the same basic setup can be used for fishing although i will set up the social button to use a bandoleer command to ensure that a fishing pole is always equipped even if i break one while fishing