Ready-to-use Code ExampleswipeGesturePointPoint

Swipe Between Coordinates

Creates a swipe gesture between two coordinates. Define start and end points with GesturePoint(Point, hold, speed) and pass them as a table to swipe(). Used for scrolling lists, navigating pages, etc.

Copyable Example Code

You can paste this into the code editor; still verify target image, region, color, text, and timing values in your own device flow.

-- Koordinatlar arası kaydırma / Basic swipe
-- GesturePoint(Point(x,y), hold_ms, speed_ms)

-- Asagi yukari kaydırma (liste scroll)
swipe({
  GesturePoint(Point(540, 1500), 0, 0),
  GesturePoint(Point(540, 500), 0, 400)
})
wait(500)

-- Saga sola kaydırma (sayfa gecis)
swipe({
  GesturePoint(Point(900, 960), 0, 0),
  GesturePoint(Point(180, 960), 0, 300)
})
wait(500)

-- Yavas kaydırma (hassas kontrol)
swipe({
  GesturePoint(Point(540, 1200), 0, 0),
  GesturePoint(Point(540, 800), 0, 1000)
})
toast("Kaydirma tamamlandı")

Implementation and Adaptation Notes

  • Before running, replace sample values such as image names, text, colors, coordinates, and file paths with your own macro values.
  • For examples that use Region or coordinates, retest the target area on different resolutions and DPI values.
  • Tune mScore, timeout, and scan rate in a test macro first, then move the verified values into the production macro.