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
MourningStar

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
FliGi7

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
MourningStar

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
FliGi7

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
MourningStar

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
Thread Forum
Spec Ops: The Line... Toggle Aim
Just like in FC3 the option to Toggle Aim is not in this game but, I am hoping that, just like in FC3, there is a way to edit an xml file or ini file where a positive change emerged ;) I was asked and since I don't have the game I thought I asked the PC Gurus here! :D Silly me, thinking I was...
Gaming
'function' key to toggle large screen/normal screen ?
hi A neighbor's Vista-run desktop allows for an 'F' key (possibly F10) toggling of screen sizes (with/without toolbars). Is our newly acquired laptop (Windoiws 7 Pro) capable of same? If so, how to go about it? Thank you
General Discussion
DirectX toggle?
I have a script I use to use for Windows XP but seems some batch commands have changed.. I want to be able to toggle on/off DirectX in Windows 7. Anyone know if this works in Windows 7 and how to fix the script? @Echo off Title "Toggling DX Mode" ::Mode CON: COLS=35 Lines=5 Reg query...
Software
toggle gadgets on/off?
I'm wondering if there is a way to toggle on/off the gadgets? I know you can right click and show gadgets or hide them, but I'm trying to find a way to use a hotkey to toggle them on or off. Any ideas??
Gadgets
Toggle aero
I think I read somewhere, that there is a shortcut for toggling Aero on/off. But I can't fint it again :-) In my memory it was CTRL-ALT-F9, but that doesn't work after installing build 7077. Anyone has this?
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 01:03.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App