As a little personal project of my own, I'm attempting to make a program that reads the APM value from the windows registry and display it in a little window, kinda like the existing plugin for sc2gears (which as far as I know also uses this method)
My problem though, is once I've finally managed to get this value from the registry, it's nothing like the actual current apm in SC2. The value in the registry could be 700+, while the number from the SC2 plugin is 276, and the actual ingame APM is 122.
Could someone tell me what's going on? I assume I probably have to divide the registry value by a certain something (1.38?) to convert to BlizzardTime™, but 1.38 doesn't make the registry value come close to the actual ingame APM or the Sc2Gears APM, and the regkey probably doesn't update as fast as the ingame APM display anyway.
Anyway, to cut the ramble short, I was just wondering if there was any documentation on this that I haven't seen, or something like that. My google-fu has only brought me to:
which doesnt really explain my weird registry key values.
This is how I am reading the APM btw, looping every second:
from _winreg import *
key = OpenKey(HKEY_CURRENT_USER, r'Software\Razer\Starcraft2', 0, KEY_ALL_ACCESS)
StartModule = QueryValueEx(key, "StartModule")
#Startmodule is 1 when game is loading or in game
APMValue = [int(QueryValueEx(key, "APMValue"))]
# APMValue should be APM value but clearly isnt