i just figured out how to auto farm.
one problem was that there are 2 types of distance in this program, one in form of radius another in the form of hundreds, i raised the the radius of troop selection to 200 and it worked somehow.
but my problem is now arised, i suddenly relised it sends attacks just for 2 villages (from 40 farms i have) and there are multiple attacks with different amount of troops (5, 6, or 8) just for that village.
right now it has sent 18 attacks with 5 or 6 clubs to 1 village only. why is it like that? and this is the farthest farm i have. so my units are off for 8 hours now.