Exemplo n.º 1
0
def unzip(zip, target):
    import org.sikuli.basics.FileManager as FM
    return FM.unzip(str(zip), str(target))
Exemplo n.º 2
0
#for e in sys.path: print e
#import testloadClass.doload
#testloadClass.doload.test()
#import compileall
#compileall.compile_dir(getBundlePath())
current = getBundlePath()
srcdir = os.path.join(current, "testload")
import org.sikuli.basics.FileManager as FM
FM.buildJar(os.path.join(current, "test.jar"), (None,),
    (os.path.join(current, "testload"),), ("testload",), None)
    
Exemplo n.º 3
0
def unzip(zip, target):
    import org.sikuli.basics.FileManager as FM
    return FM.unzip(str(zip), str(target))
Exemplo n.º 4
0
import random
import org.sikuli.basics.FileManager as FM
html = FM.downloadURLtoString(
    "https://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain"
)
#print "html:", len(html)
#uprint( html)
WORD = random.choice(html.split())
WAIT = random.choice(range(5, 27))

sleep(5)

for x in range(35):
    WORD = random.choice(html.split())
    try:
        type("l", KEY_CTRL)
        type(WORD + Key.ENTER)
        click(Pattern("1618074518523.png").targetOffset(56, -4))
        sleep(WAIT)
        #click(Pattern("1546456063425.png").similar(0.51))
        for y in range(3):
            click(
                Pattern("1618074549972.png").similar(0.38).targetOffset(
                    -108, 4))

    except:
        pass

    sleep(WAIT)

type("l", KeyModifier.WIN)