sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08731
[Bug 930717] Re: Code blocks ( using with: ) not working?
*** This bug is a duplicate of bug 850520 ***
https://bugs.launchpad.net/bugs/850520
Sorry, did not remember that with: is not really working.
Workaround:
put the code block (no indentation !) between
setROI(some_region)
#...
# code
#...
setROI(SCREEN)
** Summary changed:
- Code blocks not working?
+ Code blocks ( using with: ) not working?
** Changed in: sikuli
Status: New => Confirmed
** This bug has been marked a duplicate of bug 850520
X-1.0rc3: IDE: "with Region" doesn't work after first run - uses whole screen
** Summary changed:
- Code blocks ( using with: ) not working?
+ Code blocks ( using with: ) not working? --- workaround
** Description changed:
+ --- workaround
+
+ put the code block (no indentation !) between
+
+ setROI(some_region)
+ #...
+ # code
+ #...
+ setROI(SCREEN)
+
+ ----------------------------------------------------
+
I'm not sure why, but some of my code blocks aren't working...
I'm using revision 905.
[code]
with Region(0,990,411,33):
- click("1Wl.png")
- click("1328937506158.png") //this is outside of the region, but is still clicked
+ click("1Wl.png")
+ click("1328937506158.png") //this is outside of the region, but is still clicked
click("1328937272984.png")
type("Hello world")
paste("MeMe")
wait(2)
[/code]
This is a better example
[code]
while True:
- if exists("rt19216803sD.png"):
- find("Atlanta-1.png")
- click("Atlanta-2.png") // these code snippets here are run when the above image doesn't exist
- popup("Openfiler SSH!")
- switchApp("Sikuli-IDE") // This opens up a completely new instance of sikuli, not the same one.
- break
- if exists("SKOD.png"): // I've never seen this run :(
- break;
+ if exists("rt19216803sD.png"):
+ find("Atlanta-1.png")
+ click("Atlanta-2.png") // these code snippets here are run when the above image doesn't exist
+ popup("Openfiler SSH!")
+ switchApp("Sikuli-IDE") // This opens up a completely new instance of sikuli, not the same one.
+ break
+ if exists("SKOD.png"): // I've never seen this run :(
+ break;
[/code]
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/930717
Title:
Code blocks ( using with: ) not working? --- workaround
Status in Sikuli:
Confirmed
Bug description:
--- workaround
put the code block (no indentation !) between
setROI(some_region)
#...
# code
#...
setROI(SCREEN)
----------------------------------------------------
I'm not sure why, but some of my code blocks aren't working...
I'm using revision 905.
[code]
with Region(0,990,411,33):
click("1Wl.png")
click("1328937506158.png") //this is outside of the region, but is still clicked
click("1328937272984.png")
type("Hello world")
paste("MeMe")
wait(2)
[/code]
This is a better example
[code]
while True:
if exists("rt19216803sD.png"):
find("Atlanta-1.png")
click("Atlanta-2.png") // these code snippets here are run when the above image doesn't exist
popup("Openfiler SSH!")
switchApp("Sikuli-IDE") // This opens up a completely new instance of sikuli, not the same one.
break
if exists("SKOD.png"): // I've never seen this run :(
break;
[/code]
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/930717/+subscriptions
References