[Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread cuocdoi
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

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread RaiMan
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):

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread RaiMan
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

Re: [Sikuli-driver] [Question #234579]: How to increment or combine Sikuli variables?

2013-08-25 Thread RaiMan
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,

Re: [Sikuli-driver] [Question #234536]: Sikuli dont run anymore!!! What can I do?

2013-08-25 Thread RaiMan
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

Re: [Sikuli-driver] [Question #234486]: Region area manipulation. How does that work?

2013-08-25 Thread Eugene S
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

Re: [Sikuli-driver] [Question #234486]: Region area manipulation. How does that work?

2013-08-25 Thread RaiMan
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: -

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread cuocdoi
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

Re: [Sikuli-driver] [Question #234435]: After launching the application how do I swipe right/left on an android emulator?

2013-08-25 Thread Roman Podolyan
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

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread RaiMan
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.

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread cuocdoi
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,

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread cuocdoi
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

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread RaiMan
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

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread cuocdoi
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

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread RaiMan
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. -

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread cuocdoi
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,

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread RaiMan
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

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread cuocdoi
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

Re: [Sikuli-driver] [Question #234584]: How to action for sequence of vertical pictures lined up

2013-08-25 Thread RaiMan
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

[Sikuli-driver] [Bug 1216338] Re: [1.0.1 ok] NameError ( name 'FindFailed' is not defined ) -- workaround

2013-08-25 Thread RaiMan
** 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.

[Sikuli-driver] [Bug 1214789] Re: [1.0.1 ok] Button.LEFT not recognised --- workaround

2013-08-25 Thread RaiMan
** 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 +

Re: [Sikuli-driver] [Question #234536]: Sikuli dont run anymore!!! What can I do?

2013-08-25 Thread Laura Fernández
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

[Sikuli-driver] [Question #234611]: code length error ?

2013-08-25 Thread Phillip Kelly
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

Re: [Sikuli-driver] [Question #234486]: Region area manipulation. How does that work?

2013-08-25 Thread Eugene S
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

Re: [Sikuli-driver] [Question #234611]: code length error ?

2013-08-25 Thread Eugene S
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

Re: [Sikuli-driver] [Question #234486]: Region area manipulation. How does that work?

2013-08-25 Thread Eugene S
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

Re: [Sikuli-driver] [Question #234486]: Region area manipulation. How does that work?

2013-08-25 Thread Eugene S
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

Re: [Sikuli-driver] [Question #234363]: How to call for a script from withing another script

2013-08-25 Thread Eugene S
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.