> 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/huong-dan-cac-action/mouse/mouse-move.md).

# Mouse move

### Hành động di chuyển con trỏ chuột (Mouse move)

Mouse move là hành động điều khiển con trỏ chuột di chuyển mượt mà từ vị trí hiện tại đến một điểm chỉ định trên màn hình. Hành động này giúp mô phỏng chính xác hành vi rê chuột của người dùng thật, giúp kịch bản vượt qua các hệ thống quét bot bảo mật (Anti-bot).

🎥 Xem thêm video hướng dẫn: [Tại đây](https://youtu.be/kQZWs1I76Zo).

#### Các kiểu di chuyển chuột hỗ trợ:

Hành động hỗ trợ di chuyển chuột linh hoạt theo 2 cơ chế chính:

* Di chuyển theo XPath: Bạn điền đường dẫn mã định danh (XPath) của phần tử trên trang web. Hệ thống sẽ tự động xác định vị trí của thẻ HTML đó trên giao diện và đưa con trỏ chuột đến tâm của phần tử.
* Di chuyển theo tọa độ: Bạn nhập trực tiếp điểm ảnh theo trục x,y hoặc truyền một biến gộp tọa độ (Ví dụ biến `$pos` có dạng `900,800` thu được từ hành động Image search) để điều hướng con trỏ chuột nhảy đến vị trí chính xác trên màn hình.

#### 💡 Mẹo nâng cao: Kéo và thả phần tử (Drag and Drop)

Bạn có thể kết hợp chuỗi các hành động liên tiếp để thực hiện thao tác nhấn giữ, kéo và thả một phần tử bất kỳ trên giao diện (Ví dụ: kéo thanh trượt mở khóa captcha, kéo thả các khối bento grid, hoặc di chuyển các quân cờ) theo công thức sau:

1. Mouse press and hold: Nhấn và giữ chuột trái tại vị trí phần tử bắt đầu (có thể chọn theo XPath hoặc tọa độ).
2. Mouse move: Di chuyển con trỏ chuột (kèm theo khối dữ liệu đang giữ) đến vị trí đích mới.
3. Mouse release: Thả chuột trái ra để hoàn tất việc thả phần tử vào vị trí mới.


---

# 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://docs.gpmautomate.com/huong-dan-cac-action/mouse/mouse-move.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.
