← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #265242]: xmlrpclib.fault:text search currently switched off

 

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

bikash posted a new comment:
sorry my message was not clear.I am using Sikuli IDE 1.0.1 in Window
8.1.

I am trying to use an application in the remote desktop.When i use the
sikuli IDE directly i get no error but invoking the sikuli script
through Python using the xmlprc gives me error "xmlrpclib.fault:text
search currently switched off".

First few lines of the script runs well which includes 
1.opening the remote desktop  connection.
2.typing my credentials
3.opening the remote desktop

After that the program fail to proceed any further.I am pasting a part
of my code below-->

#automation of IFBox_Controller App from remote desktop
from SimpleXMLRPCServer import SimpleXMLRPCServer as Server 
import logging
Settings.OcrTextSearch = True
Settings.OcrTextRead = True


    
def IF_Box_Controller(): 
 
    def unsupported_JTAGchain():
        click(Pattern("1429074524600.png").similar(0.80).targetOffset(113,60))
        click("1429072379377.png")
    
    def USB_communication_Failed():
        click(Pattern("1429074242736.png").similar(0.80).targetOffset(76,59))
        
        click(Pattern("1429072336745.png").targetOffset(-19,-19))
        click("1429072379377.png")
        wait(20)
        if exists(Pattern("1429074509520.png").similar(0.80)):
            unsupported_JTAGchain();
            wait(20)   
           
            
        click(Pattern("1429072415289.png").targetOffset(17,-2))
        
        click(Pattern("1429072734520.png").similar(0.80).targetOffset(-67,-10))
        click(Pattern("1429072778168.png").targetOffset(-102,4))
        click(Pattern("1429072820696.png").similar(0.80).targetOffset(-44,3))        
    
    
    #opening the remote desktop app
    remoteDesktop = ("mstsc.exe")
    App.focus(remoteDesktop)
    type('a', KeyModifier.CTRL)
   
   
    click(Pattern("1429064917627.png").targetOffset(79,87))
    
    paste("1429004003531.png", "password")
    click(Pattern("1429004042643.png").targetOffset(90,168))
    
    #Opens the remote desktop
    wait(5)


    #From this part onwards the script fails to run (i am clicking the remote desktop icon image at the top to bring its window to    
       front but it fails)
    click("1429094975833.png")
    
    
    
    
    # Open IF Box Controller
    click("1429004154915.png")
    paste("1429004292186.png", "C:\\Users\\axel\\Desktop\\new IF Box controller\\IFBoxController_140206B.exe")
    type("\n")
    wait(3)
    
    click("1429004154915.png")
    paste("1429004292186.png", "C:\\Users\\axel\\Desktop\\tera_auto_log.bat")
    type("\n")
    wait(2)



#logging.basicConfig(level = logging.DEBUG)
srv = Server(("127.0.0.1",8000), logRequests = True)
if not srv:
    exit(1)
srv.register_function(IF_Box_Controller)
srv.serve_forever()

----------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------

ThankYou
Bikash

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