Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 05, 2015, 09:22:02 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: Warning that I'm on Battery power  (Read 17482 times)

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
DONE: Warning that I'm on Battery power
« on: October 19, 2009, 01:57:18 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?

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,563
    • View Profile
    • App's Apps
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #1 on: October 19, 2009, 10:06:40 AM »
My daughter uses Yahoo Widgets on her laptop. They have a ton of battery related stuff.

http://widgets.yahoo...om/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.

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #2 on: October 19, 2009, 12:12:53 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.)

test.PNG

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.
« Last Edit: November 05, 2009, 07:01:07 PM by scancode »

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #3 on: October 19, 2009, 03:00:12 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.


« Last Edit: October 19, 2009, 04:17:22 PM by dbarton »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,219
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #4 on: October 19, 2009, 09:14:15 PM »
+1 for resizable window, will help us netbook users.. :)

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #5 on: October 20, 2009, 01:22:41 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...

mrmandala

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #6 on: October 26, 2009, 06:37:38 AM »
This is very handy, any chance of a censored version of the About text? I'm sure someone would take offence! Cheers

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #7 on: October 26, 2009, 11:30:03 AM »
This is very handy, any chance of a censored version of the About text? I'm sure someone would take offence! Cheers

Quote from: the WTFPL license FAQ
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.

Back to seriousness, do you know any other license that allows as much freedom as the WTFPL without forcing me to release sourcecode?

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #8 on: October 26, 2009, 02:28:19 PM »
V 1.1 is out. Added some customization options.
Also moved from the WTFPL to a more 'family friendly' license.

Quote
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.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,013
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #9 on: October 26, 2009, 05:16:03 PM »
Quote
pay for this program by spending one hour petting one or several cats.

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

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,219
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #10 on: October 26, 2009, 09:48:57 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.

BatteryStatus 1.1.exe_sshot_27_10_2009_(001).png

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #11 on: October 26, 2009, 10:03:15 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)

Uploaded fixed version. Thanks for the report.

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #12 on: October 26, 2009, 10:48:48 PM »
This version is very nice!
Thanks.

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

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #13 on: October 26, 2009, 10:53:31 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

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,219
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #14 on: October 26, 2009, 11:22:20 PM »
Uploaded fixed version. Thanks for the report.

thanks, it works well now. :up:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,013
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #15 on: October 26, 2009, 11:32:45 PM »
let's not forget to send some donationcredits to the authors of coding snacks to say thank you!

mrmandala

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #16 on: October 27, 2009, 09:40:33 AM »
Nice, and thanks.

SleepingWolf

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 107
    • View Profile
    • Donate to Member
Re: Warning that I'm on Battery power
« Reply #17 on: October 29, 2009, 05:41:41 PM »
Quote
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.
-------------------------------------------

Choose life -or at least respect it.

jdd

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 214
    • View Profile
    • Donate to Member
Re: DONE: Warning that I'm on Battery power
« Reply #18 on: February 23, 2010, 08:14:15 PM »
scancode

Can you provide the option to have the warning appear:

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

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: DONE: Warning that I'm on Battery power
« Reply #19 on: February 23, 2010, 09:08:44 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.co...yStatus%201.1.2b.exe

Please report back with your results.

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,050
    • View Profile
    • Just for mouser.
    • Donate to Member
Re: DONE: Warning that I'm on Battery power
« Reply #20 on: February 23, 2010, 09:51:45 PM »
Quote
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. ;)


scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: DONE: Warning that I'm on Battery power
« Reply #21 on: February 23, 2010, 09:56:58 PM »
Quote
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

jdd

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 214
    • View Profile
    • Donate to Member
Re: DONE: Warning that I'm on Battery power
« Reply #22 on: February 24, 2010, 07:09:10 AM »
Quote
don't currently have a laptop running windows, so this was done blindly...

http://dl.dropbox.co...yStatus%201.1.2b.exe

Please report back with your results.

The bottons show up on the config screen but they do not function.

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 637
  • I will eat Cody someday.
    • View Profile
    • Donate to Member
Re: DONE: Warning that I'm on Battery power
« Reply #23 on: February 24, 2010, 10:05:51 AM »
Okay, I'm gonna install Windows on my laptop (argh) and I'll get back to you ASAP