DonationCoder.com Forum

DonationCoder.com Software => Coding Snacks => Finished Programs => Topic started by: dbarton on October 19, 2009, 01:57 AM

Title: DONE: Warning that I'm on Battery power
Post by: dbarton on October 19, 2009, 01:57 AM

I was doing a presentation on Sat, and I guess my power cord wasn't plugged in all the way, so I was on battery power. Died halfway thru the presentation in front of 1000 people, and went in hiberation. Bad!!

I use the laptop for audio so they don't see the screen.

I want a small flashing box on my screen every time I'm on battery power so this never happens again.
Anyone seen such a tiny program?
Title: Re: Warning that I'm on Battery power
Post by: app103 on October 19, 2009, 10:06 AM
My daughter uses Yahoo Widgets on her laptop. They have a ton of battery related stuff.

http://widgets.yahoo.com/search/?q=battery

It's pretty much a matter of taste as to which you choose. Some have audio alerts when remaining power goes under a certain threshold, others will popup to topmost level on your screen.
Title: Re: Warning that I'm on Battery power
Post by: scancode on October 19, 2009, 12:12 PM

I was doing a presentation on Sat, and I guess my power cord wasn't plugged in all the way, so I was on battery power. Died halfway thru the presentation in front of 1000 people, and went in hiberation. Bad!!

I use the laptop for audio so they don't see the screen.

I want a small flashing box on my screen every time I'm on battery power so this never happens again.
Anyone seen such a tiny program?




BatteryStatus.exe (101.5 KB - downloaded 70 times.)
BatteryStatus 1.1.exe (144.5 KB - downloaded 34 times.)
[ You are not allowed to view attachments ]
[ You are not allowed to view attachments ]

Nag me if you'd like any changes.

V1.1 - Added a small mode, and settings dialog. You can now choose display position and size.
Changed to a more restrictive license as per mrmandala's request.
V1.1.1 - Fixed a bug with docked toolbars. Thx lanux128 for the report.
Title: Re: Warning that I'm on Battery power
Post by: dbarton on October 19, 2009, 03:00 PM
Excellent.

Ideally I'd like to be able to resize the screen size just a bit.
Sometime just one line high is enough to just see the status.

Maybe right click for a selection of sizes? (command line parameter would be ok)
Can it (maybe by command line switch switch) default to top right?
Can we change poll rate?

Do you offer ahk source?

Still, very usable as is, so very much appreciated.


Title: Re: Warning that I'm on Battery power
Post by: lanux128 on October 19, 2009, 09:14 PM
+1 for resizable window, will help us netbook users.. :)
Title: Re: Warning that I'm on Battery power
Post by: scancode on October 20, 2009, 01:22 AM
Excellent.
Thanks.

Ideally I'd like to be able to resize the screen size just a bit.
Sometime just one line high is enough to just see the status.
Maybe right click for a selection of sizes? (command line parameter would be ok)
Can it (maybe by command line switch switch) default to top right?
Can we change poll rate?
Will do

Do you offer ahk source?
Nope, mainly because this is written in VB not AHK  ;)

Let me see what I can come up with...
Title: Re: Warning that I'm on Battery power
Post by: mrmandala on October 26, 2009, 06:37 AM
This is very handy, any chance of a censored version of the About text? I'm sure someone would take offence! Cheers
Title: Re: Warning that I'm on Battery power
Post by: scancode on October 26, 2009, 11:30 AM
This is very handy, any chance of a censored version of the About text? I'm sure someone would take offence! Cheers

Can’t you change the wording? It’s inappropriate / childish / not corporate-compliant.

What the fuck is not clear in “DO WHAT THE FUCK YOU WANT TO”? If you do not like the license terms, just relicense the work under another license.
-the WTFPL license FAQ

Back to seriousness, do you know any other license that allows as much freedom as the WTFPL without forcing me to release sourcecode?
Title: Re: Warning that I'm on Battery power
Post by: scancode on October 26, 2009, 02:28 PM
V 1.1 is out. Added some customization options.
Also moved from the WTFPL to a more 'family friendly' license.

This program is catware/donationware.  If you find it useful in any way, pay for this program by spending one hour petting one or several cats. A donation to the author would be nice, but is not required.
Title: Re: Warning that I'm on Battery power
Post by: mouser on October 26, 2009, 05:16 PM
pay for this program by spending one hour petting one or several cats.

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D :Thmbsup:
Title: Re: Warning that I'm on Battery power
Post by: lanux128 on October 26, 2009, 09:48 PM
the program appears behind the taskbar, can it be made to appear above the taskbar? my desktop has an LBC dock on top and the taskbar at the bottom.

[ You are not allowed to view attachments ]
Title: Re: Warning that I'm on Battery power
Post by: scancode on October 26, 2009, 10:03 PM
the program appears behind the taskbar, can it be made to appear above the taskbar? my desktop has an LBC dock on top and the taskbar at the bottom.
 (see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=20301.msg182453#msg182453))

Uploaded fixed version. Thanks for the report.
Title: Re: Warning that I'm on Battery power
Post by: dbarton on October 26, 2009, 10:48 PM
This version is very nice!
Thanks.

How are you saving the choice of where the window goes?
Registry?
Title: Re: Warning that I'm on Battery power
Post by: scancode on October 26, 2009, 10:53 PM
This version is very nice!
Thanks.

How are you saving the choice of where the window goes?
Registry?

Yup. HKCU\Software\VB and VBA Program Settings\BatteryStatus\Config
Title: Re: Warning that I'm on Battery power
Post by: lanux128 on October 26, 2009, 11:22 PM
Uploaded fixed version. Thanks for the report.

thanks, it works well now. :up:
Title: Re: Warning that I'm on Battery power
Post by: mouser on October 26, 2009, 11:32 PM
let's not forget to send some donationcredits to the authors of coding snacks to say thank you!
Title: Re: Warning that I'm on Battery power
Post by: mrmandala on October 27, 2009, 09:40 AM
Nice, and thanks.
Title: Re: Warning that I'm on Battery power
Post by: SleepingWolf on October 29, 2009, 05:41 PM
pay for this program by spending one hour petting one or several cats.

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D :Thmbsup:

Well, Mouser would like that, but I'd rather chase 'em.
Title: Re: DONE: Warning that I'm on Battery power
Post by: jdd on February 23, 2010, 08:14 PM
scancode

Can you provide the option to have the warning appear:

1. only on battery, or
2. only on AC, or
3. both
Title: Re: DONE: Warning that I'm on Battery power
Post by: scancode on February 23, 2010, 09:08 PM
scancode

Can you provide the option to have the warning appear:

1. only on battery, or
2. only on AC, or
3. both


I don't currently have a laptop running windows, so this was done blindly...

http://dl.dropbox.com/u/4464699/BatteryStatus%201.1.2b.exe

Please report back with your results.
Title: Re: DONE: Warning that I'm on Battery power
Post by: Deozaan on February 23, 2010, 09:51 PM
pay for this program by spending one hour petting one or several cats.

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D :Thmbsup:

:( I'm allergic to cats. Now I can't use this software. ;)
Title: Re: DONE: Warning that I'm on Battery power
Post by: scancode on February 23, 2010, 09:56 PM
pay for this program by spending one hour petting one or several cats.

 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D :Thmbsup:

:( I'm allergic to cats. Now I can't use this software. ;)


At your option, you can abide to the terms of the WTFPL
Title: Re: DONE: Warning that I'm on Battery power
Post by: jdd on February 24, 2010, 07:09 AM
don't currently have a laptop running windows, so this was done blindly...

http://dl.dropbox.com/u/4...atteryStatus%201.1.2b.exe

Please report back with your results.

The bottons show up on the config screen but they do not function.
Title: Re: DONE: Warning that I'm on Battery power
Post by: scancode on February 24, 2010, 10:05 AM
Okay, I'm gonna install Windows on my laptop (argh) and I'll get back to you ASAP