sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00528
[Question #141369]: Import storp working after identation change
New question #141369 on Sikuli:
https://answers.launchpad.net/sikuli/+question/141369
This makes me go crazy, seriosly.
This code stops working proprerly after removing some lines.
The problem is that the function
lucha.luchar() doesn't starts.
Every script works well standalone, but it looks like imposible to make it to work together.
As I said, it works with only one import, but after the second import, it stop working, and i can't understand why.
Here is the code
myScriptPath = "E:\My Dropbox\Sikuli"
# all systems
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import lucha
#import dofus_login
mapa=
ejecuciones=0
level_up=
lucha.luchar()
while True:
# if exists(dofus_login.passw,2):
# dofus_login.login()
click( )
sleep(0.2)
segar=exists( )
if segar:
click( )
if (ejecuciones % 15)==0:
sleep(5)
lucha.mata( )
else:
sleep(8)
if exists(level_up):
click(level_up)
ejecuciones+=1
if mapa.exists( ):
lucha.luchar()
mapa.getLastMatch().highlight()
if exists(lucha.cerrar):
click(getLastMatch())
All the pictures are perfectly founded, but the scripts does't starts. WHY?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.