> For the complete documentation index, see [llms.txt](https://doc.qrspace.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.qrspace.dev/fu-dong-tu-ceng-yu-zhuan-zhu-gong-ju/automation.md).

# 定時動作與 AutoHotkey 自動化

{% hint style="info" %}
**目前實際狀況**：「定時動作」在左欄最下面的延伸模組裡。可以設定的時間有每隔、幾分鐘後、指定時間（可選星期幾）、閒置；動作有重新整理、有變化才響、打開、關閉、縮合、響鈴。重新整理最短 10 秒，正在那一頁打字時先不整理；瀏覽器關著時不會執行，下次打開會標出錯過的。

AutoHotkey 式的巨集（模擬點擊、捲動、一鍵循序巡檢）**還沒有**。「快捷鍵」模組是按一組鍵打出常用的文字或打開網址。
{% endhint %}

口袋瀏覽器提供「定時動作」專屬頁籤，結合時鐘觸發器與類似 AutoHotkey 的腳本指令，達成自動化瀏覽管理。

***

## 為什麼需要定時動作

使用者在日常瀏覽中常有固定的重複性需求：

* 定時重新整理股市、監控儀表板或拍賣頁面。
* 定時在特定時間（例如上午 9:00）自動開啟工作系統。
* 在預定時間後自動關閉某些娛樂或社群網頁以維持專注。

口袋瀏覽器直接將時間排程與腳本控制整合為側邊工具，無需安裝額外系統級常駐工具。

***

## 核心自動化功能

### 1. 網頁定時鬧鐘與動作

在「定時動作」面板中，可為任何網址配置排程規則：

* **定時開啟**：設定精確時間點或循環週期，自動在背景或前台開出指定分頁。
* **定時重新整理**：設定間隔秒數或分鐘數，週期性重載當前網頁資料。
* **定時關閉**：設定倒數計時器（例如「45 分鐘後關閉當前分頁」），時間到自動清理頁面並釋放資源。

### 2. AutoHotkey 相容巨集支援

提供類似 AutoHotkey 的快捷指令定義：

* 支援定義鍵盤自訂熱鍵組合。
* 支援在指定網頁自動模擬點擊、滾動或輸入預設文字。
* 可將一系列網頁巡檢操作打包為單一按鈕，一鍵循序執行。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.qrspace.dev/fu-dong-tu-ceng-yu-zhuan-zhu-gong-ju/automation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
