Windows 7 Forums


Windows 7: Toggle Function

06 Mar 2011   #1

Win7 Home Premium 64-bit
 
 
Toggle Function

Hi -

I use two powerplans and have created a shortcut/icon for each. Is it possible to create a single icon that will toggle between the two plans?

I also have an open dvd door icon and a close dvd door icon that I would like to reduce to a single button/ion/shortcut operation. I am guessing the solution for one is the same/similar as the other?

Currently, I have a shortcut/icon for 1. & 2. of the following that I would like to to have just one shortcut/icon or 'key' that toggles between the two :

1. C:\Windows\System32\powercfg.exe -setactive 32ab947d-4ee3-48bd-8914-1233eac022d9

2. C:\Windows\System32\powercfg.exe -setactive 381b4222-f694-41f0-9685-ff5bb260df2e

... also, the same desired for 'open' & 'close' of the dvd door/tray :

1. "C:\Program Files\nircmd-x64\nircmd.exe" cdrom open E:

2. "C:\Program Files\nircmd-x64\nircmd.exe" cdrom close E:

thnx,
-Marcos

My System SpecsSystem Spec

07 Mar 2011   #2

XP / Win7 x64 Pro
 
 

In order to have one shortcut do that, it would have to call a batch or vbs file that includes some logic to query what the current state is and then set it to the other state.
My System SpecsSystem Spec
10 Mar 2011   #3

Win7 Home Premium 64-bit
 
 

Quote   Quote: Originally Posted by FliGi7 View Post
In order to have one shortcut do that, it would have to call a batch or vbs file that includes some logic to query what the current state is and then set it to the other state.
and what would that look like?
My System SpecsSystem Spec
.


11 Mar 2011   #4

XP / Win7 x64 Pro
 
 

It could look like a lot of things, depending how you code it.

VBScript Options for Powering Computers | eHow.com
My System SpecsSystem Spec
14 Mar 2011   #5

Win7 Home Premium 64-bit
 
 

solved! you may now close this topic.
My System SpecsSystem Spec
Reply

 Toggle Function problems?



Thread Tools



Similar help and support threads for: Toggle Function
Thread Forum
'function' key to toggle large screen/normal screen ? General Discussion
DirectX toggle? Software
Toggle off Chrome's download bar Browsers & Mail
toggle gadgets on/off? Gadgets
Toggle aero General Discussion


All times are GMT -5. The time now is 10:07 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32