Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Create a Shortcut or Hotkey to Switch Power Plans Tạo một Shortcut hoặc Hotkey để Switch Power hoạch

Have you ever wanted to be able to just hit a hotkey that tells Windows to switch from High Performance down to Power Saver? Bạn đã bao giờ muốn để có thể chỉ bấm một phím nóng mà cho Windows để chuyển từ High Performance xuống Power Saver? Sure, you can use the tray icon, but since we like to customize things there's always another way. Chắc chắn, bạn có thể sử dụng các biểu tượng trên khay, nhưng vì chúng tôi muốn điều chỉnh luôn có cách khác.

Power Icons

Thanks to our great forum member ScottW for coming up with this idea. Nhờ thành viên tuyệt vời của chúng tôi ScottW diễn đàn cho đến với ý tưởng này. He's always an excellent source of geeky wisdom! Ông luôn luôn là một nguồn tuyệt vời của trí tuệ geeky!

Using the powercfg Command Sử dụng lệnh powercfg

Windows 7 and Vista come with the powercfg command that you can use from the command prompt, and we'll have to use this tool to figure out the GUID—the internal ID that Windows uses—for the plan itself. Windows 7 và Vista đi kèm với lệnh powercfg mà bạn có thể sử dụng từ cửa sổ lệnh, và chúng tôi sẽ phải sử dụng công cụ này để tìm ra GUID-ID nội bộ mà Windows sử dụng cho các kế hoạch.

To find the power scheme GUID, simply open up a command prompt and type in the following: Để tìm GUID đề án điện, chỉ cần mở một lệnh và gõ vào sau đây:

powercfg –list powercfg-list

This should leave you with a list of the power plans you have assigned on your system, and the appropriate GUID for each. Điều này nên để lại cho bạn một danh sách các điện kế hoạch bạn đã được phân công vào hệ thống của bạn, và GUID thích hợp cho mỗi. If you've read our Nếu bạn đã đọc của chúng tôi handy guide to copying to the clipboard from the command prompt tiện hướng dẫn để sao chép vào clipboard từ dấu nhắc lệnh , it's an easy task to copy the GUID for later. , Đó là một nhiệm vụ dễ dàng để sao chép GUID cho sau này.

powercfg Command Prompt

As you can see in the screenshot, you can use the –setactive argument to actually switch between the plans from the command line, which is how we'll create the shortcut. Như bạn thấy trong ảnh chụp màn hình, bạn có thể dùng tham số-setactive để thực sự chuyển đổi giữa các kế hoạch từ dòng lệnh, mà là làm thế nào chúng tôi sẽ tạo các phím tắt.

Creating the Shortcut Tạo Shortcut

Next you'll need to create a shortcut by right-clicking on the desktop and choosing New \ Shortcut. Sau đó, bạn sẽ cần phải tạo ra một tắt bằng cách kích chuột phải trên desktop và chọn New \ Shortcut.

New Shortcut

You'll want to use the following in the application shortcut, replacing the GUID with your own: Bạn sẽ muốn sử dụng sau đây trong các phím tắt ứng dụng, thay thế với GUID của riêng bạn:

powercfg -setactive <SCHEME_GUID> powercfg-setactive <SCHEME_GUID>

Note how it looks in the screenshot… yours should look the same. Lưu ý nó trông như thế nào trong các ảnh chụp màn hình ... bạn nên xem xét như nhau.

Update: Reader Nick points out that you can use /setactive “Name of Profile” instead of the GUID as an alternate option. Cập nhật: Reader Nick chỉ ra rằng bạn có thể sử dụng / setactive "Tên Profile" thay vì GUID như là một lựa chọn thay thế.

Create Shortcut

You can repeat the same thing to create another shortcut for one of the other power plans. Bạn có thể lặp lại điều tương tự để tạo ra một phím tắt cho một trong những kế hoạch năng lượng khác.

Customize the Shortcut Tuỳ chỉnh Shortcut

Now that we have some fancy shortcuts, you can make them look better by tweaking the icon, and then assign a shortcut key. Bây giờ chúng ta có một số phím tắt ưa thích, bạn có thể làm cho họ trông tốt hơn bằng cách tinh chỉnh các biểu tượng, và sau đó gán một phím tắt. There are a number of really great icons in the following Windows DLL file: Có một số các biểu tượng thực sự tuyệt vời trong Windows file DLL sau:

C:\Windows\System32\powercpl.dll C: \ Windows \ system32 \ powercpl.dll

Customize Icon

And you can assign a shortcut key to switch power schemes on the fly. Và bạn có thể gán một phím tắt để chuyển đổi các đề án năng lượng trên bay.

Add Shortcut Key

Once you're all done, you should have two new icons, ready to use! Một khi bạn đang làm tất cả, bạn nên có hai biểu tượng mới, sẵn sàng sử dụng!

Sweet, Icons!

If you wanted to get really geeky, you can use the start menu search box or Nếu bạn muốn nhận được sự hâm mộ, bạn có thể sử dụng hộp trình đơn hoặc bắt đầu tìm kiếm Launchy Launchy to switch the schemes from the keyboard. để chuyển đổi các chương trình từ bàn phím.

Alternate: Use the Mobility Center Luân phiên: Sử dụng Trung tâm vận động

As reader borja points out in the comments, you can use the Win+X shortcut key combination to bring up the Mobility Center and quickly switch the power management mode—although it's not going to really be any quicker than using the tray icon, but still a useful tool! Như điểm Borja đọc ra trong các ý kiến, bạn có thể sử dụng Win + X tổ hợp phím tắt để đưa lên Trung tâm vận động và nhanh chóng chuyển sang chế độ quản lý điện năng, mặc dù nó không phải đi để thực sự được bất kỳ nhanh hơn bằng cách sử dụng các biểu tượng trên khay, nhưng vẫn một công cụ hữu ích!

image

This article was originally written on 06/11/09 Tagged with: Bài viết này ban đầu được viết ngày 06/11/09 Tagged với: Shortcuts and Hotkeys Phím tắt và Hotkeys , , Vista Tips & Tweaks Vista Tips & Tweaks , , Windows 7 Windows 7 , , Windows Vista Windows Vista

Daily Email Updates Email cập nhật hàng ngày

You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:


Name: Tên:
Email: Email:

Comments (12) Bình luận (12)

  1. one too many một trong quá nhiều

    So it is possible to write short cmd commands in shortcut location? Vì vậy, có thể viết ngắn lệnh cmd vào vị trí phím tắt?

  2. ramfree17 ramfree17

    If the Vista/Win7 version of the powercfg only operates on GUID then it is a step back as the XP version allows the usage of the human-friendly name, or the numerical id if you use the /n switch. Nếu phiên bản Vista/Win7 của powercfg chỉ hoạt động trên GUID thì nó là một bước trở lại như các phiên bản Windows XP cho phép việc sử dụng tên của con người thân thiện, hay id các số nếu bạn sử dụng chuyển đổi n /.

    ciao! ciao!

  3. borja Borja

    Nice tip!. Nice tip!.
    In win7, you can use “windows key+x” to switch power plans quickly. Trong Win7, bạn có thể sử dụng "cửa sổ chính + x" để chuyển đổi các kế hoạch quyền lực một cách nhanh chóng.

  4. Mike Versteeg Mike Versteeg

    First of all, let me thank you for all the great tips, I'm so glad I subscribed. Trước hết, hãy để tôi cảm ơn bạn cho tất cả những lời khuyên tuyệt vời, tôi vui mừng vì vậy tôi đăng ký.

    As a programmer I often have to switch between normal mode (ie power saver) and a high performance mode when I am doing stability runs of a program. Là một lập trình viên tôi thường xuyên phải chuyển đổi giữa chế độ bình thường (nghĩa là tiết kiệm năng lượng) và thực hiện một chế độ cao khi tôi đang làm ổn định của một chương trình chạy. I love this feature, but it would be even more perfect if it would also enable/disable the screen saver. Tôi thích tính năng này, nhưng sẽ hoàn hảo hơn nếu nó cũng sẽ cho phép / vô hiệu hóa trình tiết kiệm màn hình. Lastly, would it be possible to indicate (icon) what mode is active? Cuối cùng, nó sẽ có thể để cho biết (biểu tượng) được kích hoạt chế độ nào?

    PS: I realize this is all easy with a bit of programming, but frankly I have too much fun doing it without writing a single line of code PS: Tôi nhận thấy điều này là tất cả dễ dàng với một chút về lập trình, nhưng thẳng thắn tôi đã vui vẻ quá nhiều làm nó mà không cần viết một dòng mã :)

  5. Nick Staroba Nick Staroba

    You can also use the command like this: Bạn cũng có thể sử dụng lệnh như thế này:

    powercfg.exe /setactive “Name of profile” powercfg.exe / setactive "Tên của tiểu sử"

    Works for me Tác phẩm cho tôi :)

  6. Karthik Karthik

    Thanks! Cảm ơn! I have always wanted to have a keyboard shortcut for power mode switch. Tôi đã luôn luôn muốn có một phím tắt để chuyển sang chế độ quyền lực.

    Also… I did not know about Win+X combination. Ngoài ra ... Tôi không biết về Win + X kết hợp. Thanks to Borja Nhờ Borja

  7. Robert Lambrecht Robert Lambrecht

    You could use the Task Scheduler to schedule this command and have the “High Performance” plan during the day and “Power Saver” plan at night. Bạn có thể sử dụng Task Scheduler để sắp xếp lệnh này và có "Hiệu suất cao" kế hoạch trong ngày và "Power Saver kế hoạch" vào ban đêm. This would save power if you leave your PC on at night and give you benefits during the day! Điều này sẽ tiết kiệm năng lượng nếu bạn để lại trên máy tính của bạn vào ban đêm và cung cấp cho bạn những lợi ích trong ngày!

  8. ScottW ScottW

    powercfg -setactive “plan name” doesn't work for me in Win7 RC. powercfg-setactive "kế hoạch tên" không làm việc cho tôi trong Win7 RC. Looking at the command line options as described at TechNet and from powercfg /?, there is no mention of a possible friendly name substitution for the power scheme GUID. Nhìn vào những tùy chọn dòng lệnh như mô tả ở TechNet và từ powercfg /?, Không có đề cập đến một tên có thể thay thế thân thiện cho các đề án điện GUID. Here is the TechNet article for Vista: Sau đây là bài viết TechNet cho Vista:
    http://technet.microsoft.com/e.....48940.aspx http://technet.microsoft.com/e.....48940.aspx

    Can anyone else confirm that powercfg -setactive “plan name” works for them in Vista or 7? Bất cứ ai khác có thể xác nhận rằng powercfg-tên kế hoạch setactive "" làm việc cho họ trong Vista hoặc 7?

  9. ScottW ScottW

    Aha! Aha! Here are the user-friendly names of the power schemes in the list of aliases: Dưới đây là thân thiện với người sử dụng tên của các công trình điện trong danh sách các bí danh:

    >powercfg -aliases > powercfg-aliases

    a1841308-3541-4fab-bc81-f71556f20b4a SCHEME_MAX a1841308-3541-4fab-bc81-f71556f20b4a SCHEME_MAX
    8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c SCHEME_MIN 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c SCHEME_MIN
    381b4222-f694-41f0-9685-ff5bb260df2e SCHEME_BALANCED 381b4222-f694-41f0-9685-ff5bb260df2e SCHEME_BALANCED

    So the following commands are valid, and test out on my Win 7 RC install: Vì vậy, các lệnh sau đây là hợp lệ, và thử trên Win của tôi 7 RC cài đặt:

    > powercfg -setactive SCHEME_MAX > Powercfg-setactive SCHEME_MAX
    > powercfg -setactive SCHEME_BALANCED > Powercfg-setactive SCHEME_BALANCED
    > powercfg -setactive SCHEME_MIN > Powercfg-setactive SCHEME_MIN

  10. mmhmm mmhmm

    um, has anyone noticed that this doesnt work after the first time you do it? um, có ai nhận thấy rằng công việc này doesnt sau khi lần đầu tiên bạn làm điều đó?
    or maybe its just me . hoặc có thể chỉ mình tôi. . . . .

  11. Drewsky Drewsky

    I get “The file…powercfg.exe contains no icons” message when I try to change the icon. Tôi nhận "Các tập tin ... powercfg.exe không chứa các biểu tượng" thư khi cố gắng thay đổi biểu tượng. Running Vista Business. Chạy Vista Business. Anyone else get that? Bất cứ ai khác có được điều đó?

  12. Adam L Adam L

    I just wanted to leave a comment describing how I made this look really, really good. Tôi chỉ muốn để lại comment mô tả như thế nào tôi làm điều này trông thật sự, thật sự tốt. I highly recommend anyone who did the above, read the below. Tôi khuyên bạn nên đánh giá cao bất cứ ai đã làm việc ở trên, đọc dưới đây. And thank them too. Và cảm ơn chúng. :-)

    I made three shortcuts – Power Saver.lnk, Balanced.lnk, and High Performance.lnk. Tôi đã ba phím tắt - Công suất Saver.lnk, Balanced.lnk, và cao Performance.lnk. I customized their icons from the properties dialog to use the wireless signal indicators (sets of two-to-five green bars), which are located in the file C:/Windows/System32/mblctr.exe – there are four to choose from and on a machine with no wireless icons visible or in use, they really suit these power-plan shortcuts. Tôi tùy chỉnh các biểu tượng của họ từ các tài sản thoại để sử dụng các chỉ số tín hiệu không dây (bộ hai-to-năm thanh màu xanh), nằm trong tập tin C: / Windows/System32/mblctr.exe - có bốn để lựa chọn và trên máy tính có các biểu tượng không dây không thể nhìn thấy hay sử dụng, họ thực sự phù hợp với các lực-phím tắt kế hoạch. I looked in System32 forever to find ones that did. Tôi nhìn trong system32 mãi mãi để tìm những cái đó đã làm. : D

    So I put them in a folder I made: C:/Users/[Adam]/AppData/Roaming/Microsoft/Windows/[Power Plans/], which you can name anything you like. Vì vậy, tôi đặt chúng trong một thư mục tôi thực hiện: C: / Users / [Adam] / AppData / Roaming / Microsoft / Windows / [Power hoạch /], mà bạn có thể đặt tên bất cứ điều gì bạn muốn. But this is the most logical place in a Windows Vista installation for these shortcuts. Nhưng đây là nơi hợp lý nhất trong một cài đặt Windows Vista cho các phím tắt.

    The last step is to navigate a new window to Control Panel, make sure you are in classic view. Bước cuối cùng là để di chuyển một cửa sổ mới vào Control Panel, chắc chắn rằng bạn đang ở trong xem cổ điển. Right click the Power Options icon and select “Create Shortcut.” It appears on the desktop, name it whatever you like. Nhấp chuột phải vào biểu tượng Power Options và chọn "Create Shortcut" Nó xuất hiện trên desktop., Tên nó bất cứ điều gì bạn muốn. Place it in the folder with the power-plan shortcuts. Đặt nó trong thư mục với sức mạnh-phím tắt kế hoạch.

    Now I listed this folder as a toolbar on my taskbar, and unlocked the taskbar. Bây giờ tôi liệt kê thư mục này như là một thanh công cụ trên thanh tác vụ của tôi, và mở khóa các thanh tác vụ. Make the toolbar as short as possible so that only the name of the folder and a pair of arrows appear. Làm cho thanh công cụ càng ngắn càng tốt để chỉ tên của thư mục và một cặp mũi tên xuất hiện. Drag the very last shortcut we created, the one to “Control Panel/Power Options” to the top of the list in our toolbar so it appears above all the specific shortcuts to each plan. Kéo tắt cuối cùng chúng tôi tạo ra, trong một đến "Control Panel / Power Options" để đầu danh sách trong thanh công cụ của chúng tôi để nó xuất hiện trên tất cả các phím tắt cụ thể cho từng kế hoạch. Right click the dots which appear to the left of your new toolbar after unlocking it; you can deselect “Show Text” and “Show Title.” Now they will be replaced by the topmost icon, which opens the Power Options dialog. Nhấp chuột phải vào dấu chấm xuất hiện bên trái của thanh công cụ mới của bạn sau khi mở nó, bạn có thể bỏ chọn "Show Text" và "Hiển thị đề" Bây giờ chúng sẽ được thay thế bằng các biểu tượng trên cùng, mà mở hộp thoại Power Options.. The arrows show the plans, which you can drag into your preferred order. Các mũi tên hiển thị các kế hoạch, mà bạn có thể kéo vào thứ tự ưu tiên của bạn. It's like it was meant to be. Nó giống như nó đã có nghĩa là phải. :-)


Our Friends Bạn bè của chúng tôi
Getting Started Bắt đầu


About How-To Geek Giới How-To Geek
What Is That Process? Quá trình đó là gì?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Bản quyền © 2006-2009 HowToGeek.com. All Rights Reserved. Tất cả các quyền.