• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 01:20
CEST 07:20
KST 14:20
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall10HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Firefly given lifetime ban by ESIC following match-fixing investigation5$25,000 Streamerzone StarCraft Pro Series announced4Weekly Cups (June 30 - July 6): Classic Doubles5[BSL20] Non-Korean Championship 4x BSL + 4x China9Flash Announces Hiatus From ASL66
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings Firefly given lifetime ban by ESIC following match-fixing investigation Weekly Cups (June 30 - July 6): Classic Doubles Jim claims he and Firefly were involved in match-fixing
Tourneys
$25,000 Streamerzone StarCraft Pro Series announced FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament RSL: Revival, a new crowdfunded tournament series WardiTV Mondays
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
i aint gon lie to u bruh... ASL20 Preliminary Maps BGH Auto Balance -> http://bghmmr.eu/ [ASL19] Finals Recap: Standing Tall SC uni coach streams logging into betting site
Tourneys
[BSL20] Non-Korean Championship 4x BSL + 4x China [BSL20] Grand Finals - Sunday 20:00 CET CSL Xiamen International Invitational The Casual Games of the Week Thread
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Earn Rewards for Every Prediction in the Game Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Summer Games Done Quick 2025! Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
momentary artworks from des…
tankgirl
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 647 users

APM Monitor for SCII (and other games)

Forum Index > SC2 General
Post a Reply
1 2 3 Next All
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
Last Edited: 2014-10-28 03:19:58
September 09 2014 23:25 GMT
#1
If you are coming from an older version, please run Fresh Start (in Settings) to avoid problems! For example, you are replacing revision 8 with revision 9. You may run into issues because some registry values have changed since the last version. If you have not used the program before, then you don't have to worry.

If you have any questions about the changes in a revision or want more detail on it, just ask. (Change log in the program is under About > What's New?)

Latest version: Revision 9 (1.1.0.9)

About version numbers: For example, the version number will be 1.2.3.4. From left to right, Major, minor, build, revision. I will use all except build. Major won't change much. Revision will change when I release enough updates (to warrant a new revision). Minor will change if I need to make a fix to a certain revision (but not enough for a new revision). Minor numbers will return to 0 when a new revision is out (so if you see a 1, that means I've made a reasonably important fix to the current revision).

********************************************************************************************************************************************
Known Problems

This section is for problems and suggestions that TL members have told me about. I'll be sure to keep it updated.

s = suggestion; b = bug

___________________________________________________________________________________________________
(9/11) b#1: HUD is locked upon first run.

(9/12) b#1 Solved: Unless a value of 1 is found, the HUD remains immovable. At first run, no value is present. So it defaults to not being movable, and the drop down menu reports it is movable. At first run, a value of 1 is created so it can be moved.

(9/11) b#2: Upon first run, selecting font size doesn't function, and HUD Display Settings is 100% broken (null exception).

(9/12) b#2 Solved: I discovered that it had nothing to do with font size. Despite the "Enable sound file alert" check box being off, it was still trying to set a value. Since nothing existed, it resulted in a null exception. It has been changed to ensure a value exists before setting the value, to avert this problem.

In addition to b#2, I discovered an issue with the colors. At first run, the colors default to a tan (or the default Control color). If you don't pick a color, the background goes to tan. The default I decided on was a black backcolor, and a white font color. I changed it to where at first run (or where a value doesn't exist) the correct default colors are selected.

I also discovered I needed to update the "Reset HUD" button. It now resets the additional options in the "HUD Display Settings" window (minimum APM and down).


(9/19) b#3: Hot keys or combining keys (such as Ctrl + A) do not work.

(10/16) b#2 Solved: Alt, Ctrl, and Shift can be combined with keys A through Z, and keys 0 through 9.

(9/10) s#1: Filenames should "roll forward" or be sequential automatically.

(9/24) s#1 Implemented: Filenames can automatically "roll forward" by clicking the Sequential checkbox below the filename. Each time the monitor is started, the filename will increase by 1. For example, test1.txt, test2.txt, test3.txt. If you change the filename, the numbering will reset to 1.

(9/10) s#2: The real-time APM HUD should be capable of transparency.

(9/24) s#2 Implemented: The APM HUD can now be made transparent through the HUD Display Settings dialog.

(9/24) s#3: The APM HUD should be able to work in full screen, as it does in windowed mode applications and games.

(9/10) s#4: The APM monitor cannot be paused.

(10/16) s#4 Implemented: The monitor can be paused by clicking on the yellow flag.

I will also be adding shortcut keys, to s#4. For example, you can press F10 to start the monitor. You can define which F key you want to use. You will also be able to map your chat key as well, so that when you press it, it pauses the game.
____________________________________________________________________________________________________

As of 10/16, I have redone the main window. Let me know what you think. I will probably change the flags to the images typically found on remotes. (e.g. The pause button is represented by two vertical bars.)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Games Tested: Warcraft 3: Reign of Chaos (works), AoE: II (does not work)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

********************************************************************************************************************************************

A month or so ago, I was told by a friend that no good APM monitor existed for SCII. He seemed like the kind of guy that really knew what he was talking about, so I believed him. Not too long ago, I figured I'd look it up anyway. Very quickly, I found a post on this forum with a pretty solid APM monitor. (I found other results as well.) So I am fully aware APM monitors exist; however, I've put far too much effort into this program to just throw it away.

http://starcraft.ltgks.com/

The program, as well as the source, is available on that website. Program is written in Visual Basic. The program detects APM by key/mouse hooks rather than getting information from SCII. I wasn't aware SCII outputted APM information until recently, but I still have no idea where that information is.

As of revision 7, I'm still working on real-time APM color and sound alerts. It seems to work as of this point, but I have a feeling there are problems with it. The HUD doesn't update on a set interval, only when you press a key will you see the new APM. I'm currently working on making it refresh on set intervals, just I'm extremely busy with classes and work. Considering this, sound alerts aren't the greatest but color alerts work quite decently.

I'm also in the process of translating the program. I don't know of any other way than to manually put in the translations. This, obviously, is a big pain when I make changes or additions to text. The current languages are Chinese Simplified and English (although I believe I have a Spanish translation from someone ready to be added).

And this game will work with any RTS game, since it doesn't rely on specific information from one game.

Edit: I should also point this out as it's not very obvious. I'll think of something to make it more obvious in the future. When your real-time HUD is enabled, you can right click on it for options.

[image loading]

Lock HUD: Should be obvious enough. It prevents you from moving the HUD. I was thinking of making the HUD click-through (or "transparent"). Not sure if that would be useful. I also thought of making the HUD visually transparent.

[image loading]

Display Settings: Allows you to change the font size, font color, and background color. You can also set a minimum APM you want to keep as you play. The HUD can change color, and play a sound. As of right now, the sound alert isn't going to very fun (each time you press a key while under the set APM, it will make that sound). Once I get the HUD to refresh on set intervals, it'll work better. I'll also make the sound alert more flexible. (e.g. sound can play on loop every 5 seconds, or it can play a maximum of 3 times every 5 seconds)

Also, I figure this would be good to note: This program writes to the Windows Registry. Not that it's a big deal, but just want to state that up front. This is how the settings can be remembered after program close, and settings can be accessed within the program.

Edit 2: Many controls in the program have tooltips. Place your mouse over a button, textbox, etc to activate the tooltip. For example, to change the location of your report, double click the textbox.

[image loading]
Larkin
Profile Blog Joined January 2012
United Kingdom7161 Posts
September 09 2014 23:27 GMT
#2
Cool that it will work with every RTS game. Interesting to see how hilariously low my APM is for Company of Heroes 2 in comparison.
https://www.twitch.tv/ttalarkin - streams random stuff, high level teamleague, maybe even heroleague
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
Last Edited: 2014-09-10 00:36:40
September 09 2014 23:31 GMT
#3
You've used it already? I don't know how APM is normally calculated, but this will take into account every key and every mouse click you make.
Garnet
Profile Blog Joined February 2006
Vietnam9016 Posts
September 09 2014 23:52 GMT
#4
I got this error. Using windows 8.1 x64.

[image loading]
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
Last Edited: 2014-09-10 01:00:25
September 09 2014 23:59 GMT
#5
Update: Fixed. Problem was that it was pulling the font size for the real-time HUD, before there was a value present (value in the registry). I gave it a default value in the event there isn't one present (specifically for the first time the program starts on a PC).

The fixed source and program are available on the site now.
Garnet
Profile Blog Joined February 2006
Vietnam9016 Posts
September 10 2014 01:25 GMT
#6
does it count mouse clicks?
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
September 10 2014 04:24 GMT
#7
On September 10 2014 10:25 Garnet wrote:
does it count mouse clicks?


It does. However, you have the option to turn that off in Settings.
cakolas
Profile Joined March 2012
8 Posts
Last Edited: 2014-09-10 11:26:37
September 10 2014 11:24 GMT
#8
Thank you soo much. I was looking for a program like this for a long time but i coudn't find. This program will be very usefull for counting apm in non-starcraft rts games.
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
September 10 2014 12:09 GMT
#9
No problem, glad you like it. The best way you can help me is by spreading the word. I definitely want to get more feedback on this. It's the best way to improve the program.
Fuchsteufelswild
Profile Joined October 2009
Australia2028 Posts
Last Edited: 2014-09-10 13:12:39
September 10 2014 12:24 GMT
#10
Looks good!
I look forward to using this on Age of Empires 2 after playing some Forgotten Empires at a 4 person LAN and wondering how our APM compared (because they're much much slower than most would expect from people who even like RTS games and I'm not).

I'm about to download it but is there no pause function?
I'd like to have Start-Stop functionality for when I want to stop the monitoring and see the results but would also like to be able to Start, Pause, Start, Pause, Start, Stop so I can stop it from monitoring when we pause games but then get it to continue monitoring in the same recording instance by pressing Start again.
This way we could even play many series of games and just have one recording (text file) for the whole lot simply by pausing between matches.

How is scrolling/mouse movement handled?
Would any single mouse movement be treated as 1 action, or does it detect screen scrolling, so that only unit selections (click or box-select) and screen scrolling are counted while movements with no action are not counted?

Let me know if you find a program that can calculate an estimate of APM in a recorded Age of Empires II file.
Actions aren't recorded so much as commands in that but potentially, the typical number of actions could be worked out (produce villager = select town centre with mouse or 'H', click villager icon OR press 'C' = 2 actions either way).
It's been discussed elsewhere but as far as I could find, no one ever pushed on with such a project (or maybe it did but the link was broken when I got there!)

EDIT: I wasn't sure how the registry entry would be handled and after pasting it to one folder and then moving it but realising there was no installer or uninstaller, I was worried the registry entry would be stuffed already (easily fixed though really if you can just find the path entry).
As it happens though, you've made sure it changes the path entry in the Registry based on the last location it was opened from. Nice choice.

Oh, a thought - under Report Location (and any other path specifying prompts), could you allow direct path entry through typing/pasting? I personally find it a real pain to navigate through folders using that view and don't understand why there are some mainstream companies that actually force you to choose locations that way.
Steam, or Divinity - Original Sin or something else made me use that method recently and I just found it surprising (and annoying *shakes fist*) that they didn't allow you to just allow either typing or pasting of the path, nor use a nice window like when you choose "Open" in MS Word or many other programs.
Firefox even. Open. Nice method of finding things, I can easily use Up One Level and whatnot.
Gah, I so loathe this "Navigation Pane"-only way of locating directories and files!

Oh, if I try to change the Real-Time APM text size, even though it works, I get this:
[image loading]
Colours and the total size of the background colour don't appear to work though.
EDIT: Actually, colour does on StarCounter restart, but the total size of the background doesn't seem to be moveable (don't know why it wasn't working but it is now...mouse problems maybe) or resizeable, supposing I'm not missing something. I would appreciate your suggested HUD transparency option and ability to click through the HUD, by the way.

Ah, also, rolling/sequential report names would be a great feature, i.e. have a base name for the series of reports which is followed by -0001 or something like that for the first recorded report, -0002 for the second etc. until either the sequential naming option is turned off, or changed to a different base name, in which case the new series would be named after that base name followed by -0001.

Finally before I go to bed, in Age of Empires II, no hotkeys ('H' for focus on Town Centre, 'C' for build villager, 'B' for build economic(?) building) work while your program is active, even without the HUD. As soon as I turn that off, they all work again. I fiddled around with my keyboard a lot and it was definitely the program.

Example debug to go with the screenshot above:
+ Show Spoiler +
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: value
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
at WindowsApplication1.hudSettings.okBTN_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
APM Monitor
Assembly Version: 1.0.0.0
Win32 Version: 5.0.0.0
CodeBase: file:///P:/Program%20Files%20(x86)/StarCounter/StarCounter.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 11.0.50709.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

ZerO - FantaSy - Calm - Nal_rA - Jaedong - NaDa - EffOrt - Bisu - by.hero - StarDust - Welmu - Nerchio - Supernova - Solar - Squirtle - LosirA - Grubby - IntoTheRainbow - Golden... ~~~ Incredible Miracle and Woongjin Stars 화이팅!
WinterStarcraft
Profile Joined June 2012
United States109 Posts
September 10 2014 13:06 GMT
#11
Thank you, been looking for one to replace the mildly disfunctional one on scelight
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
Last Edited: 2014-09-10 13:07:06
September 10 2014 13:06 GMT
#12
On September 10 2014 21:24 Fuchsteufelswild wrote:
Looks good!
I look forward to using this on Age of Empires 2 after playing some Forgotten Empires at a 4 person LAN and wondering how our APM compared (because they're much much slower than most would expect from people who even like RTS games and I'm not).

I'm about to download it and won't be able to test it yet, but is there no pause function?

No pause function at the moment. I'll think about adding one though.

I'd like to have Start-Stop functionality for when I want to stop the monitoring and see the results but would also like to be able to Start, Pause, Start, Pause, Start, Stop so I can stop it from monitoring when we pause games but then get it to continue monitoring in the same recording instance by pressing Start again.
This way we could even play many series of games and just have one recording (text file) for the whole lot simply by pausing between matches.

Ah, yes, I hadn't considered pausing games.

How is scrolling/mouse movement handled?
Would any single mouse movement be treated as 1 action, or does it detect screen scrolling, so that only unit selections (click or box-select) and screen scrolling are counted while movements with no action are not counted?

It only detects right or left clicks.

Let me know if you find a program that can calculate an estimate of APM in a recorded Age of Empires II file.
Actions aren't recorded so much as commands in that but potentially, the typical number of actions could be worked out (produce villager = select town centre with mouse or 'H', click villager icon OR press 'C' = 2 actions either way).
It's been discussed elsewhere but as far as I could find, no one ever pushed on with such a project (or maybe it did but the link was broken when I got there!)

What do you mean by "calculate an estimate of APM"?

I'll reply to the rest of your questions later today.

EDIT: I wasn't sure how the registry entry would be handled and after pasting it to one folder and then moving it but realising there was no installer or uninstaller, I was worried the registry entry would be stuffed already (easily fixed though really if you can just find the path entry).
As it happens though, you've made sure it changes the path entry in the Registry based on the last location it was opened from. Nice choice.

Oh, a thought - under Report Location (and any other path specifying prompts), could you allow direct path entry through typing/pasting? I personally find it a real pain to navigate through folders using that view and don't understand why there are some mainstream companies that actually force you to choose locations that way.
Steam, or Divinity - Original Sin or something else made me use that method recently and I just found it surprising (and annoying *shakes fist*) that they didn't allow you to just allow either typing or pasting of the path, nor use a nice window like when you choose "Open" in MS Word or many other programs.
Firefox even. Open. Nice method of finding things, I can easily use Up One Level and whatnot.
Gah, I so loathe this "Navigation Pane"-only way of locating directories and files!

Oh, if I try to change the Real-Time APM text size, even though it works, I get this:
[image loading]
Colours and the total size of the background colour don't appear to work though.
EDIT: Actually, colour does on StarCounter restart, but the total size of the background doesn't seem to be moveable (don't know why it wasn't working but it is now...mouse problems maybe) or resizeable, supposing I'm not missing something. I would appreciate your suggested HUD transparency option, by the way.

Ah, also, rolling/sequential report names would be a great feature, i.e. have a base name for the series of reports which is followed by -0001 or something like that for the first recorded report, -0002 for the second etc. until either the sequential naming option is turned off, or changed to a different base name, in which case the new series would be named after that base name followed by -0001.

Example debug:
+ Show Spoiler +
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: value
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
at WindowsApplication1.hudSettings.okBTN_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
APM Monitor
Assembly Version: 1.0.0.0
Win32 Version: 5.0.0.0
CodeBase: file:///P:/Program%20Files%20(x86)/StarCounter/StarCounter.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 11.0.50709.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Fuchsteufelswild
Profile Joined October 2009
Australia2028 Posts
Last Edited: 2014-09-10 13:21:31
September 10 2014 13:13 GMT
#13
I realise you're probably in the process of replying to that quote you've just made, but just a note, I edited it even more. :D
I'll come back to reply when I can.

Oh, except regarding this
What do you mean by "calculate an estimate of APM"?


"Actions aren't recorded so much as commands in that (in AoE2) but potentially, the typical number of actions could be worked out (produce villager = select town centre with mouse or 'H', click villager icon OR press 'C' = 2 actions either way).
It's been discussed elsewhere but as far as I could find, no one ever pushed on with such a project (or maybe it did but the link was broken when I got there!)"

In AoE2 you can record the game as long as you tick the box before the game, but the files don't track number of actions per minute but just the commands issued and it was talked about somewhere (probably on http://aoczone.net/).
As I say, the command "produce villager" is pretty much always going to require two actions to trigger, so even though APM are not calculated directly, one could potentially make a program that analyses command lists and assigns predefined numbers of "actions" to each command that was issued.
I believe the thread died off until someone made a post saying they'd created one such tool (unless I'm mixing this up with a post about some other utility...) but then the links didn't work for me.
I don't expect anything like that from this program or from you, it was just an aside because it would be a very nice tool to have (and people had previously discussed the idea)!
ZerO - FantaSy - Calm - Nal_rA - Jaedong - NaDa - EffOrt - Bisu - by.hero - StarDust - Welmu - Nerchio - Supernova - Solar - Squirtle - LosirA - Grubby - IntoTheRainbow - Golden... ~~~ Incredible Miracle and Woongjin Stars 화이팅!
Garnet
Profile Blog Joined February 2006
Vietnam9016 Posts
September 10 2014 13:28 GMT
#14
On September 10 2014 13:24 CalmestRoadkill wrote:
Show nested quote +
On September 10 2014 10:25 Garnet wrote:
does it count mouse clicks?


It does. However, you have the option to turn that off in Settings.

There's no option like that in Settings.
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
September 10 2014 20:17 GMT
#15
On September 10 2014 22:28 Garnet wrote:
Show nested quote +
On September 10 2014 13:24 CalmestRoadkill wrote:
On September 10 2014 10:25 Garnet wrote:
does it count mouse clicks?


It does. However, you have the option to turn that off in Settings.

There's no option like that in Settings.


[image loading]
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
September 10 2014 20:20 GMT
#16
On September 10 2014 22:13 Fuchsteufelswild wrote:
I realise you're probably in the process of replying to that quote you've just made, but just a note, I edited it even more. :D
I'll come back to reply when I can.

Oh, except regarding this
Show nested quote +
What do you mean by "calculate an estimate of APM"?


"Actions aren't recorded so much as commands in that (in AoE2) but potentially, the typical number of actions could be worked out (produce villager = select town centre with mouse or 'H', click villager icon OR press 'C' = 2 actions either way).
It's been discussed elsewhere but as far as I could find, no one ever pushed on with such a project (or maybe it did but the link was broken when I got there!)"

In AoE2 you can record the game as long as you tick the box before the game, but the files don't track number of actions per minute but just the commands issued and it was talked about somewhere (probably on http://aoczone.net/).
As I say, the command "produce villager" is pretty much always going to require two actions to trigger, so even though APM are not calculated directly, one could potentially make a program that analyses command lists and assigns predefined numbers of "actions" to each command that was issued.
I believe the thread died off until someone made a post saying they'd created one such tool (unless I'm mixing this up with a post about some other utility...) but then the links didn't work for me.
I don't expect anything like that from this program or from you, it was just an aside because it would be a very nice tool to have (and people had previously discussed the idea)!


The program will record every mouse click and keystroke you make. The best way I can translate, would be in Warcraft 3. If I wanted to move a unit (the long way) I would click the unit, click move, and then click where I want the unit to go. That would be 3 actions. I would love to offer the option to combine that into one big action, but I'd need to be able to communicate with the game. And, of course, each game is different.
CalmestRoadkill
Profile Joined September 2014
United States28 Posts
Last Edited: 2014-09-12 03:42:56
September 12 2014 03:38 GMT
#17
On September 10 2014 21:24 Fuchsteufelswild wrote:

I didn't see a need for installation. It was easy enough for me to have it be an executable. The program can be moved anywhere without issue, as it doesn't reference static files. You also need administrative privileges to run installers, which some may not have. Unless people demand and installer, I won't make one.

EDIT: I wasn't sure how the registry entry would be handled and after pasting it to one folder and then moving it but realising there was no installer or uninstaller, I was worried the registry entry would be stuffed already (easily fixed though really if you can just find the path entry).
As it happens though, you've made sure it changes the path entry in the Registry based on the last location it was opened from. Nice choice.

Honestly, I thought I was doing the user a favor by having them navigate to the directory. Typing out the folder you want to use is decently long, and most people don't know paths by name. Most of the time you want to save to something at least username level (e.g. C:\Users\User\Desktop). And then, the folder may be deeper than that. And, any user is very prone to mistyping. However, changing the textbox to where it accepts direct entry shouldn't be difficult.


Oh, a thought - under Report Location (and any other path specifying prompts), could you allow direct path entry through typing/pasting? I personally find it a real pain to navigate through folders using that view and don't understand why there are some mainstream companies that actually force you to choose locations that way.

I'm just using the default Open/Save File Dialog :p There might be power packs that include those nicer dialog boxes. Otherwise, I'd have to create one.

Steam, or Divinity - Original Sin or something else made me use that method recently and I just found it surprising (and annoying *shakes fist*) that they didn't allow you to just allow either typing or pasting of the path, nor use a nice window like when you choose "Open" in MS Word or many other programs.
Firefox even. Open. Nice method of finding things, I can easily use Up One Level and whatnot.
Gah, I so loathe this "Navigation Pane"-only way of locating directories and files!

Oh, if I try to change the Real-Time APM text size, even though it works, I get this:
[image loading]
Colours and the total size of the background colour don't appear to work though.

Are you saying you are unable to move the HUD box? Right click and see if "Lock HUD" is checked. If it isn't, click it twice and see if it's movable. Sometimes the settings and the GUI aren't aligned, and I'll have to fix that.

As for the overall size, you can only resize via font change. I did this so the HUD, well, looked like a HUD (not having the typical Windows borders). And I only went up so far in font size because the HUD would be really large, and I figured it would cover relevant portions of the screen. Again, this was initially designed for SC2. Let me know what your specific needs are since it's not SC2.


EDIT: Actually, colour does on StarCounter restart, but the total size of the background doesn't seem to be moveable (don't know why it wasn't working but it is now...mouse problems maybe) or resizeable, supposing I'm not missing something. I would appreciate your suggested HUD transparency option and ability to click through the HUD, by the way.

Good idea. I'm almost sure I thought of something like that, but I probably forgot to look into it. I could probably add that as well as the rolling names to the "file name already exists" dialog.

Ah, also, rolling/sequential report names would be a great feature, i.e. have a base name for the series of reports which is followed by -0001 or something like that for the first recorded report, -0002 for the second etc. until either the sequential naming option is turned off, or changed to a different base name, in which case the new series would be named after that base name followed by -0001.

Yes it definitely is the program. While active, it is doing key/mouse hooks. When it detects keys A through Z (and only keys A through Z), it captures it and then resends it. If any other keys are hit, it ignores them. So combination keys don't work. I had designed this for SC2, but realized it will mostly work with other games. Let me know what combination keys don't work (like it's CTRL + H to activate a hot key), and I'll make it all work.

Finally before I go to bed, in Age of Empires II, no hotkeys ('H' for focus on Town Centre, 'C' for build villager, 'B' for build economic(?) building) work while your program is active, even without the HUD. As soon as I turn that off, they all work again. I fiddled around with my keyboard a lot and it was definitely the program.

Example debug to go with the screenshot above:
+ Show Spoiler +
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: value
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
at WindowsApplication1.hudSettings.okBTN_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
APM Monitor
Assembly Version: 1.0.0.0
Win32 Version: 5.0.0.0
CodeBase: file:///P:/Program%20Files%20(x86)/StarCounter/StarCounter.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 11.0.50709.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///P:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


CalmestRoadkill
Profile Joined September 2014
United States28 Posts
September 12 2014 08:30 GMT
#18
Updated source and program are available on the website (for bugs 1 and 2). This one is still considered revision 7. I also have a "Fresh Start" option in the works. You will notice it in Settings, but the buttons don't do anything yet. That's to come, with quite a few other improvements.
Garnet
Profile Blog Joined February 2006
Vietnam9016 Posts
September 13 2014 04:26 GMT
#19
How can I display my APM during an SC2 game? I use fullscreen, should I use windowed modes?
Friedobert
Profile Joined July 2014
Germany38 Posts
September 13 2014 06:52 GMT
#20
@ garnet, setting it to windowed mode (fullscreen) in the options tab (of sc2) does it for me.
JinAir - NaNiwa - IdrA - Maru
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 4h 40m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft498
Nina 213
StarCraft: Brood War
Leta 307
PianO 158
Noble 29
Icarus 10
Dota 2
XaKoH 50
League of Legends
JimRising 772
Counter-Strike
Stewie2K216
Super Smash Bros
hungrybox564
Other Games
summit1g6799
shahzam876
monkeys_forever651
ViBE271
Organizations
Other Games
gamesdonequick44682
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Berry_CruncH304
• practicex 132
• Hupsaiya 60
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• Diggity6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Rush1107
• Lourlo612
• masondota2475
• Stunt351
Upcoming Events
The PondCast
4h 40m
uThermal 2v2 Circuit
10h 40m
WardiTV European League
10h 40m
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
Replay Cast
18h 40m
RSL Revival
1d 4h
ByuN vs SHIN
Clem vs Reynor
OSC
1d 7h
Replay Cast
1d 18h
RSL Revival
2 days
Classic vs Cure
FEL
2 days
OSC
2 days
[ Show More ]
RSL Revival
3 days
FEL
3 days
FEL
3 days
CSO Cup
3 days
BSL20 Non-Korean Champi…
3 days
Bonyth vs QiaoGege
Dewalt vs Fengzi
Hawk vs Zhanhun
Sziky vs Mihu
Mihu vs QiaoGege
Zhanhun vs Sziky
Fengzi vs Hawk
Sparkling Tuna Cup
4 days
RSL Revival
4 days
FEL
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-07-07
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.