Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Toggle Function

06 Mar 2011   #1

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
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

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

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

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

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

 Toggle Function




Thread Tools



Similar help and support threads for2: Toggle Function
Thread Forum
Spec Ops: The Line... Toggle Aim Gaming
'function' key to toggle large screen/normal screen ? General Discussion
DirectX toggle? Software
Powerplan Toggle Help Requested Customization
toggle gadgets on/off? Gadgets
Toggle aero General Discussion

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 04:59 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33