Re: [Sikuli-driver] [Question #215614]: class file got problem?

2012-12-02 Thread Wing Chi Samuel Wong
Question #215614 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215614

Status: Answered => Solved

Wing Chi Samuel Wong 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 Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #215614]: class file got problem?

2012-11-29 Thread Wing Chi Samuel Wong
New question #215614 on Sikuli:
https://answers.launchpad.net/sikuli/+question/215614

I use import function in my Sikuli script
and on MachineA is fine so i try to run it on MachineB

so some reason it said some image can not be find on the screen
but if i take out the def sub and try it on
it works and find the picture

so

i delete all the class file inside that folder
and close the Sikuli GUI and run it again

it works

now my question is
since this class file generate the problem
is there something i can force Sikuli dont use the old class file
instead delete and create and always use/generate the new class file

thank you very much.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #215515]: Puzzle slolver

2012-11-29 Thread Wing Chi Samuel Wong
Question #215515 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215515

Status: Answered => Solved

Wing Chi Samuel Wong confirmed that the question is solved:
will have a look thx

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #215515]: Puzzle slolver

2012-11-28 Thread Wing Chi Samuel Wong
New question #215515 on Sikuli:
https://answers.launchpad.net/sikuli/+question/215515

Hi
I need someone give me a hint or a start to begin my Puzzle solver

I want to solve a puzzle like this
row 1 (1,5,3,4,4,2)
row 2 (5,4,4,2,1,1)
row 3 (1,1,2,3,3,4)

3 rows with 6 columns
the goal is to connect as much as 3 same number together as possible in 1 move
the way to reorganize the puzzle is by swiping the location

like this

for example , this example will give us 2 combos

if i want to make 4,4,4 together in row 1 i need to move the 4 from row 2 to 
row 1
starting point is the [3]
row 1 (1,5,[3],4,4,2) ->(1,5,4,4,4,2)
row 2 (5,4,4,2,1,1) ->(5,4,[3],2,1,1)
row 3 (1,1,2,3,3,4) ->(1,1,2,3,3,4)

if i now move that 3 to the bottom row, i will have 2 combos, 444 on the row 1 
and 333 on row 3
row 1 (1,5,4,4,4,2) ->(1,5,4,4,4,2)
row 2 (5,4,[3],2,1,1) ->(5,4,2,2,1,1)
row 3 (1,1,2,3,3,4) ->(1,1,[3],3,3,4)

This example will give us 3 combos even i start with the same [3]
row 1 
(1,5,[3],4,4,2)->(1,5,4,[3],4,2)->(1,5,4,4,[3],2)->(1,5,4,4,2,[3])
row 2 (5,4,4,2,1,1)  ->(5,4,4,2,1,1)   ->(5,4,4,2,1,1)   
->(5,4,4,2,1,1)
row 3 (1,1,2,3,3,4)  ->(1,1,2,3,3,4)   ->(1,1,2,3,3,4)   
->(1,1,2,3,3,4)
then this is tricky bit
row 1 (1,5,4,4,2,[3]) -->(1,5,4,4,2,1) --> 
(1,5,4,4,2,1)-->(1,5,4,4,[3],1)-->(1,5,4,[3],4,1)-->(1,5,[3],4,4,1)
row 2 (5,4,4,2,1,1) -->  
(5,4,4,2,1,[3])-->(5,4,4,2,[3],1)-->(5,4,4,2,2,1)-->(5,4,4,2,2,1)-->  
(5,4,4,2,2,1)
row 3 (1,1,2,3,3,4) -->(1,1,2,3,3,4) -->(1,1,2,3,3,4) -->(1,1,2,3,3,4) 
-->(1,1,2,3,3,4) --> (1,1,2,3,3,4)
then this is final tricky bit
row 1 (1,5,[3],4,4,1)-->(1,5,4,4,4,1)  --> (1,5,4,4,4,1)
row 2 (5,4,4,2,2,1)  --> (5,4,[3],2,2,1)-->(5,4,2,2,2,1)
row 3 (1,1,2,3,3,4)  --> (1,1,2,3,3,4)  --> (1,1,[3],3,3,4)

now we have 3 combos, 444,222,333

Sorry i write so much to make sure you know what i like to achieve

so back to the programming part.

i know i should start with array
then possible a series of IF checking?


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #214691]: Speed up while loop?

2012-11-21 Thread Wing Chi Samuel Wong
Question #214691 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214691

Status: Answered => Solved

Wing Chi Samuel Wong confirmed that the question is solved:
Thanks j, that solved my question.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #214691]: Speed up while loop?

2012-11-21 Thread Wing Chi Samuel Wong
Question #214691 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214691

Wing Chi Samuel Wong posted a new comment:
ok i guess that as well, but i cant really fix the region. i use the same 
script on different machine and also they got smaller and larger monitor with 
different resolution
so location of what i am looking for will be in different area.

i look at region before but dont think i can set that.

anyway i will stick to the current script unless i come across a way to
fix where that pattern appear.

thx alot

ps. so the while loop itself is fast enough, just the pattern matching
taking times

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #214691]: Speed up while loop?

2012-11-19 Thread Wing Chi Samuel Wong
New question #214691 on Sikuli:
https://answers.launchpad.net/sikuli/+question/214691

my script
it scrolls down 1 step 1 second
even i put MoveMouseDelay =0.2
I guess its not because of the mousemove
its the script itself need to run faster

wait (3)
Settings.MoveMouseDelay = 0.2
reg = Pattern("ETASbyCountr.png").similar(0.90).targetOffset(0,1)
steps = 1 
while not exists(reg, 0):
 wheel(Location(416,422), WHEEL_DOWN, steps)

is there a way to make this script run faster?
thank you very much.


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #214348]: Similarity setting affect import def?

2012-11-18 Thread Wing Chi Samuel Wong
Question #214348 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/214348

Status: Answered => Solved

Wing Chi Samuel Wong 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 Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #214348]: Similarity setting affect import def?

2012-11-16 Thread Wing Chi Samuel Wong
New question #214348 on Sikuli:
https://answers.launchpad.net/sikuli/+question/214348

If i put Master script this

Settings.MinSimilarity=0.9

then i put

import BeginWork
BeginWork.Start()

will def start() from another file got the Settings.MinSimilarity=0.9 effect as 
well?

thank you very much.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #213868]: Some keys not work against VNC

2012-11-16 Thread Wing Chi Samuel Wong
Question #213868 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/213868

Wing Chi Samuel Wong posted a new comment:
have you try use tigervnc?
i use VNC control my iphone and find the same problem
as soon as i use tigerVNC, it works.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #213751]: Anything similar to goto function?

2012-11-11 Thread Wing Chi Samuel Wong
Question #213751 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/213751

Status: Answered => Solved

Wing Chi Samuel Wong 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 Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #213751]: Anything similar to goto function?

2012-11-09 Thread Wing Chi Samuel Wong
New question #213751 on Sikuli:
https://answers.launchpad.net/sikuli/+question/213751

My english is not very good, but i try to explain what i am talking about.

first i have a list of reports in a web page
like this
1-Report A
2-Report B
3-Report C
4-Report D
5-Report E

but i dont run them all everytime, so i like to give Sikuli a list like
1,3,5
and Sikuli will click 1 = Report A, do something and go back to this menu again
then Sikuli will click 3 = Report C, do something and go back to this menu again
then Sikuli will click 5 = Report E, do something and go back to this menu again

so what function i should be looking at in Sikuli?
or like case?

thx alot
i love this little question space
i find all my answer here so far!!

love u guys!!
good work!!



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp