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
  • December 03, 2016, 03:43:16 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: IDEA: Shortcut to color scheme change for use with battery run  (Read 2442 times)

taybay

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
I am a proud owner of a shiny new laptop, complete with Vista Premium.  However, I am finding that Aero is a battery drain compared to the other schemes.  I found batteryrun and thought it may be useful to be able to have my color scheme switch to Vista basic when I disconnect the AC power and then switch back to Aero when I reconnect it.  Unfortunately I can't seem to find any way to make the switch between schemes without going into appearance settings and changing it manually.  If you could find some way to make a file or two that can switch between two color schemes so that I can use them with batteryrun, I will love you forever!  Thank you =)

taybay

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: IDEA: Shortcut to color scheme change for use with battery run
« Reply #1 on: July 01, 2007, 04:48:39 PM »
Nevermind! I learned how to use Autohotkey.  Yay  ;D

steeladept

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,059
    • View Profile
    • Donate to Member
Re: IDEA: Shortcut to color scheme change for use with battery run
« Reply #2 on: July 02, 2007, 05:40:14 AM »
If it works, perhaps you would be willing to share for the rest who have not figured it out yet?  Or like me who have not switched yet, but will be forced to in the future.  Just a thought...

taybay

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: IDEA: Shortcut to color scheme change for use with battery run
« Reply #3 on: July 05, 2007, 01:59:59 PM »
Alright.  It's really quick and dirty but it works.  I don't have a host so I'll just post the code.

Make an autohotkey script that looks like this for when the power is plugged in:
Run c:\windows\system32\control.exe color
WinWaitActive, Appearance Settings
Send {up}{enter}

Make another script like this for when the power is disconnected:
Run c:\windows\system32\control.exe color
WinWaitActive, Appearance Settings
Send {down}{enter}

Like I said, it's quick and dirty.  I'm a noob with autohotkey right now.  The appearance window pops up and it takes a few seconds to switch between themes, but it works.  Also, any color scheme saved to aero is lost when switching to basic and back.  I haven't tried it yet, but I'm sure that the color scheme fix can be worked into the script.