Here is how I got it working ...
Rcord a new macro like this
1) Be standing at full HAM status
2) Hit record button
3) Start sample
4) when text pops up stating that you sampled xx resources or you failed to sample xx resources hit the ESC button once
5) Wait and repeat step 4 each time text pops so you have pressed ESC after each sample.
6) when HAM runs out SIT
7) When HAM recovers STAND

Stop recording macro
9) Playback looped
Has worked for me so far...