Author Topic: [WIN] Profili batteria menu contestuale batteria windows 7  (Read 6725 times)

0 Members and 1 Guest are viewing this topic.

Offline Raid

  • Administrator
  • Membro esperto
  • *****
  • Posts: 2200
    • www.darkforge.it
[WIN] Profili batteria menu contestuale batteria windows 7
« on: Fri 14 November 2014, 22:44 »
Quote
Dal Sito Microsoft
YOU CAN SERIOUSLY DAMAGE YOUR SYSTEM IF YOU MAKE ANY ERRORS WHILE MODIFYING THE REGISTRY!!

So, after mucking about in the registry a bit, I found something that might do what you want.  When you right-click the power icon, it brings up a context menu that you can define in the registry, once you set up the power plans you want, you can add a menu item for it (using powercfg):

First, create the power plan.

Second, go to cmd and get the guid for your power scheme using "powercfg -l"
This lists all your power plans and the associated GUID, you will plug this into the registry to create  menu item for it.

Third, go to regedit and navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\SysTray\BattMeter\ContextMenu\

Fourth, select or create a numbered sub folder from 1-6
Navigate to the numbered folder:

Set or create Expandable String Value named "Application" to "%SystemRoot%\system32\powercfg.exe"
Set or create Expandable String Value named "ItemName" to whatever you want for the display name
Set or create Expandable String Value named "Parameters" to "-s <scheme guid>"
Set or create Expandable String Value named "IconID" to whatever icon you want to show

 

Creative Commons License All ValerioCipriani.com contents are published according to Creative Common License, except different instructions. The Staff is not responsible of eventually guide, article and publishing mistakes. All published items are patent free. All trade marks reported are right reserved. Contact us, Info.