Skip to content

Instantly share code, notes, and snippets.

@KangHidro
Last active July 10, 2026 09:23
Show Gist options
  • Select an option

  • Save KangHidro/9a5ac32c5a6708dfc4b932c56dafa76a to your computer and use it in GitHub Desktop.

Select an option

Save KangHidro/9a5ac32c5a6708dfc4b932c56dafa76a to your computer and use it in GitHub Desktop.
Native way to auto click on iPhone/iPad

iOS Auto Click Setup Guide Using Voice Control and Siri

This method allows you to create automated action sequences (macros) directly via voice commands by utilizing the built-in gesture recording feature of the iOS operating system.

Phase 1 - System Configuration

Step 1 - Configure Siri and Voice Control

  • Turn on the Siri virtual assistant to support quickly turning the control feature on or off.
  • Turn off the confirmation mode when disabling Voice Control by going to SettingsAccessibilityVoice ControlCommandsAccessibilityTurn Off Voice Control, and then switching off the Ask for Confirmation option. This ensures that the automated click sequence stops immediately upon command without being interrupted by a system confirmation dialog box.
  • Enable the notification sound when the device successfully recognizes a command by going to SettingsAccessibilityVoice Control, and switching on the Play Sound option.

Step 2 - Prepare an Auxiliary Pronunciation Tool

  • If your English pronunciation is not accurate, you should prepare another device with a translation tool opened, such as Google Translate, to pronounce the commands on your behalf when instructing the iPhone.

Phase 2 - Recording the Automated Action Sequence

Step 3 - Activate Gesture Recording Mode

  • Command Siri with the phrase Hey Siri, Turn on Voice control to quickly activate the Voice Control feature.
  • Open the application or game that needs the auto click setup on the screen to prepare for the operation.
  • Clearly speak the command Start recording gestures so the device enters the gesture memory mode. At this point, the Voice Control icon in the upper left corner will change from blue to red. If the Play Sound mode is enabled, the device will emit a beep sound.

Step 4 - Perform Sample Actions

  • Proceed to tap the locations on the screen in the exact desired sequence.
  • Perform the actions slowly. If the application has a delay or requires time to load data, you should wait a bit longer at that step to ensure the automated click sequence still works accurately even when the network lags or the application responds slowly.

Step 5 - Save and Name the Gesture Command

  • After completing the entire sample click sequence, speak the command Stop recording gestures to stop the recording process.
  • A dialog box will automatically appear asking you to name the recorded gesture. Enter a very short and easy-to-pronounce English name, such as Show 1.1.

Phase 3 - Operation and Loop Control

Step 6 - Activate the Automated Sequence

  • Open the interface of the application where you need to run the auto click.
  • Speak the exact command name set in the previous step, for example Show 1.1. The system will automatically replay the entire recorded gesture sequence once.

Step 7 - Set the Number of Repetitions

  • To make the automated action sequence repeat continuously, speak the command Repeat xx immediately after the main command is activated. In this phrase, xx represents the number of times you want to repeat the click sequence, with a value range from 1 to 99.

Step 8 - How to Stop the Action Sequence While Running

  • The system will automatically stop after completing the set number of repetitions.
  • In case you need an emergency stop before the loop finishes, speak the command Turn Off Voice Control. The system will register the command and stop immediately after finishing the current click turn. The gesture sequence cannot be interrupted instantly in the middle of a click turn but must wait for that turn to fully end before stopping completely.
  • If you are stuck, you can speak the command Turn Off Voice Control and lock the screen immediately. It will click on the lock screen once and then stop automatically.

Important Notes When Using

  • Rule for resetting the loop. When you want to run a new number of repetitions, you must speak the gesture activation command again before speaking the loop command. For example, the correct process is speaking the commands Show 1.1 - Repeat 10 - Show 1.1 - Repeat 3. If you speak consecutive loop commands like Repeat 10 - Repeat 3 without an activation command in between, the system will not execute them.

  • How to add a pause between loops. When using the repeat command, iOS executes the cycles back-to-back without any built-in delay. The moment one loop finishes, the next one starts instantly. This can easily cause sync errors if your app or game needs a brief moment to process things. To fix this, you can use a clever little workaround during the gesture recording phase:

    • Once you finish the final tap of your sample sequence, do not stop recording right away. Instead, wait for about 1 to 2 seconds.
    • Tap a blank area or a 'neutral' spot on the screen where a tap will not trigger any actions or disrupt the app.
    • Only then should you speak the command Stop recording gestures to finish up. This trick forces the system to bake a built-in pause into the end of your macro, ensuring a safe buffer between loops and preventing errors caused by rapid-fire clicking.
  • Network speed and app responsiveness. Always prioritize performing the sample click steps very slowly to create a safe buffer for the device to process data, avoiding the auto click getting out of sync when the application loads slowly.

Hướng dẫn thiết lập Auto Click trên iOS bằng Voice Control và Siri

Phương pháp này giúp tạo lập các chuỗi thao tác tự động (macro) trực tiếp bằng giọng nói thông qua tính năng ghi lại cử chỉ của hệ điều hành iOS.

Giai đoạn 1 Thiết lập cấu hình hệ thống

Bước 1 Cấu hình Siri và Khẩu lệnh

  • Bật Siri (nếu chưa) để hỗ trợ bật tắt nhanh tính năng điều khiển.
  • Tắt chế độ xác nhận khi tắt Khẩu lệnh bằng cách truy cập vào Cài đặtTrợ năngKhẩu lệnhLệnhTrợ năngTurn Off Voice Control và tiến hành gạt tắt mục Yêu cầu xác nhận. Việc này giúp quá trình dừng chuỗi bấm tự động diễn ra lập tức khi ra lệnh mà không bị gián đoạn bởi hộp thoại hỏi lại của hệ thống.
  • Bật chế độ phát âm thanh thông báo khi máy nhận diện lệnh thành công bằng cách truy cập vào Cài đặtTrợ năngKhẩu lệnh, tiến hành gạt bật mục Phát âm thanh.

Bước 2 Chuẩn bị công cụ phát âm bổ trợ

  • Nếu phát âm tiếng Anh chưa chuẩn, bạn nên chuẩn bị thêm một thiết bị khác mở sẵn công cụ dịch thuật để phát âm thay khi ra lệnh cho iPhone, ví dụ Google Translate.

Giai đoạn 2 Ghi lại chuỗi thao tác tự động

Bước 3 Kích hoạt chế độ ghi cử chỉ

  • Ra lệnh cho Siri bằng câu lệnh Hey Siri, Turn on Voice control để kích hoạt nhanh tính năng Khẩu lệnh.
  • Mở ứng dụng hoặc trò chơi cần thiết lập bấm tự động lên màn hình để chuẩn bị thao tác.
  • Đọc rõ câu lệnh Start recording gestures để máy bắt đầu bước vào chế độ ghi nhớ hành vi cử chỉ. Lúc này biểu tượng Voice Control góc trên trái đang màu xanh biển sẽ chuyển sang màu đỏ. Nếu đã bật chế độ Phát âm thanh thì máy sẽ kêu bíp 1 tiếng.

Bước 4 Thực hiện các thao tác mẫu

  • Tiến hành chạm vào các vị trí trên màn hình theo đúng trình tự mong muốn.
  • Thực hiện các thao tác một cách chậm rãi. Nếu ứng dụng có độ trễ hoặc cần thời gian tải dữ liệu, bạn nên chờ đợi lâu hơn một chút ở bước đó để đảm bảo chuỗi bấm tự động vẫn hoạt động chính xác ngay cả khi mạng bị lag hoặc ứng dụng phản hồi chậm.

Bước 5 Lưu và đặt tên cho lệnh cử chỉ

  • Sau khi hoàn thành toàn bộ chuỗi bấm mẫu, đọc câu lệnh Stop recording gestures để dừng quá trình ghi.
  • Một hộp thoại sẽ tự động xuất hiện yêu cầu đặt đặt tên cho cử chỉ vừa ghi. Bạn hãy nhập một tên gọi bằng tiếng Anh thật ngắn gọn và dễ phát âm, ví dụ như Show 1.1 (/sou-quanh-poi-quanh/ 🤡).

Giai đoạn 3 Vận hành và kiểm soát vòng lặp

Bước 6 Kích hoạt chuỗi tự động

  • Mở giao diện ứng dụng cần chạy bấm tự động.
  • Đọc đúng tên lệnh đã đặt ở bước trước, ví dụ như Show 1.1, hệ thống sẽ tự động thực hiện lại toàn bộ chuỗi cử chỉ đã ghi lại một lần.

Bước 7 Thiết lập số lần lặp lại

  • Để chuỗi thao tác tự động lặp lại liên tục, bạn hãy đọc câu lệnh Repeat xx ngay sau khi lệnh chính được kích hoạt. Trong đó xx là số lần bạn muốn lặp lại chuỗi bấm, giới hạn giá trị từ 1 đến 99.

Bước 8 Cách dừng chuỗi thao tác khi đang chạy

  • Hệ thống sẽ tự động dừng sau khi hoàn thành đủ số lần lặp đã thiết lập.
  • Trong trường hợp muốn dừng khẩn cấp khi vòng lặp chưa chạy hết, bạn hãy đọc câu lệnh Turn Off Voice Control. Hệ thống sẽ ghi nhận lệnh và dừng lại ngay sau khi chạy xong lượt bấm hiện tại. Chuỗi cử chỉ không thể ngắt quãng ngay lập tức khi đang ở giữa một lượt bấm mà phải đợi hết lượt đó mới chính thức dừng hẳn.
  • Nếu như bí quá có thể đọc câu lệnh Turn Off Voice Control và khoá màn hình ngay để nó click trên màn hình khoá 1 lần xong sẽ tự dừng.

Các lưu ý quan trọng khi sử dụng

  • Quy tắc thiết lập lại vòng lặp. Khi muốn chạy một số lần lặp mới, bạn bắt buộc phải đọc lại lệnh kích hoạt cử chỉ trước rồi mới đọc lệnh lặp. Ví dụ quy trình đúng là đọc lệnh Show 1.1 - Repeat 10 - Show 1.1 - Repeat 3. Nếu bạn đọc liên tiếp các lệnh lặp như Repeat 10 - Repeat 3 mà không có lệnh kích hoạt cử chỉ ở giữa thì hệ thống sẽ không thực thi.

  • Mẹo tạo khoảng nghỉ giữa các vòng lặp (Delay between loops). Khi sử dụng lệnh lặp lại (Repeat), hệ thống sẽ chạy các vòng lặp liên tiếp mà không có thời gian chờ. Ngay khi vòng lặp đầu tiên kết thúc, vòng lặp tiếp theo sẽ kích hoạt lập tức. Điều này dễ dẫn đến lỗi nếu ứng dụng hoặc trò chơi chưa kịp phản hồi. Để khắc phục, bạn có thể áp dụng một mẹo nhỏ sau đây khi ghi hình cử chỉ mẫu

    • Sau khi thực hiện xong cú chạm cuối cùng của chuỗi thao tác, bạn đừng đọc lệnh dừng ngay mà hãy kiên nhẫn đợi khoảng 1 đến 2 giây.
    • Tiến hành chạm nhẹ vào một vùng trống hoặc một vị trí bất kỳ trên màn hình sao cho cú chạm này hoàn toàn 'vô hại' (không kích hoạt tính năng hay nút bấm nào của ứng dụng).
    • Cuối cùng mới đọc câu lệnh Stop recording gestures để hoàn tất. Hành động này giúp tạo ra một khoảng nghỉ an toàn được ghi đè vào cuối chuỗi macro, giúp các vòng lặp sau không bị lỗi nhịp do tốc độ bấm quá nhanh.
  • Tốc độ mạng và độ phản hồi của ứng dụng. Luôn ưu tiên thực hiện các bước bấm mẫu thật chậm rãi để tạo khoảng trống an toàn cho thiết bị xử lý dữ liệu, tránh việc auto click bị lệch nhịp khi ứng dụng tải chậm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment