@magge I don't think so either, but I tried another approach of listening in on the OnCommandIssued event. This would not include every single click, but maybe that is a good thing? Curious if you or someone else can see something I don't here, before I go too far down this road.
This is a simple test, but it does correctly logs the current APM over the last minute. Multiple commands given at once counts as one action, but we could still aggregate that data and a lot more, if it could be interesting in the statistics.
APM_1.zip if you want to try, but this is really all it does right now:
INFO: Current APM: 6 .. Total actions: 6 .. Total commands: 20 INFO: apmlog: { INFO: - 21.650968551636: { INFO: - - AggressiveMove: 1 INFO: - } INFO: - 4.588408946991: { INFO: - - BuildMobile: 1 INFO: - - None: 1 INFO: - } INFO: - 6.1044588088989: { INFO: - - Move: 1 INFO: - } INFO: - 6.5816397666931: { INFO: - - Move: 1 INFO: - } INFO: - 5.6394691467285: { INFO: - - Move: 1 INFO: - } INFO: - 9.7966756820679: { INFO: - - BuildMobile: 13 INFO: - - None: 1 INFO: - } INFO: }