1) The executable file should be named heroes3.exe (the window title doesn't matter);
2) I only tested it with the complete collection from Buka.
Limitations (for now):
1) The program shows the remainder of the division and only signals when the remainder is equal to 1, using a blue color;
2) The program only predicts morale.
P. S. Try testing the program first with a squad size of 1. "Windows" appear quite often, but they are very narrow. Wait for the "large window" (R changes unevenly, in jerks).
Morale! :)