Created a plugin for keyboard and mouse stats

Questions regarding plugin development and publish plugins

Created a plugin for keyboard and mouse stats

Postby curado » Tue Jun 28, 2016 12:19 am

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?
curado
 
Posts: 2
Joined: Tue Jun 28, 2016 12:15 am

Re: Created a plugin for keyboard and mouse stats

Postby TheLaGmAn » Tue Jun 28, 2016 1:35 am

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.
TheLaGmAn
Site Admin
 
Posts: 611
Joined: Wed Feb 26, 2014 8:32 pm

Re: Created a plugin for keyboard and mouse stats

Postby curado » Tue Jun 28, 2016 4:36 am

I was able to get it working. Thanks! I'll work on it some more and send it in :)
curado
 
Posts: 2
Joined: Tue Jun 28, 2016 12:15 am


Return to Plugins Releases and Development



Who is online

Users browsing this forum: No registered users and 1 guest

cron