FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
android_touch/python_api/touch_test.py at master · D-R-99/android_touch · GitHub
D-R-99
android_touch
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
android_touch
/
python_api
/
touch_test.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (22 loc) · 869 Bytes
Breadcrumbs
android_touch
/
python_api
/
touch_test.py
Copy path
File metadata and controls
27 lines (22 loc) · 869 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from
touch
import
TouchActionBuilder
x1
=
10
y1
=
10
x2_1
,
y2_1
=
2800
,
500
x2_2
,
y2_2
=
3500
,
500
x3_1
,
y3_1
=
3900
,
1000
points1
=
[(
100
,
10
), (
100
,
1000
)]
points2
=
[(
x2_1
,
y2_1
), (
x2_2
,
y2_2
)]
points3
=
[(
x2_1
,
y2_1
), (
x2_2
,
y2_2
), (
x3_1
,
y3_1
)]
one_second
=
1000
half_econd
=
500
th
=
TouchActionBuilder
()
th
.
tap
(
x1
,
y1
,
one_second
).
execute_and_reset
()
# th.multifinger_tap(points1, 1000).execute_and_reset()
# th.doubletap(10,10).execute_and_reset()
# th.multifinger_doubletap(points2).execute_and_reset()
# th.ntap(x2_2, y2_2, 8, 250).execute_and_reset()
# th.multifinger_ntap(points2, 5, 250).execute_and_reset()
# th.swipe_line(x2_1, y2_2, x2_1, y2_2+200).execute_and_reset()
# th.longpress_and_swipe_line(x2_1, y2_1, x2_2, y2_2).execute_and_reset()
# th.swipe_nline(points3, 50, 5).execute_and_reset()
# th.longpress_swipe_nline(points3).execute_and_reset()
Back
|
FazBrowse Home
|
New Git URL