title: How to make a function in Sikuli to use it in other Sikuli scripts?
body: <p>I want to create a function which use Sikuli features (as click, doubleclick, wait, etc.) to create other scripts in Sikuli, as a library using functions from sikuli.</p>
  <p>Example in the &quot;libary&quot; file:</p>
  <pre><code>def openCalc(self):
      doubleClick(&quot;imgs\calculator.png&quot;)
  
  def closeCalc(self):
      click(&quot;imgs\clickclose.png&quot;)
  </code></pre>
  <p>And using it in Sikuli IDE:</p>
  <pre><code>def testSum(self):
      self.openCalc()
      type(&quot;5+5\n&quot;)
      type(&quot;c&quot;,KEY_CTRL)
      try:
          assert Env.getClipboard()!=&quot;10&quot;
      except:
          self.nop()
      self.closeCalc()
      
  </code></pre>
  <p>Can I do that in some way? How?</p>