tommaier123 / xbatterystatus Goto Github PK
View Code? Open in Web Editor NEWA clean and lightweight tray app that displays the battery level of most bluetooth game controllers
License: GNU General Public License v3.0
A clean and lightweight tray app that displays the battery level of most bluetooth game controllers
License: GNU General Public License v3.0
Is it possible to have the battery level in numbers in the icon itself, so you dont have to hover over it to see the exact level?
That would be a handy maybe optional setting I would appreciate.
Like other projects like
https://github.com/NiyaShy/XB1ControllerBatteryIndicator
Hello, I'm trying to install xbatterystatus.msi and when trying to run it it asks if I want to install .net, but doesn't specify which version it wants and doesn't seem to check for the version I already have installed (4.8).
Would really appreciate some help into knowing how I can get this working please.
Hi, I have found your app in Microsoft forums, when was looking for valid battery charge value displaying.
Installed .NET 5 SDK and your app via winget
. After 6 hours of gaming with vibrations, gamepad still shows in Windows, your App tray, Bluetooth devices 100%.
I am using Xbox Elite Series 2 Controller connected via Bluetooth. I am using PC with Wi-Fi/Bluetooth antenna. (WiFi and Bluetooth enabled in same time) on Windows 11 Pro 22H2 (OS Build 22621.3007); App version 1.2.1
I have installed latest gamepad update by Xbox Accessories app.
if i turn off bluetooth and turn on it again, battery status will not show status. it fixes after restart program only.
Link allows for net 7 installation. Is it sufficient?
I've tried your app but sadly the tray icon showed up for few seconds and disappeared (was still running in the background apparently), I'm running Windows 11 and I've got the official xbox USB adapter.
Are there any plans (or reason not) to support other BT peripherals like e.g. BT mice?
I can read battery status when controller is connected via bluetooth, but not when it is connected via the USB-C cable. I have an Xbox Series X controller
Thank you in advance
The light/dark mode colour is chosen based on the selection in Windows settings. This makes the icon unusable if you want light mode windows but a dark taskbar (i.e. default in Windows 10) as the icon will be black on black and essentially invisible.
Would it be possible to add a manual setting of icon colour?
It'd be nice to be able to install this via WinGet so we can easily get updates without having to do it manually.
This program does not show up in programs and features. How do you remove it?
Both light and dark mode in win11 , tray icon only white color, can‘t dynamic display.
It's hard to read, hope u updating , thx.
I've installed the application, and the tray icon appears but it only says "Bluetooth is turned off".
I'm assuming it only only works with controllers which are directly connected to the PC over bluetooth?
There seems to be a memory leak in XBatteryStatus w.r.t. GDI objects.
After running XBatteryStatus for a while it will crash with the following exception:
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Bitmap.GetHicon()
at XBatteryStatus.MyApplicationContext.GetIcon(Int32 val, String s) in C:\Users\Max\source\repos\tommaier123\XBatteryStatus\XBatteryStatus\MyApplicationContext.cs:line 461
at XBatteryStatus.MyApplicationContext.ReadBattery() in C:\Users\Max\source\repos\tommaier123\XBatteryStatus\XBatteryStatus\MyApplicationContext.cs:line 331
at System.Threading.Tasks.Task.<>c.b__140_0(Object state)
Tracking the number of GDI objects in task manager show it steadily increasing. Currently it is reporting 4,517 GDI objects for me, which is more then any other program by a large margin. To my understanding, Windows will limit the number of handles at some point, causing the exception above.
Could this exception be due to the handle given by System.Drawing.Bitmap.GetHicon() never being destroyed? I don't see any calls to DestroyIcon in the code. There might be other leaks, but this is my primary suspect.
For reference see the example code snippet calling DestroyIcon:
https://learn.microsoft.com/en-us/dotnet/api/system.drawing.bitmap.gethicon?view=net-8.0
And the issue mentioned more explicitly here:
https://stackoverflow.com/questions/30979653/icon-fromhandle-should-i-dispose-it-or-call-destroyicon
Love the project. Hope it can be fixed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.