模拟按键,事件注入
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了模拟按键,事件注入相关的知识,希望对你有一定的参考价值。
http://www.cnblogs.com/by-dream/p/5195121.html
press.sh
#!/bin/sh
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 1
sendevent /dev/input/event6 0 0 0
echo "down"
sendevent /dev/input/event6 1 116 0
sendevent /dev/input/event6 0 0 0
echo "up"
以上是关于模拟按键,事件注入的主要内容,如果未能解决你的问题,请参考以下文章