← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #261971]: example of importing a .sikuli file to another detail in windows

 

Question #261971 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261971

    Status: Answered => Solved

Eduardo confirmed that the question is solved:
thanks  RaiMan

could make imports into my main file, the following code:

#File LogarEstoque

from sikuli import *

def Login():
    
    doubleClick(find("1423663740510.png"))
    
    wait("1423663829926.png" ,FOREVER)
        
    paste(exists("1423663936860.png"), 'PIRAMIDE')
        
    paste(exists("1423663909366.png"), 'PIRAMIDE60400')
    
    click(exists("1423664141247.png"))


#File main

myScriptPath  =  "C:\\Scripts"

addImportPath ( myScriptPath )

import LogarEstoque


try:
    
    LogarEstoque.Login()
    
except:

    print('Erro no Login')

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