> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/gai-shu/setup-script-guide/5-schedule-when-to-run-script.md).

# 5. 调度（脚本运行定时）

这个功能对那些想要让工具24/7自动运行而不需要手动点击的人非常有用。

🎥 查看更多教程视频：[在这里](https://youtu.be/C8Kf-d9_-sw)。

要使用此功能，请勾选“Use scheduling feature”框（如下面的图片所示）。

> ⚠️ 重要提示：您必须始终保持GPM Automate Runtime软件开启，定时功能才会生效。如果关闭软件，定时将无法运行。

<figure><img src="/files/E8qDfLKGhQz0Pbb1GP0f" alt=""><figcaption></figcaption></figure>

要创建和管理运行时间段，请点击按钮`⚙️ Manage schedules`。系统将允许您根据需求设置两种主要的定时类型：

**🔄 类型1：Repeat after（在一段时间后重复运行）**

* 工作原理：工具将在您设置的每个时间间隔（小时 - 分钟 - 秒）后自动重新运行脚本。
* 实际示例：如图所示，名为`15s`的日程在“Second”中设置为`15`。这意味着每15秒，工具将自动激活并重新运行脚本一次。

<figure><img src="/files/TvesEDKuyHaONlxCZIpN" alt=""><figcaption></figcaption></figure>

**📍 类型2：Time points（在固定时间点运行）**

* 工作原理：工具将在您当天设置的特定时间点自动启动。您可以点击按钮`+ Add`添加多个不同的时间点。
* 实际示例：如图所示，名为`20h00`的日程设置的时间点为`20 : 0 : 0`。这意味着每天在20点00分，工具将自动打开并运行。

<figure><img src="/files/YnzzrES9E5L315odWzTr" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/automate-zh/gai-shu/setup-script-guide/5-schedule-when-to-run-script.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
