1
Post New Requests Here / Re: IDEA: Shortcut to color scheme change for use with battery run
« on: July 05, 2007, 01: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:
Make another script like this for when the power is disconnected:
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.
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}
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}
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.