title: Is it possible to create an Automated Touch/hold script using ADB shell?
body: <p>I'm trying to set up an automated touch sequence using ADB for testing purposes, I've been searching for a few weeks now about information on how to create pauses, long touches, etc with no luck.
  I know about using the following for taps and swipes:</p>
  
  <pre><code>input [touchscreen|touchpad] tap &lt;x&gt; &lt;y&gt;
  input [touchscreen|touchpad] swipe &lt;x1&gt; &lt;y1&gt; &lt;x2&gt; &lt;y2&gt;
  </code></pre>
  
  <p>But I'm not sure if they can be modified to create the things I mentioned earlier (pauses, long touches, holds).</p>
  
  <p>What would a general script look like to create a sequence such as:</p>
  
  <p>tap, tap, tap, tap, pause, long touch, pause, long touch, pause, tap, tap, tap, tap, pause, repeat</p>
  
  <p>For example purposes assume all the commands are happening at the same <code>&lt;x&gt; &lt;y&gt;</code> locations.</p>
  
  <p>Any help is much appreciated.</p>