How to make a function in Sikuli to use it in other Sikuli scripts?
问题 I want to create a function wich use Sikuli features (as click, doubleclick, wait, etc) to create other scripts in Sikuli, as a libary using functions from sikuli. Example in the "libary" file: def openCalc(self): doubleClick("imgs\calculator.png") def closeCalc(self): click("imgs\clickclose.png") And using it in Sikuli IDE: def testSum(self): self.openCalc() type("5+5\n") type("c",KEY_CTRL) try: assert Env.getClipboard()!="10" except: self.nop() self.closeCalc() Can I do that in some way?