We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
termux-accessibility
1 parent 0e3f922 commit da7dd69Copy full SHA for da7dd69
1 file changed
scripts/termux-accessibility.in
@@ -0,0 +1,24 @@
1
+#!@TERMUX_PREFIX@/bin/bash
2
+set -e -u
3
+
4
+SCRIPTNAME=termux-accessibility
5
+show_usage() {
6
+ echo "Usage: $SCRIPTNAME options"
7
+ echo 'Options:'
8
+ echo 'dump: returns UI XML as `adb` `uiautomator dump`'
9
+ echo 'click x y: clicks at the given location'
10
+ exit 0
11
+}
12
13
+USAGE_REGEX='^dump|click [0-9]+ [0-9]+$'
14
+if ! [[ $@ =~ $USAGE_REGEX ]]; then
15
+ show_usage
16
+fi
17
18
+if [ "$1" == dump ]; then
19
+ ARGS="--ez dump true"
20
+else
21
+ ARGS="--ez click true --ei x $2 --ei y $3"
22
23
24
+@TERMUX_PREFIX@/libexec/termux-api Accessibility $ARGS
0 commit comments