I want to write a batch script that will first start adb shell via adb shell
and then run some commands like input swipe 77 1161 77 1161 500
and then input tap 157 1066
and so on. But I'm unable to do so. I've tried multiple ways but none seems to work. I've tried writing script like:
adb shell "input swipe 86 1186 86 1186 500;input tap 157 1066"
and writing commands on seperate lines like,
adb shell "input swipe 86 1186 86 1186 500;
input tap 157 1066"
and also tried putting adb shell in one file and putting other commands in seperate file but nothing works. I always end up getting this jarring screen in cmd even if I put an exit in the end of the commands.
I want to know whether i'm doing the right thing the wrong way or something else.. Please explain what's the best way to do it and please explain thoroughly. Any help will be appericiated. Thanks.