sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22733
[Question #240743]: (Brazilian Portuguese) from sikuli import*
A question was asked in a language (Brazilian Portuguese) spoken by
none of the registered Sikuli answer contacts.
https://answers.launchpad.net/sikuli/+question/240743
I have a error in my script.
The error is: "Non-ASCII character in file 'C:\Users\NATANAEL\Documents\Sikuli\config\importar.sikuli\importar.py', but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
- HOW TO FIX? Try adding "from sikuli import *" in the module."
When I try to import the module "importar" this error occurs, but I put "from sikuli import*" in my script and the error continue occurring.
from sikuli import*
def importar():
if exists(Pattern("Dispnsilivos.png").similar(0.94)):
doubleClick("PmictuiPad.png")
click(Pattern("1386348145714.png").similar(0.94))
wait("MgilOpenJLoo.png",5)
doubleClick(Pattern("TesteSikulis.png").similar(0.95))
click(Pattern("1386348250470.png").similar(0.94))
wait(5)
print("Saída pelo if")
else:
doubleClick(Pattern("IIRJLILAIRJQ.png").similar(0.94))
doubleClick(Pattern("ProietoiPadx.png").similar(0.95))
click(Pattern("1386348527715.png").similar(0.94))
wait("MgilOpenJLoo.png",5)
doubleClick("IeTesteSikul.png")
click("1386348595838.png")
This is my code. Thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.