← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #706028]: Sikuli script stops working without throwing any error or any exception, it just waits where there is no wait function

 

Question #706028 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/706028

    Status: Open => Answered

RaiMan proposed the following answer:
my test on Windows 11 Java 11:

r = Region(75,106,50,16) # 1st part of a longer text line
rx = r.x # remember start x
for i in range(1000 ):
    popup("test" + str(i), 1) # waits 1 second and auto closes
    print 1, r.text() # 1st part
    r.x += 50
    print 2, r.text() # 2nd part 
    r.x += 50    
    print 3, r.text() # 3rd part 
    r.x += 50    
    print 4, r.text() # 4th part
    r.x = rx # reset to start x

The 4000 text() calls worked without any problems.

It must be specific to the server environment.

Take care, that the monitor is always on and not locked.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.