← Back to team overview

sikuli-driver team mailing list archive

[Question #288729]: script wont work after saving

 

New question #288729 on Sikuli:
https://answers.launchpad.net/sikuli/+question/288729

So i began to make a script that could solve soduko and type in the numbers for me. just for fun.
i have saved the script to work  more on it some other time. just to be sure i tried to load it t see if it still would work. it didnt.

Be aware. The script is already very long.

when I try to run it, sikuli says:
[error] script [ Soduko3x3.IkkeFærdig.www.sudoku-solutions.com ]] stopped with error at line --unknown--
[error] Could not evaluate error source nor reason. Analyze StackTrace!
[error] SyntaxError: Illegal character in file '<string>' for encoding 'utf-8'

 hope someone can help me solve this. The script is as following... 

a = Pattern("a.png").similar(0.98)
b = Pattern("b.png").similar(0.98)
c = Pattern("c.png").similar(0.98)
d = Pattern("d.png").similar(0.98)
e = Pattern("e.png").similar(0.98)
f = Pattern("f.png").similar(0.98)
g = Pattern("g.png").similar(0.98)
h = Pattern("h.png").similar(0.98)
i = Pattern("i.png").similar(0.98)
Reg = Region(598,93,33,33)
if Reg.exists(a,0.2):
    click(Location(81,303))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(b,0.2):
    click(Location(81,303))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(c,0.2):
    click(Location(81,303))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(d,0.2):
    click(Location(81,303))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(e,0.2):
    click(Location(81,303))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(f,0.2):
    click(Location(81,303))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(g,0.2):
    click(Location(81,303))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(h,0.2):
    click(Location(81,303))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if Reg.exists(i,0.2):
    click(Location(81,303))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegA = Region(633,93,34,33)
if RegA.exists(a,0.2):
    click(Location(138,303))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(b,0.2):
    click(Location(138,303))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(c,0.2):
    click(Location(138,303))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(d,0.2):
    click(Location(138,303))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(e,0.2):
    click(Location(138,303))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(f,0.2):
    click(Location(138,303))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(g,0.2):
    click(Location(138,303))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(h,0.2):
    click(Location(138,303))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegA.exists(i,0.2):
    click(Location(138,303))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegB = Region(669,93,35,33)
if RegB.exists(a,0.2):
    click(Location(196,303))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(b,0.2):
    click(Location(196,303))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(c,0.2):
    click(Location(196,303))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(d,0.2):
    click(Location(196,303))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(e,0.2):
    click(Location(196,303))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(f,0.2):
    click(Location(196,303))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(g,0.2):
    click(Location(196,303))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(h,0.2):
    click(Location(196,303))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegB.exists(i,0.2):
    click(Location(196,303))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegC = Region(707,93,34,35)
if RegC.exists(a,0.2):
    click(Location(252,306))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(b,0.2):
    click(Location(252,306))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(c,0.2):
    click(Location(252,306))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(d,0.2):
    click(Location(252,306))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(e,0.2):
    click(Location(252,306))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(f,0.2):
    click(Location(252,306))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(g,0.2):
    click(Location(252,306))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(h,0.2):
    click(Location(252,306))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegC.exists(i,0.2):
    click(Location(252,306))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegD = Region(743,95,35,32)
if RegD.exists(a,0.2):
    click(Location(310,302))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(b,0.2):
    click(Location(310,302))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(c,0.2):
    click(Location(310,302))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(d,0.2):
    click(Location(310,302))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(e,0.2):
    click(Location(310,302))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(f,0.2):
    click(Location(310,302))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(g,0.2):
    click(Location(310,302))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(h,0.2):
    click(Location(310,302))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegD.exists(i,0.2):
    click(Location(310,302))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegE = Region(779,95,33,31)
if RegE.exists(a,0.2):
    click(Location(363,303))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(b,0.2):
    click(Location(363,303))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(c,0.2):
    click(Location(363,303))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(d,0.2):
    click(Location(363,303))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(e,0.2):
    click(Location(363,303))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(f,0.2):
    click(Location(363,303))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(g,0.2):
    click(Location(363,303))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(h,0.2):
    click(Location(363,303))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegE.exists(i,0.2):
    click(Location(363,303))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegF = Region(817,93,34,33)
if RegF.exists(a,0.2):
    click(Location(430,305))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(b,0.2):
    click(Location(430,305))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(c,0.2):
    click(Location(430,305))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(d,0.2):
    click(Location(430,305))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(e,0.2):
    click(Location(430,305))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(f,0.2):
    click(Location(430,305))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(g,0.2):
    click(Location(430,305))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(h,0.2):
    click(Location(430,305))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegF.exists(i,0.2):
    click(Location(430,305))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegG = Region(854,93,33,34)
if RegG.exists(a,0.2):
    click(Location(480,306))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(b,0.2):
    click(Location(480,306))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(c,0.2):
    click(Location(480,306))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(d,0.2):
    click(Location(480,306))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(e,0.2):
    click(Location(480,306))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(f,0.2):
    click(Location(480,306))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(g,0.2):
    click(Location(480,306))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(h,0.2):
    click(Location(480,306))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegG.exists(i,0.2):
    click(Location(480,306))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegH = Region(891,94,30,31)
if RegH.exists(a,0.2):
    click(Location(535,302))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(b,0.2):
    click(Location(535,302))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(c,0.2):
    click(Location(535,302))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(d,0.2):
    click(Location(535,302))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(e,0.2):
    click(Location(535,302))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(f,0.2):
    click(Location(535,302))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(g,0.2):
    click(Location(535,302))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(h,0.2):
    click(Location(535,302))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegH.exists(i,0.2):
    click(Location(535,302))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegI = Region(598,130,32,34)
if RegI.exists(a,0.2):
    click(Location(85,360))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(b,0.2):
    click(Location(85,360))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(c,0.2):
    click(Location(85,360))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(d,0.2):
    click(Location(85,360))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(e,0.2):
    click(Location(85,360))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(f,0.2):
    click(Location(85,360))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(g,0.2):
    click(Location(85,360))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(h,0.2):
    click(Location(85,360))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegI.exists(i,0.2):
    click(Location(85,360))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegJ = Region(633,130,33,33)
if RegJ.exists(a,0.2):
    click(Location(140,363))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(b,0.2):
    click(Location(140,363))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(c,0.2):
    click(Location(140,363))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(d,0.2):
    click(Location(140,363))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(e,0.2):
    click(Location(140,363))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(f,0.2):
    click(Location(140,363))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(g,0.2):
    click(Location(140,363))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(h,0.2):
    click(Location(140,363))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegJ.exists(i,0.2):
    click(Location(140,363))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegK = Region(668,129,34,34)
if RegK.exists(a,0.2):
    click(Location(195,362))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(b,0.2):
    click(Location(195,362))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(c,0.2):
    click(Location(195,362))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(d,0.2):
    click(Location(195,362))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(e,0.2):
    click(Location(195,362))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(f,0.2):
    click(Location(195,362))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(g,0.2):
    click(Location(195,362))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(h,0.2):
    click(Location(195,362))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegK.exists(i,0.2):
    click(Location(195,362))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegL = Region(708,129,33,34)
if RegL.exists(a,0.2):
    click(Location(252,361))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(b,0.2):
    click(Location(252,361))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(c,0.2):
    click(Location(252,361))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(d,0.2):
    click(Location(252,361))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(e,0.2):
    click(Location(252,361))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(f,0.2):
    click(Location(252,361))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(g,0.2):
    click(Location(252,361))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(h,0.2):
    click(Location(252,361))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegL.exists(i,0.2):
    click(Location(252,361))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegM = Region(742,130,34,32)
if RegM.exists(a,0.2):
    click(Location(310,363))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(b,0.2):
    click(Location(310,363))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(c,0.2):
    click(Location(310,363))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(d,0.2):
    click(Location(310,363))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(e,0.2):
    click(Location(310,363))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(f,0.2):
    click(Location(310,363))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(g,0.2):
    click(Location(310,363))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(h,0.2):
    click(Location(310,363))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegM.exists(i,0.2):
    click(Location(310,363))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegN = Region(779,130,34,32)
if RegN.exists(a,0.2):
    click(Location(364,363))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(b,0.2):
    click(Location(364,363))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(c,0.2):
    click(Location(364,363))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(d,0.2):
    click(Location(364,363))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(e,0.2):
    click(Location(364,363))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(f,0.2):
    click(Location(364,363))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(g,0.2):
    click(Location(364,363))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(h,0.2):
    click(Location(364,363))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegN.exists(i,0.2):
    click(Location(364,363))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegO = Region(817,129,33,34)
if RegO.exists(a,0.2):
    click(Location(422,359))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(b,0.2):
    click(Location(422,359))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(c,0.2):
    click(Location(422,359))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(d,0.2):
    click(Location(422,359))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(e,0.2):
    click(Location(422,359))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(f,0.2):
    click(Location(422,359))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(g,0.2):
    click(Location(422,359))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(h,0.2):
    click(Location(422,359))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegO.exists(i,0.2):
    click(Location(422,359))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegP = Region(853,130,35,34)
if RegP.exists(a,0.2):
    click(Location(478,360))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(b,0.2):
    click(Location(478,360))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(c,0.2):
    click(Location(478,360))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(d,0.2):
    click(Location(478,360))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(e,0.2):
    click(Location(478,360))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(f,0.2):
    click(Location(478,360))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(g,0.2):
    click(Location(478,360))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(h,0.2):
    click(Location(478,360))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegP.exists(i,0.2):
    click(Location(478,360))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

RegQ = Region(889,129,34,33)
if RegQ.exists(a,0.2):
    click(Location(534,361))
    type("1")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(b,0.2):
    click(Location(534,361))
    type("2")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(c,0.2):
    click(Location(534,361))
    type("3")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(d,0.2):
    click(Location(534,361))
    type("4")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(e,0.2):
    click(Location(534,361))
    type("5")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(f,0.2):
    click(Location(534,361))
    type("6")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(g,0.2):
    click(Location(534,361))
    type("7")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(h,0.2):
    click(Location(534,361))
    type("8")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)

if RegQ.exists(i,0.2):
    click(Location(534,361))
    type("9")
    click(Location(179,1065))
    click(Location(454,943))
else:
    sleep(0)


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