Page 1 of 1

Created a plugin for keyboard and mouse stats

PostPosted: Tue Jun 28, 2016 12:19 am
by curado
I created a plugin for the keyboard and mouse. So far it has:
Total # key presses
Words per minute
# Left clicks
# Right clicks
Total inches, feet, miles the mouse has been moved on the screen (roughly calculated)
Current mouse Miles Per Hour

How would I go about making these values show up in the plot graph or needle gauge? I'd like to implement the same as the other metrics which appear to work fine in this manner. Does it have to do with GLOBAL_CachedValues?

Re: Created a plugin for keyboard and mouse stats

PostPosted: Tue Jun 28, 2016 1:35 am
by TheLaGmAn
First off, thanks for developing for GOverlay!

First, make sure your sensors appear in the Gauge and Plot Graph, they should.

To be able to produce a value when those are selected there, GOverlay will call the function "CallBack" in your plugin with the method being the sensor name your plugin shows as available, you will then return a hashtable with the key value to the sensor value.

Additionally, GOverlay will call "CallBack" with the method being "willrequestvalues" to notify you once per run that GOverlay will afterward request one or more time your plugin sensors (in case you want to gather the data just then and not every time a sensor is called, because you could have 10 sensors up and you would be gathering the info 10 times per run without it).

Did that make sense?

In the next version im changing this up a little bit to make it more user friendy.

Re: Created a plugin for keyboard and mouse stats

PostPosted: Tue Jun 28, 2016 4:36 am
by curado
I was able to get it working. Thanks! I'll work on it some more and send it in :)

Re: Created a plugin for keyboard and mouse stats

PostPosted: Fri May 07, 2021 1:48 pm
by MrDanielVie
I would like to show the status of the CAP LOCK key, the NUM LOCK key and the scroll key on the GOverlay display because my keyboard does not have any LED indicators for this.

Sorry for my bad English, I use the google translator.

I hope it is understandable what I mean.

Best Regards
Daniel