sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04062
[Question #165533]: Can we have sections of codes and can jump while execution?
New question #165533 on Sikuli:
https://answers.launchpad.net/sikuli/+question/165533
Guys,
I need to know if there is any way to create sections of code and to jump while execution
#generate random section to execute
import random
random.seed()
section_to_execute = random.randint(1, 3)
#go to that section
goto section_to_execute
#now here is the code of all sections
#section1
popup("you are in section 1 code")
#section2
popup("you are in section 2 code")
#section3
popup("you are in section 3 code")
So is it possible to select section which we need to execute from a random variable, and only that section should be executed all other code should be skipped.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.