标签:切换 let event echo 脚本 bin key inpu shel
Shell脚本循环切换电视频道脚本
#!/system/bin/sh time=$1 if [[ $time < 1 ]] then echo "请输入运行次数" else echo "请将焦点选中DTV或ATV频道" input keyevent 3 sleep 1 input keyevent 21 sleep 1 input keyevent 21 sleep 2 input keyevent 22 sleep 2 input keyevent 23 sleep 1 while [[ $time > 0 ]] do echo "运行次数$time" input keyevent 166 input keyevent 166 input keyevent 167 let "time--" done echo "运行结束" fi
标签:切换 let event echo 脚本 bin key inpu shel
原文地址:http://www.cnblogs.com/kavinxue/p/7389262.html