• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 19:32
CET 01:32
KST 09:32
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2[TLMC] Fall/Winter 2025 Ladder Map Rotation14
StarCraft 2
General
SC: Evo Complete - Ranked Ladder OPEN ALPHA When will we find out if there are more tournament Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge RSL Season 3: RO16 results & RO8 bracket
Tourneys
Tenacious Turtle Tussle [Alpha Pro Series] Nice vs Cure RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Which season is the best in ASL? Data analysis on 70 million replays sas.vorti stream [BSL21] Ro.16 Group Stage (C->B->A->D)
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread The Perfect Game Nintendo Switch Thread Beyond All Reason Should offensive tower rushing be viable in 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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Artificial Intelligence Thread YouTube Thread Things Aren’t Peaceful in Palestine
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Esports Earnings: Bigger Pri…
TrAiDoS
Thanks for the RSL
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1841 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
Vietnam9031 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
Vietnam9031 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
Vietnam9031 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
Vietnam9031 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
Replay Cast
00:00
2025 KFC Monthly #3 - Day 1
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft458
White-Ra 238
elazer 151
SpeCial 58
StarCraft: Brood War
Calm 4046
Artosis 581
Larva 320
ZZZero.O 75
ggaemo 61
Dota 2
syndereN438
monkeys_forever364
Counter-Strike
Fnx 68
minikerr26
Other Games
tarik_tv4426
shahzam615
JimRising 266
Mew2King171
ToD117
Maynarde114
PPMD19
Organizations
Dota 2
PGL Dota 2 - Main Stream232
StarCraft 2
CranKy Ducklings41
Other Games
BasetradeTV31
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• davetesta18
• HeavenSC 14
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota2882
• Ler858
League of Legends
• Doublelift6014
Other Games
• imaqtpie1699
• Scarra714
Upcoming Events
OSC
16h 28m
LAN Event
17h 28m
Replay Cast
22h 28m
Replay Cast
1d 8h
WardiTV Korean Royale
1d 11h
Sparkling Tuna Cup
2 days
WardiTV Korean Royale
2 days
Replay Cast
2 days
Wardi Open
3 days
Monday Night Weeklies
3 days
[ Show More ]
StarCraft2.fi
3 days
Replay Cast
3 days
Wardi Open
4 days
StarCraft2.fi
4 days
Wardi Open
5 days
StarCraft2.fi
5 days
Replay Cast
5 days
The PondCast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
META Madness #9
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
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.