Recommended Posts

i think hiding the app when the battery is plugged in shouldnt be a problem (im no coder)

when the battery is fully charged the icon changes colour so just adding something to that event to uncheck the always on top option would do the trick :)

@bangbang023:

This should get you started: http://www.codeproject.com/cs/media/perpxa...harp.asp?df=100

It is far from complete, so you have to extend that to make something usefull out of it.

Did you use that dll in your app? Someone has shown it to me already and someone even took the trouble of porting it to VB .net, but I am just leery about using someone elses code, even if they do grant full permission to do so.

Did you use that dll in your app? Someone has shown it to me already and someone even took the trouble of porting it to VB .net, but I am just leery about using someone elses code, even if they do grant full permission to do so.

There is no DLL, only a C# class file.

I used this class indeed, as a base though. I added extra code to handle mouse clicks, mouse moves, etc.

Okay, now here is the next obvious recommendation. When you change between the 4 battery states, have it fade to whatever the desired state is. So if I have it hidden when I am on battery, then unplug, have it fade to visibility.

Also, I don't know if you are doing this or not, but if you are at 0 opacity, just set this.Show to false. I believe that if you are at 0 opacity but still showing, it still uses cpu power to "draw" the invisible item. I could be wrong there though, if anyone knows for sure let me know.

Other than that it's looking great. You still need to see if you can find out about that click through thing so you can have the meter as just a watermark on the screen and not an actual form thats open. Keep up the great work :)

Edit: Oh yeah, and I bow down before you after that last comment Schmoove ;)

Okay, now here is the next obvious recommendation. When you change between the 4 battery states, have it fade to whatever the desired state is. So if I have it hidden when I am on battery, then unplug, have it fade to visibility.

Also, I don't know if you are doing this or not, but if you are at 0 opacity, just set this.Show to false. I believe that if you are at 0 opacity but still showing, it still uses cpu power to "draw" the invisible item. I could be wrong there though, if anyone knows for sure let me know.

Other than that it's looking great. You still need to see if you can find out about that click through thing so you can have the meter as just a watermark on the screen and not an actual form thats open. Keep up the great work :)

Edit: Oh yeah, and I bow down before you after that last comment Schmoove ;)

Yeah I thought about the fade thing, but forgot to implement it :blush:

I'll schedule that for the next release. In the next release also the trayicon will mimic the battery state.

About the CPU usage, I don't think that is really nescessary. Currently the application hardly uses CPU power. In the taskmanager I don't see it use any even.... it stays on 0% all the time.

I've been searching for info on how to make the monitor click-through, but haven't been able to find anything on that matter. I know you probably have to check which window is behind it and then pass the click message to that application, though I haven't been able to pull that off yet. Maybe in a later release, but can't promise.

I can, but I'm not gonna....

Let me clarify that statement a bit.

Normally I only program in C++, I did quite a lot of stuff in C++ so it would not be too hard to make this application in C++. Though I want to learn how to use C# and in particular the .NET framework, therefore I chose to make this project in .NET. So just to learn.

I can easily make this in C++, it is no that difficult, but I'm not gonna, because it will cost me a lot of time to rewrite the whole code. Besides I will end up with 2 versions I have to maintain, one because I still want to continue exploring .NET and one because you want one in C++, which is not something I'm looking forward to. So I'm simply not gonna make it in C++, period.

.NET might use a bit more memory, but if you have 512mb (or even 256mb) it shouldn't be much of a problem. It uses RAM, but that doesn't mean it performs bad. Infact, it hardly uses CPU cycles, so I don't see the problem. It doesn't hog your system, it doesn't interfere with other programs, so what's the big deal? The bit of extra RAM usage?

Fair enough, if you find it too much, then don't use it.... it's that simple.

Keep in mind though that .NET is the future of Windows. You'll see more and more programs being written in .NET. Better get used to it.

Edited by Schmoove
About the CPU usage, I don't think that is really nescessary. Currently the application hardly uses CPU power. In the taskmanager I don't see it use any even.... it stays on 0% all the time.
True, but a good programmer makes their programs as efficient as possible, even if the difference isn't noticable ;)
Keep in mind though that .NET is the future of Windows. You'll see more and more programs being written in .NET. Better get used to it.

I knew what you meant and why, but the part I quoted is 100% true, and that's what I was happy about. I did C/C++ before I did C# as well, but I wont program in anything other than .NET now. It's much more powerful.

You're right that's true too :laugh:

I'll see if I can come around to do that.

Sorry, I'm just a VERY picky programmer ;) People who have written programs with me know that about me. Any little thing that I can make better or faster I do :laugh:

Ok, let's see if someone can help me.

When i'm not using the battery in my laptop and i dont have plug the icon stay's like that and i dont have a transparency control over it.

I'm using version 0.4, in version 0.3 the transparency control used to control these state too.

The only options now are to disable the prog, and i dont want to do it.

Any sugestions?

PS: sorry about the bad english.

Print

batmon.JPG

Ok, let's see if someone can help me.

When i'm not using the battery in my laptop and i dont have plug the icon stay's like that and i dont have a transparency control over it.

I'm using version 0.4, in version 0.3 the transparency control used to control these state too.

The only options now are to disable the prog, and i dont want to do it.

Any sugestions?

PS: sorry about the bad english.

Print

http://pwp.netcabo.pt/jingarelho/batmon.JPG

I'm sorry, I never really thought about that. I'll release version 0.5 tonight and have that fixed.

Ok, updated to version 0.5.

A small update, but added some usefull features.

version 0.5

- Systemtray icon now mimics the battery monitor, so it shows you the status of you battery

- Added option to fade between monitor transitions

- Fixed the fact that you can't change the opacity when no battery is detected. You can now control the opacity of this state with the "charged" slider

- Systemtray icon now mimics the battery monitor, so it shows you the status of you battery

Could you make it show the recharging icon in the systray, once you are recharging again? This is the icon in my systray tray while recharging, it is at 95% at the moment.. (see attached image) Which to me looks red/battery getting lower.. not that it is, just looks like it/annoying :p

post-88-1095133738.jpg

I just got this program and it's quite cool :)

I have one feature request. Could you add an option for the Monitor to be click-through? This way I can leave it always on top and transparent and be able to click on the windows beneath it. I've done it before so I'll make it easy and give you the code:

protected override CreateParams CreateParams	
{
	get 
	{
  CreateParams cp = base.CreateParams;
  cp.ExStyle |= 0x00000020;  //WS_EX_TRANSPARENT - Makes it click through
  return cp;
	}
}

Good job on a nice program! :yes:

One thing I just noticed to add to your list... Charging should take precidence over critical battery level if you ask me. What I mean by that is when the battery is charging, it should use the opacity for charging, not the opacity for anything else. Unless you changed this in 0.5 which I just installed (and don't feel like draining my battery again just to check), then even when you are charging, if you are below 10% battery, it uses the opacity state of critical. I set critical to 100%, and charging to barely visible, so it doesn't seem right to me that it would be 100% even though it's charging.

That's all from me for now. Oh, and thanks for that snippet of code jay, that will be perfect for this program and I am sure I will use that sometime myself :).

Edit: Just noticed something. Please remove the keyboard accelerators. They affect other work, CTRL-F5 for building/running a program in VS mainly. Thanks

Edited by Betaz
I just got this program and it's quite cool  :)

I have one feature request. Could you add an option for the Monitor to be click-through? This way I can leave it always on top and transparent and be able to click on the windows beneath it. I've done it before so I'll make it easy and give you the code:

protected override CreateParams CreateParams	
{
	get 
	{
  CreateParams cp = base.CreateParams;
  cp.ExStyle |= 0x00000020;  //WS_EX_TRANSPARENT - Makes it click through
  return cp;
	}
}

Good job on a nice program!  :yes:

Thanks man, will see if I can fit that in.

EDIT: well that didn't work. This did though, thanks for the pointer!! (Y)

protected override CreateParams CreateParams	
{
   get 
   {
      CreateParams cp = base.CreateParams;
      cp.ExStyle |= 0x00080020;  //WS_EX_TRANSPARENT + WS_EX_LAYERED
      return cp;
   }
}

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft released Windows 11 KB5094149 / KB5095971 / KB5094156 Setup, Recovery updates by Sayan Sen Earlier this week Microsoft released its newest Patch Tuesday updates (KB5094126 / KB5093998 on Windows 11 and KB5094127 on Windows 10). Alongside those, Microsoft also released new dynamic updates. These Dynamic Update packages are meant to be applied to existing Windows images prior to their deployment. Dynamic Updates also help preserve Language Pack (LP) and Features on Demand (FODs) content during the upgrade process. VBScript, for example, is currently an FOD on Windows 11 24H2. This time both recovery and setup updates were released for Windows 11 as well as Windows 10. The company writes: "KB5095185: Safe OS Dynamic Update for Windows 11, version 26H1: June 9, 2026 This update makes improvements to the Windows recovery environment (WinRE). After installing this update, the WinRE version installed on the device should be 10.0.28000.2269. KB5094149: Safe OS Dynamic Update for Windows 11, versions 24H2 and 25H2: June 9, 2026 This update makes improvements to the Windows recovery environment (WinRE). After installing this update, the WinRE version installed on the device should be 10.0.26100.8655 KB5095971: Setup Dynamic Update for Windows 11, version 23H2: June 9, 2026 This update makes improvements to Windows setup binaries or any files that setup uses for feature updates in Windows 11, version 23H2. KB5094156: Safe OS Dynamic Update for Windows 11, version 23H2: June 9, 2026 This update makes improvements to the Windows recovery environment (WinRE). After installing this update, the WinRE version installed on the device should be 10.0.22621.7219 KB5098815: Windows Recovery Environment update for Windows 10, version 21H2 and 22H2: June 9, 2026 This update automatically applies Safe OS Dynamic Update (KB5094154) to the Windows Recovery Environment (WinRE) on a running PC. The update installs improvements to Windows recovery features. KB5094154: Safe OS Dynamic Update for Windows 10, versions 21H2 and 22H2: June 9, 2026 This update makes improvements to the Windows recovery environment (WinRE). After installing this update, the WinRE version installed on the device should be 10.0.19041.7417. KB5094153: Safe OS Dynamic Update for Windows 10, version 1809 and Windows Server 2019: June 9, 2026 This update makes improvements to the Windows recovery environment (WinRE). After installing this update, the WinRE version installed on the device should be 10.0.17763.8880. KB5094152: Safe OS Dynamic Update for Windows 10, version 1607 and Windows Server 2016: June 9, 2026 This update makes improvements to the Windows recovery environment (WinRE). After installing this update, the WinRE version installed on the device should be 10.0.14393.9234." Microsoft notes that both the Recovery and Setup updates will be downloaded and installed automatically via the Windows Update channel.
    • Quantum Error Correction Validated in Nature: Microsoft and Quantinuum Log 800-Fold Improvement Two years after the original press-release announcement, independently peer-reviewed results published in Nature on June 10, 2026, have confirmed that Microsoft and Quantinuum achieved an 800-fold reduction in quantum error rates on real trapped-ion hardware — the largest gap between physical and logical error rates ever independently validated.    What Quantum Error Correction Actually Does — and Why Breaking Even Is Hard https://www.techtimes.com/articles/318329/20260613/quantum-error-correction-validated-nature-microsoft-quantinuum-log-800-fold-improvement.htm   Quantum Computing Wiring Bottleneck Cracked by HKU Silicon Carbide Chip at Qubit Temperature Engineers at the University of Hong Kong have built the first cryogenic control chip that operates at the same temperature as superconducting qubits — 10 millikelvin, or just one-hundredth of a degree above absolute zero — without generating the heat that has forced every competing approach to park its electronics hundreds of meters of cable away. https://www.techtimes.com/articles/318325/20260613/quantum-computing-wiring-bottleneck-cracked-hku-silicon-carbide-chip-qubit-temperature.htm  
    • RevPDF 4.5.0 by Razvan Serea RevPDF is a free, fully offline PDF editor for Windows, macOS, and Linux that lets you edit text and images directly inside PDF files — no internet connection, no account, and no cloud uploads required. Unlike bloated alternatives that demand subscriptions and constant connectivity, RevPDF fits in under 60MB on desktop while delivering a complete editing toolkit: annotate, redact, sign, compress, split, merge, convert, and reorganize pages, all processed locally on your device. Smart font matching ensures edited text blends seamlessly with the original, and multi-language support includes RTL scripts such as Arabic and Hebrew. Where most PDF editors force you to choose between features and simplicity, RevPDF manages both. You can build interactive forms from scratch with text fields, checkboxes, and dropdowns, permanently redact sensitive data before sharing, draw freehand on contracts and diagrams, and add custom watermarks — all without a single file leaving your machine. Edit Text and Images Directly Inside PDFs RevPDF supports true inline PDF editing — not just annotation layers on top of a document, but actual modification of existing text and images within the file. A smart font-matching engine identifies the font used in the original document and applies it automatically when you make edits, so changes blend naturally with the surrounding content. You can reposition elements, resize images, and update text across single pages or entire documents. RevPDF 4.5.0 release notes: This is one of the biggest updates to RevPDF yet. A lot of things people have been asking for are finally here. New Features Auto Redaction Permanently redact sensitive text and areas from your PDFs before sharing. Clean, irreversible, and fully offline. Comments, Links & Bookmarks Add comments for review, insert clickable links, and create bookmarks to jump around long documents without scrolling forever. Find & Replace Search across the whole document and replace text in one go. Long overdue. Split Pages Vertically or Horizontally Split any page down the middle, vertically or horizontally. Perfect for scanned books or double-page spreads. New Drawing Tools More tools for freehand drawing and markup, better for annotations, sketches, and detailed notes. Continuous Scrolling in Editor The editor now scrolls continuously through pages instead of jumping between them. Working through long documents is a lot smoother now. PDF Metadata Editor View and edit the metadata stored inside your PDFs, including title, author, subject, and keywords. Better Font Matching Text edits now blend in more naturally by doing a better job of matching the original font. Tabbed PDF Viewer Open multiple PDFs at once in tabs and switch between them without going back to the home screen. Add Links Insert hyperlinks anywhere in your PDF, to external URLs or to other pages within the document. Share & Print Shortcuts Share or print directly from the editing screen, home screen, and viewer. No extra steps. Minor Updates Paste images directly from clipboard into your PDF New image editing tools for more control over images inside documents Bug Fixes Fixed file saving issues on Windows and Linux Everything still works fully offline. No login, no cloud, no account. Your files stay on your device. Download: RevPDF 4.5.0 | 58.0 MB (Open Source) Links: RevPDF Home Page | Github | Screenshots 1 | 2 Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Interesting. I'm not using a VPN with my phone. I tried though my home internet (Rogers) and my cellular internet (Telus) using their respective DNS servers and both trigger the dialog above.
    • Three days after Anthropic launched Claude Fable 5 as the most capable AI model it had ever released to the public, the United States government ordered it switched off — and now the company is refunding customers who paid to use a product that vanished almost overnight https://www.techtimes.com/articles/318342/20260613/us-government-pulls-anthropics-fable-5-offline-now-come-refunds-vanished-ai.htm  
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      175
    3. 3
      PsYcHoKiLLa
      139
    4. 4
      ATLien_0
      91
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!