Mac: Script suddenly slows down (by a lot)

Asked by Eric Lim

I'm using Sikuli to do my usual grind on Final Fantasy Brave Exvius, but for some reason after the wait(FROEVER) it drastically slows down. here is my simple script

while("1486120452685.png"):
    wait(1)
    doubleClick("1486120452685.png")
    wait(3)
    doubleClick("1486120561918.png")
    wait(3)
    doubleClick(594,282)
    wait(5)
    doubleClick("1486120614867.png")
    wait(5)
    doubleClick("1486120648678.png")
    wait("1486120693541.png",FOREVER)
    doubleClick("1486120693541.png")
    wait(3)
    doubleClick(594,282)
    wait(3)
    doubleClick("1486120693541.png")

Revision history for this message
Игорь (iglxpopk) said :
#1

def q():
 while("1486120452685.png"):
  wait(1)
  doubleClick("1486120452685.png")
  wait(3)
  doubleClick("1486120561918.png")
  wait(3)
  doubleClick(594,282)
  wait(5)
  doubleClick("1486120614867.png")
  wait(5)
  doubleClick("1486120648678.png")
  if exists("1486120693541.png",FOREVER):
   doubleClick("1486120693541.png")
   wait(3)
   doubleClick(594,282)
   wait(3)
   doubleClick("1486120693541.png")
  else:
   pass

q()

Revision history for this message
Eric Lim (jinrui198) said :
#2

Thanks Игорь (iglxpopk), but your recommendation doesn't work for me. 1486120693541.png will definitely exist after completing the dungeon and the 'if exist' command makes it go all the way to the top again, which is not what i want.

also what does q() stands for?

Revision history for this message
Игорь (iglxpopk) said :
#3
Revision history for this message
RaiMan (raimund-hocke) said :
#4

What version of Sikuli(X)?

Try 1.1.1: http://sikulix.com

Are you on a Mac?

Revision history for this message
Игорь (iglxpopk) said :
#5

no i work in Win10 and Sikuli https://launchpad.net/sikuli/sikulix/x1.0-rc3

Revision history for this message
Eric Lim (jinrui198) said :
#6

I work on Mac

Revision history for this message
RaiMan (raimund-hocke) said :
#7

You have to upgrade to version 1.1.1

http://sikulix.com

(see: bug 1447096)

version 1.1.1 has a hack, that apparently gets the scriptrun around that problem.

Can you help with this problem?

Provide an answer of your own, or ask Eric Lim for more information if necessary.

To post a message you must log in.