Thread Deleted Email Thread
Prev Previous Post   Next Post Next

I recently decided that the i-mate tray battery meter was not good enough for my needs and wanted to find a better one. After a few hours of looking and not finding one that was perfect for me I wondered: how hard is it to write one?
Well, apparently its very easy.

I decided to share the result with the community. There are much better ones out there, but perhaps someone will find this one suitable as well.

Whats so special about it?
Its tiny! Only 8.5k. Downside of this - it doesn't have any options, nor do I intend to add any in the future to keep current size. Also it receives notifications on battery as they come in, so its very accurate without having to constantly check the battery and generate unnecessary CPU load.

It takes its behavior from the device driver which is why it will act differently on different devices when battery is charging. (Some devices report battery full, others report accurate percentage, yet others "slide" it in a loop).

Name:  priview.bmp
Views: 21652
Size:  18.3 KB

Also it starts just after MS logo (as you can see from the screen shot I have that space occupied) and doesn't fill the whole screen (14 pixels are left so the units could be evenly sized).

Well here it is, enjoy

For those who wish to learn how this program works, or to create another using it as a base, here is the entire project:
The project compiles under eVC 4 with Windows Mobile 2003 SDK.
This program is now released under GNU/GPL v3.0
(See License.txt for more info)

Hope you will find it useful.
The Following User Says Thank You to levenum For This Useful Post: [ View ] Gift levenum Ad-Free
Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes