Back in the US my wife had them trained to eat out of her hand, She would initially place food for them on the ground, and little by little place it closer to her, until they were eating from her hand
It got to the point that they were waiting outside in the morning to be fed.
It also became a bit of a problem because we has a squirrel population explosion. I had to put wire screen over every every roof vent to keep them from getting into the attic.
Here in Thailand , my wife, much to my complains, tried feeding the, but they would never come close. I guess with all the banana trees there is plenty of food for them. I am surprised we dont have more.