← Back to team overview

sikuli-driver team mailing list archive

[Question #184364]: Run def from another def

 

New question #184364 on Sikuli:
https://answers.launchpad.net/sikuli/+question/184364

Hi

when having a not exist of an png can i make the def run another def?

def Run_app
       switchapp("CMD")
       if not exist("CMD.png",5)
         run def Rerun_app

def Rerun_app
          type(Key.ESC, KeyModifier.CTRL)
          wait(2)
          paste("C:\Windows\system32\cmd.exe\n")
        
       

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.