Re: [Sikuli-driver] [Question #700878]: How to replace targetOffset from a variable already set targetOffset.

2022-03-11 Thread steven
Question #700878 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700878

Status: Answered => Solved

steven confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
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 #700878]: How to replace targetOffset from a variable already set targetOffset.

2022-03-10 Thread RaiMan
Question #700878 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700878

Status: Open => Answered

RaiMan proposed the following answer:
TTT is the returned Pattern.

Hence:

TTT.targetOffset(x, y)

will change the target offset of TTT

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
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 #700878]: How to replace targetOffset from a variable already set targetOffset.

2022-03-09 Thread steven
New question #700878 on SikuliX:
https://answers.launchpad.net/sikuli/+question/700878

How to replace targetOffset from a variable already set targetOffset.

def PIC_TT():
TT=Pattern("TT.png").targetOffset(100,0)
return TT

TTT=PIC_TT()

I want change TTT  as Pattern("TT.png").targetOffset(50,0)
How can I overwrite its targetOffset setting.
I try TTT.targetOffset=(50,0) but fail.
My "def PIC_TT():" is in another .py file.
 
My sikuliX version is 2.0.5
I use  WIN10.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
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