API Reference

Lua API Documentation

Complete reference for VNTouch Auto scripting. 31 modules, 493 functions.

/
31
Modules
493
Functions
5.3
Lua Version
iOS 15+
Compatible

Quick Start

Start automating in minutes

Write your first script using the VNTouch Lua API. Tap the screen, capture images, and run OCR — all in a few lines.

Explore API
lua example.lua
-- Tap the screen and wait
touch.tap(375, 667)
sys.sleep(1.5)

-- Capture and run OCR
local text = screen.ocr_region(0, 0, 750, 200)
sys.log("Found: " .. text)

-- Find and tap an image on screen
local x, y = screen.find_image("btn_confirm.png")
if x then touch.tap(x, y) end