R
R
Redzonetree2022-02-01 17:49:38
Python
Redzonetree, 2022-02-01 17:49:38

How to emulate screen tap in android python?

Hello! I'm trying to collect information about whether it is possible to emulate pressing the screen (or navigation keys) in Android, using Pydroid 3 as a development environment.

PS: I tried to do it the same way as on a PC, through pyautogui.click(), but nothing happened, error code DISPLAY.

Even using

import os
os.environ['DISPLAY'] = ':0'
I couldn't get rid of her

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question