如果您还不知道,您的Windows 10 电脑配备了深色模式(Windows 10 computer comes with a dark mode),可帮助缓解您的眼睛疲劳并让您的电脑看起来更暗。该选项位于“设置”(Settings)应用程序中,您可以随时启用和禁用它。
暗模式主要用于夜间,而亮模式则用于白天。如果这也是您在计算机上使用它的方式,您可能必须每天手动切换模式。
实际上,您可以通过创建一个自动为您打开或关闭Windows 10上的暗模式的任务来让这个过程变得更容易一些。设置它非常容易,您只需执行一次。然后它每天自动运行并根据您的规范切换模式。
使用任务计划程序在 Windows 10 上自动启用暗模式(Use Task Scheduler To Automatically Enable Dark Mode On Windows 10)
任务计划程序可让您在 Windows 10(automate a number of tasks on your Windows 10)计算机上自动执行多项任务。您可以使用它来创建一个任务,在夜间在您的 PC 上自动启用暗模式。当触发任务并启用模式时,您可以为其设置特定时间。
- 单击(Click)Cortana搜索框,搜索Task Scheduler ,然后在搜索结果中看到它时单击它。
- 单击顶部的“操作”(Action)菜单,然后选择“创建基本任务(Create Basic Task)”选项。
- 为您的任务输入一个名称,如果需要,可以输入一个可选描述,然后单击下一步(Next)继续。您需要使用启用暗模式(Enable Dark Mode)之类的名称作为名称,以便以后可以识别任务。
- 以下屏幕可让您设置任务的频率。您需要选择“每日”(Daily),以便系统每晚都启用暗模式。然后单击下一步(Next)继续。
- 它会询问您想在什么时间激活暗模式。选择您通常在计算机上启用该模式的时间,然后单击Next。
- 这里是它询问任务被触发时应该做什么的部分。选择启动程序(Start a program),因为这是任务需要执行的操作,然后单击下一步(Next)。
- 在以下屏幕上,系统会询问您在启动任务时应该运行什么程序。您需要按以下方式设置选项,以便启用暗模式。
程序/脚本:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
添加参数(可选):
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
然后点击下一步(Next)继续。
- 您现在应该在任务摘要屏幕上。选中(Checkmark)当我单击“完成”然后单击“完成”按钮(Finish)时打开此任务的属性对话框(Open the Properties dialog for this task when I click Finish)的选项。
- 任务属性框将在您的屏幕上打开。选择顶部显示“条件”的选项卡,然后取消选中(Conditions)“仅当计算机使用交流电源时才启动任务(Start the task only if the computer is on AC power)”框。然后单击确定(OK)以保存更改。
当时钟达到您指定的时间时,任务计划程序(Task Scheduler)将运行您的任务并激活系统上的暗模式。它会在您指定的时间每晚执行此操作。
使用任务计划程序在 Windows 10 上自动停用暗模式(Automatically Deactivate Dark Mode on Windows 10 Using Task Scheduler)
第二天早上醒来看看电脑,你会发现它仍然开启了黑暗模式。这是因为您在上面创建的任务仅启用了暗模式,而实际上并没有在早上禁用它。
要让您的计算机在白天恢复到轻型模式,您需要在Task Scheduler中为其创建一个单独的任务。
- 在您的计算机上启动任务计划程序(Task Scheduler),然后单击创建基本任务(Create Basic Task)。
- 输入Enable Light Mode作为任务名称,根据需要输入描述,然后单击底部的Next 。
- 由于您为暗模式选择了 Daily,因此您还需要为 Light 模式任务选择Daily 。然后单击下一步(Next)继续。
- 它会要求您输入触发任务的时间。指定您希望在您的机器上启用灯光模式的时间,然后单击Next。
- 在以下屏幕上选择Start a program并点击(Start a program)Next。
- 在屏幕上输入(Enter)以下详细信息,然后单击Next。
程序/脚本:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
添加参数(可选):
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 1 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force
- 复选标记当我单击 Finish并单击Finish时,打开此任务的 Properties 对话框(Open the Properties dialog for this task when I click Finish)。
- 选择条件(Conditions)选项卡,取消选中仅在计算机使用交流电源时启动任务(Start the task only if the computer is on AC power),然后点击确定(OK)。
它现在会在您选择的时间自动启用灯光模式。
更改模式时间设置(Change Mode Time Settings)
您可以随时修改计划时间。
- 打开Task Scheduler,在列表中找到您的任务,右键单击它,然后选择Properties。
- 单击触发器(Triggers)选项卡,选择您的触发器,然后选择编辑(Edit)。
在 Windows 10 上禁用自动激活深色和浅色模式(Disable Automatic Activation Of Dark & Light Modes On Windows 10)
如果要禁用整个自动操作,请执行以下操作。
- 启动任务计划程序(Task Scheduler )并找到您的任务。
- 右键单击任务并选择Delete。
您需要为您的两项任务执行此操作。
使用应用程序在 Windows 10 上安排深色和浅色模式(Using An App To Schedule Dark & Light Modes On Windows 10)
有一个名为Windows 10 Auto Dark Mode(Windows 10 Auto Dark Mode)的免费开源应用程序,可帮助您轻松地在计算机上安排暗模式和亮模式。
您可以使用它代替任务计划程序(Task Scheduler)在您选择的时间激活浅色和深色主题(activate light and dark themes)。
How To Automatically Toggle Dark & Light Modes On Windows 10
If you don’t already know, уour Windows 10 computer comes with a dark mode to help relieve your eyestrain and give your computer a more darkish look. The option is located in the Settings app and you can enable and disable it at any time you want.
The dark mode is mostly used at night times and the light mode is for daytime. If you this is also how you use it on your computer, you may have to toggle the mode manually each day.
You can actually make the process a bit easier for yourself by creating a task that automatically toggles dark mode on Windows 10 on or off for you. It’s pretty easy to set it up and you only need to do it once. It then runs automatically everyday and toggles the modes as per your specification.
Use Task Scheduler To Automatically Enable Dark Mode On Windows 10
Task Scheduler lets you automate a number of tasks on your Windows 10 computer. You can use it to create a task that auto-enables the dark mode at night time on your PC. You can set up a specific time for it when the task is triggered and the mode is enabled.
- Click on the Cortana search box, search for Task Scheduler, and click on it when you see it in the search results.
- Click on the Action menu at the top and select the option that says Create Basic Task.
- Enter a name for your task, an optional description if you want, and click on Next to continue. You’ll want to use something like Enable Dark Mode as the name so you can recognize the task at a later time.
- The following screen lets you set the frequency of the task. You’ll want to choose Daily so the dark mode gets enabled every night on your system. Then click on Next to continue.
- It’ll ask what time you’d like to activate the dark mode. Choose the time when you usually enable the mode on your computer and click on Next.
- Here comes the part where it asks what the task should do when it’s triggered. Select Start a program as that’s what the task needs to do and click on Next.
- On the following screen, you’ll be asked what program the task should run when it’s launched. You need to set the options as the following so it enables the dark mode.
Program/script:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
Add arguments (optional):
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
Then click on Next to continue.
- You should now be on the task summary screen. Checkmark the option that says Open the Properties dialog for this task when I click Finish and then click on the Finish button.
- The task properties box will open on your screen. Select the tab that says Conditions at the top and untick the box for Start the task only if the computer is on AC power. Then click on OK to save the changes.
When the clock hits your specified time, Task Scheduler will run your task and activate the dark mode on your system. It’ll do this every night at your specified time.
Automatically Deactivate Dark Mode on Windows 10 Using Task Scheduler
The next morning when you wake up and look at your computer, you’ll find that it still has the dark mode turned on on it. It’s because the task you created above only enables the dark mode and doesn’t actually disable it in the morning.
To get your computer back to light mode during daytime, you’ll want to create a separate task for it in Task Scheduler.
- Launch Task Scheduler on your computer and click on Create Basic Task.
- Enter Enable Light Mode as the name of the task, enter a description if you want, and click on Next at the bottom.
- Since you chose Daily for the dark mode, you’ll need to choose Daily for the light mode task as well. Then click on Next to continue.
- It’ll ask you to enter the time when the task should be triggered. Specify the time when you want the light mode to be enabled on your machine and click on Next.
- Select Start a program on the following screen and hit Next.
- Enter the following details on your screen and click on Next.
Program/script:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
Add arguments (optional):
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 1 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force
- Checkmark Open the Properties dialog for this task when I click Finish and click on Finish.
- Select the Conditions tab, uncheck Start the task only if the computer is on AC power, and hit OK.
It’ll now auto-enable the light mode at your chosen time.
Change Mode Time Settings
You can modify the schedule time at any time you want.
- Open Task Scheduler, find your task in the list, right-click on it, and select Properties.
- Click on the Triggers tab, select your trigger, and choose Edit.
- Specify a new time and click on OK at the bottom.
Disable Automatic Activation Of Dark & Light Modes On Windows 10
If you want to disable the whole automatic thing, do the following.
- Launch Task Scheduler and find your task.
- Right-click on the task and select Delete.
You’ll need to do it for both of your tasks.
Using An App To Schedule Dark & Light Modes On Windows 10
There’s a free and open-source app called Windows 10 Auto Dark Mode that helps you easily schedule dark and light modes on your computer.
You can use it in place of Task Scheduler to activate light and dark themes at your chosen times.