A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Battery Monitor?

1.7k views · started by GAMEchief ·
#1
Battery Monitor?
My headset has software that tells me the battery left on it. I was curious how I would monitor that battery with my own program?

I want to make my own tray icon that just tells me the battery power, instead of having to open and navigate through the headset's bundled software to find it. But I have no clue where such information is stored on my computer. Or how to find out.

Logitech G930, ftr.
#2
Sounds like a type of task AutoIt is good for. There's a library that might be able to do what you're trying to accomplish here

I'll give you a hint though, it's definitely something you don't want to use PHP for. (chuckle)
#3
why not python :doge:
#4
Probably because he doesn't need it to work across different operating systems and is likely infinitely easier to do in AutoIt or a similar Windows language (i.e. C#).

A simple language for a (relatively) simple task, no?
#5
Sounds like a type of task AutoIt is good for. There's a library that might be able to do what you're trying to accomplish here

I'll give you a hint though, it's definitely something you don't want to use PHP for. (chuckle)

I'm obviously not using PHP. I want a notification tray icon.

Your link is for monitoring the battery life of a laptop. I'm looking to monitor the battery life of a headset attached by USB.

It is probably a DllCall() to some DLL that comes with the headset software. Any idea how to go about finding what DLL, and what DllCall to use? Is there some way to "see what DLLs are being used" when I open my headset software?

Kingz V wrote:
why not python :doge:

I'll use any language. I just need to know how to get the battery meter.
#6
Process memory reading
#7
GAMEchief wrote:
Is there some way to "see what DLLs are being used" when I open my headset software?


If you're on windows just hit "tasklist /m" from CMD or Powershell

Otherwise use Visual Studio's Dependency Walker for a more detailed analysis.
#8
It says "N/A" next to LCore.exe (the program that shows the battery).

So, it's not a DLL?
#9
I am assuming you are trying to write your program to read the battery levels without the manufactures software running?
#10
GAMEchief wrote:
It says "N/A" next to LCore.exe (the program that shows the battery).

So, it's not a DLL?


Probably not.

You can always try and do what Chad suggested and read process memory.
#11
GAMEchief wrote:
It says "N/A" next to LCore.exe (the program that shows the battery).

So, it's not a DLL?


Make sure you're running with admin privileges, and might as well get a second opinion from another DLL monitoring prog
It might be able to find some other calls, are there any DLLs packaged with the software?
#12
Chad wrote:
I am assuming you are trying to write your program to read the battery levels without the manufactures software running?

Not necessarily. IDC if the manufacturer's software runs. I just want a second program that I made to be able to read it.
#13
Well, I think your best bet would be to try Process Memory Reading then if you don't care if the manufactures software is running.

A long shot would be trying to contact a developer in Logitech to see what they say.
#14
I am interested in your results and what method you decided to use.