New question #234584 on Sikuli:
https://answers.launchpad.net/sikuli/+question/234584
Hi all,
I'm using Sikuli IDE and encounter a problem for doing something in vertical
pictures.
Here are my steps and desired results:
- Having 100 different pictures (pic1, pic2,pic100) lined up
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
Status: Open = Answered
RaiMan proposed the following answer:
This is better Python code and should work (supposing the vertical
distance between the image centers is 10 pixel)
def doing_something(t):
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
RaiMan proposed the following answer:
Uuups,not yet, but now:
def doing_something(t):
rightClick(t)
t = find (pic1.png).getCenter() # this is the starting mouse point
for k in range(100): # loop 100
Question #234579 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234579
Status: Open = Answered
RaiMan proposed the following answer:
so this would be more Python like and should do what you want:
# Define account and pass lists (arrays)
accts = [Andrew, Bill, Chris,
Question #234536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234536
Status: Needs information = Answered
RaiMan proposed the following answer:
look faq 2005.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer
Question #234486 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234486
Status: Answered = Open
Eugene S is still having a problem:
Thanks for the answers.
I didn't know that the parameters must set in a specific order.. Is it really
so?
If it is, then why each parameter
Question #234486 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234486
Status: Open = Answered
RaiMan proposed the following answer:
Region(reg.x, reg.y, reg.h, reg.w)
creates a new region and the constructor does not use named parameters but
positional parameters:
-
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
cuocdoi posted a new comment:
Hi Raiman,
Do we have a script to calculate the distance (pixel) between objects ?
Thanks,
cuocdoi
--
You received this question notification because you are a member of
Question #234435 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234435
Status: Open = Answered
Roman Podolyan proposed the following answer:
Using low-level mouse routines, you can write yourself swipe the way you
needed.
Here is example of my quick and dirty right swap
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
RaiMan proposed the following answer:
see faq 1686
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
cuocdoi posted a new comment:
Hi Raiman,
Thank for supporting me, and before doing your instructions as above.
I'm confusing whether we can remove getCenter() in your code. i meant:
from what I observed,
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
Status: Answered = Open
cuocdoi is still having a problem:
And one more questions:
in code line: t = t.below(10)
the starting point is pic1.png -- x = 0 , y = 0 (k = 0)
I'm confusing the value
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
Status: Open = Answered
RaiMan proposed the following answer:
--- I'm confusing whether we can remove getCenter() in your code
No, you can't.
It is principally right, that a mouse click on a REGION
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
Status: Answered = Open
cuocdoi is still having a problem:
Hi Raiman,
1. Because the value in below() is always 10 = constant value - not
variable value, it make me confuse : how does it control the
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
Status: Open = Answered
RaiMan proposed the following answer:
Lets make a simple example:
- suppose the image pic_1 was found at position (30,30) on the screen being 9
pixels wide and 9 pixels high.
-
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
cuocdoi gave more information on the question:
Just add my think in question1 (comment#8)
In your script:
t= find (pic1.png)
# loop:
for k in range (100)
t.below(10)
As I understand,
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
RaiMan proposed the following answer:
ok, we crossed each other ;-)
t is not a constant value: it gets a new value (as you can see above)
with every loop turn.
--- To give you more stuff, to think about
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
cuocdoi posted a new comment:
Thank Raiman for taking time to explain me.
[quote]
t is not a constant value: it gets a new value (as you can see above)
with every loop turn.
[/quote]
Because I'm starter
Question #234584 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234584
Status: Answered = Solved
RaiMan changed the question status:
always welcome to come back with whatever questions.
all the best for further exploring Sikuli and Python scripting language.
think we can
** Summary changed:
- [1.0.1] NameError ( name 'FindFailed' is not defined ) -- workaround
+ [1.0.1 ok] NameError ( name 'FindFailed' is not defined ) -- workaround
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
** Summary changed:
- [1.0.1] Button.LEFT not recognised --- workaround
+ [1.0.1 ok] Button.LEFT not recognised --- workaround
** Description changed:
+ - fixed with version 1.0.1 per August 25 at 9 pm gmt+1
+ repeat setup after this time to get the fixed version
+
Question #234536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234536
Status: Answered = Open
Laura Fernández is still having a problem:
Still the same problem
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer
New question #234611 on Sikuli:
https://answers.launchpad.net/sikuli/+question/234611
I wrote a 500 line sikuli script to play baccarat on an online casino.
The script was working fine so I decided to add some conditional statements to
handle specific events in the game.
I added an additional
Question #234486 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234486
Status: Answered = Open
Eugene S is still having a problem:
Hi RaiMan,
Thanks a lot for your answers!
However after trying the proposed solution I have experienced the same issue.
I have the following
Question #234611 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234611
Status: Open = Answered
Eugene S proposed the following answer:
It seems that the problem is not in your code but in number of lines. It might
reach the maximum allowed number of lines in Java. Looks
Question #234486 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234486
Status: Open = Solved
Eugene S confirmed that the question is solved:
Ok, that's my mistake!
I have still used the h and w parameters in the wrong order. After
switching the places it works as
Question #234486 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234486
Eugene S confirmed that the question is solved:
Thanks RaiMan, that solved my question.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for
Question #234363 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/234363
Status: Answered = Open
Eugene S is still having a problem:
Hi RaiMan,
Thanks you for the answers!
The arguments passed to the wrapper script were definitely available in the
called script as well.
28 matches
Mail list logo