even faster now

This commit is contained in:
Shihaam Abdul Rahman 2024-09-17 13:32:13 +05:00
parent 80223f6bf5
commit 80e39b1181
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

13
remote
View File

@ -12,7 +12,12 @@ connect_device() {
launch_app() {
$ADB monkey -p com.tiqiaa.remote -c android.intent.category.LAUNCHER 1 > /dev/null 2>&1
sleep 1.5
sleep 1.3
open_menu # open menu
sleep 1
open_menu # close menu.... the button is same place
### Inital Menu animation is slow, so opening and closing menu after opening app fixes it
## and then next time menu is fast, so its faster to switch device by doing this
}
tap() {
@ -27,12 +32,12 @@ select_device() {
case "$1" in
fan)
open_menu
sleep 1.5
sleep 0.4
tap 60 200
;; # Fan from the list
ac)
open_menu
sleep 1.5
sleep 0.4
tap 60 300
;; # AC from the list
esac
@ -55,7 +60,7 @@ show_main_menu() {
;;
2)
select_device ac # Select AC (adjust coordinates as needed)
sleep 0.5
sleep 0.5
ac_menu "AC"
;;
3)