← Back to team overview

sikuli-driver team mailing list archive

[Question #620966]: Script doesn't behave well when imported

 

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

Hi, I am totally new to programming and sikuli.

I have done 2 scripts which work perfectly when running them independently from the Sikuli GUI or from a batch.

I have tried running both scripts from a batch file but it only runs the first one.

Then I decided to use the importing method in sikuli and made a main script that imports the other 2.

The importing goes well and starts the fist script, but here comes the problem, the script does't behave well, it doesn't find objects well or it doesn't click in the right places.

I found that when I remove the line: "from sikuli import *" and run the script independently in the sikuli GUI it works fine.

So the line "from sikuli import *" at the beginning is creating trouble.

Any recommendations?

Thanks.

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