Re: [Sikuli-driver] [Question #708914]: select

2024-01-07 Thread peter hasselby
Question #708914 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/708914

Status: Answered => Open

peter hasselby is still having a problem:
login = ("outlook", "facebook", "workplace", "page3", "page4")
def select(msg="", title="Sikuli Selection", options=(), default=None):
a = select(msg = "where do you like to log in?", options = login)

tried the above.
did not come up with an error message. but did not do anything. 


tried with:
login = ("outlook", "facebook", "workplace", "page3", "page4")
a = select(msg = "where do you like to log in?", options = login)

error:
[error] script [ sikulitemp-6386726409248896632 ] stopped with error in line 2
[error] TypeError ( popSelect(): 3rd arg can't be coerced to String )
[error] --- Traceback --- error source first
line: module ( function ) statement 
432: Sikuli (  select ) return Sikulix.popSelect(msg, title, options, 
default)
2: main (   ) a = select(msg = "where do you like to log in?", 
options = login)
[error] --- Traceback --- end --

-- 
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 #708914]: select

2024-01-05 Thread peter hasselby
New question #708914 on SikuliX:
https://answers.launchpad.net/sikuli/+question/708914

I can not get the select() function to work.

I have tried following

login = ("outlook", "facebook", "workplace", "page3", "page4")
a = select("where do you like to log in?", options = login)

it show me this error message:

 [ sikulitemp-7621303983381196603 ] stopped with error in line 2
[error] TypeError ( popSelect(): 3rd arg can't be coerced to String )
[error] --- Traceback --- error source first
line: module ( function ) statement 
432: Sikuli (  select ) return Sikulix.popSelect(msg, title, options, 
default)
2: main (   ) selected = select("Please select an item from the 
list", options = items)
[error] --- Traceback --- end --


im using the 2.0.5



-- 
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 #708910]: Drop down menu

2024-01-05 Thread peter hasselby
New question #708910 on SikuliX:
https://answers.launchpad.net/sikuli/+question/708910

Probably an easy question.

How do I create a drop-down menu?

list must contain

[
fentanyl
midazolam
ondansetron
etc.
etc.
]

-- 
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 #693636]: Default wait time trouble

2020-10-25 Thread peter hasselby
Question #693636 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693636

Status: Answered => Solved

peter hasselby 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 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 #693636]: Default wait time trouble

2020-10-25 Thread peter hasselby
New question #693636 on Sikuli:
https://answers.launchpad.net/sikuli/+question/693636

b = Region(1423,484,195,246)

a = "a.png"

while True:

Settings.MoveMouseDelay =0.4
click(Location(1394,264))
b.click(a)#if "a" not appears witin the sikuli defalt waittime it comes 
with an error.

click(Location(1396,299))
b.click(a)

click(Location(1400,337))
b.click(a)


#I want to wait longer for "a", i have tried following:

setAutoWaitTime(60)  #Not working
b = Region(1423,484,195,246)

a = "a.png"

while True:

Settings.MoveMouseDelay =0.4
click(Location(1394,264))
b.click(a,60) #Not working

click(Location(1396,299))
b.click(a,10)

click(Location(1400,337))
b.click(a,10)

#Can not seem to solve this. script stops after 3 seconds no matter what i try. 

#Is this the only option

b = Region(1423,484,195,246)

a = "a.png"

while True:

Settings.MoveMouseDelay =0.4
click(Location(1394,264))
wait(a,60)
b.click(a)  

click(Location(1396,299))
wait(a,60)
b.click(a,10)

click(Location(1400,337))
wait(a,60)
b.click(a,10)

#using version 1.1.4


-- 
You received this question notification because your team Sikuli Drivers
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 #683557]: input æ ø å

2019-08-31 Thread peter hasselby
Question #683557 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683557

peter hasselby gave more information on the question:
i think i got it

moede = u"Hvornår skal du møde?"
vagtform = input(moede)

-- 
You received this question notification because your team Sikuli Drivers
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 #683557]: input æ ø å

2019-08-31 Thread peter hasselby
New question #683557 on Sikuli:
https://answers.launchpad.net/sikuli/+question/683557

input("Hvornår skal du møde?") #dosent work. I get strange caracters

Cant find the solution. 
I can only find something about the "paste" function. 

-- 
You received this question notification because your team Sikuli Drivers
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 #287456]: fast clicking (> 20-30 clicks/sec) not possible in 1.1.0 final --- fixed in 1.1.1 (2016-03-15+)

2016-03-24 Thread peter hasselby
Question #287456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/287456

Status: Answered => Solved

peter hasselby 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 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 #288724]: Help with Region

2016-03-19 Thread peter hasselby
Question #288724 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288724

Status: Answered => Solved

peter hasselby confirmed that the question is solved:
Thanks masuo, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
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 #288724]: Help with Region

2016-03-19 Thread peter hasselby
New question #288724 on Sikuli:
https://answers.launchpad.net/sikuli/+question/288724

Hi.
I would like sikuli to only look at the region im setting.

i have tried to use the region button in sikuli. It seems like i am pointing 
out the region. But sikuli still searches all over the screen.

i would like to do something like this.

Region(DefinedHere)
if exists(picture):
click(WhatIDefineHere)
else:
DoNothing(ContinueScript)

Region(NewRegionDefinedHere)
if exists(picture):
click(WhatIDefineHere)
else:
DoNothing(ContinueScript)

I might think there is a relative simple solution to this. I just dont seem to 
get it.
Hope you can help.
thanks.

p.s ... I have tried to read about the Region. But i dont really understand it. 
Its to complicated. im new to this. 



-- 
You received this question notification because your team Sikuli Drivers
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 #288729]: script wont work after saving

2016-03-19 Thread peter hasselby
Question #288729 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288729

Status: Answered => Solved

peter hasselby confirmed that the question is solved:
Thanks Karl, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
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 #288729]: script wont work after saving

2016-03-19 Thread peter hasselby
New question #288729 on Sikuli:
https://answers.launchpad.net/sikuli/+question/288729

So i began to make a script that could solve soduko and type in the numbers for 
me. just for fun.
i have saved the script to work  more on it some other time. just to be sure i 
tried to load it t see if it still would work. it didnt.

Be aware. The script is already very long.

when I try to run it, sikuli says:
[error] script [ Soduko3x3.IkkeFærdig.www.sudoku-solutions.com ]] stopped with 
error at line --unknown--
[error] Could not evaluate error source nor reason. Analyze StackTrace!
[error] SyntaxError: Illegal character in file '' for encoding 'utf-8'

 hope someone can help me solve this. The script is as following... 

a = Pattern("a.png").similar(0.98)
b = Pattern("b.png").similar(0.98)
c = Pattern("c.png").similar(0.98)
d = Pattern("d.png").similar(0.98)
e = Pattern("e.png").similar(0.98)
f = Pattern("f.png").similar(0.98)
g = Pattern("g.png").similar(0.98)
h = Pattern("h.png").similar(0.98)
i = Pattern("i.png").similar(0.98)
Reg = Region(598,93,33,33)
if Reg.exists(a,0.2):
click(Location(81,303))
type("1")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(b,0.2):
click(Location(81,303))
type("2")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(c,0.2):
click(Location(81,303))
type("3")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(d,0.2):
click(Location(81,303))
type("4")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(e,0.2):
click(Location(81,303))
type("5")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(f,0.2):
click(Location(81,303))
type("6")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(g,0.2):
click(Location(81,303))
type("7")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(h,0.2):
click(Location(81,303))
type("8")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if Reg.exists(i,0.2):
click(Location(81,303))
type("9")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

RegA = Region(633,93,34,33)
if RegA.exists(a,0.2):
click(Location(138,303))
type("1")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(b,0.2):
click(Location(138,303))
type("2")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(c,0.2):
click(Location(138,303))
type("3")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(d,0.2):
click(Location(138,303))
type("4")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(e,0.2):
click(Location(138,303))
type("5")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(f,0.2):
click(Location(138,303))
type("6")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(g,0.2):
click(Location(138,303))
type("7")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(h,0.2):
click(Location(138,303))
type("8")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegA.exists(i,0.2):
click(Location(138,303))
type("9")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

RegB = Region(669,93,35,33)
if RegB.exists(a,0.2):
click(Location(196,303))
type("1")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(b,0.2):
click(Location(196,303))
type("2")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(c,0.2):
click(Location(196,303))
type("3")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(d,0.2):
click(Location(196,303))
type("4")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(e,0.2):
click(Location(196,303))
type("5")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(f,0.2):
click(Location(196,303))
type("6")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(g,0.2):
click(Location(196,303))
type("7")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(h,0.2):
click(Location(196,303))
type("8")
click(Location(179,1065))
click(Location(454,943))
else:
sleep(0)

if RegB.exists(i,0.2):
click(Location(196,303))
type("9")
click(Location(179,1065))
click(Location(454,943))

Re: [Sikuli-driver] [Question #287456]: fast clicking

2016-03-13 Thread peter hasselby
Question #287456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/287456

Status: Needs information => Open

peter hasselby gave more information on the question:
Karl (k.d)

i have tried following.
Be aware that i changed  "for j in range(1,10)" because the "for j in 
range(1,151) seemed to take forever.

for j in range(1,10):
start = time.time()
for i in range(1,j):
Settings.ActionLogs = False
Settings.setAutoWaitTimeout = 0
Settings.MoveMouseDelay = 0
Settings.DelayBeforeMouseDown = 0
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrag = 0
Settings.DelayBeforeDrop = 0
Settings.ClickDelay = 0
click(Location(100,100),0)
end = time.time()
print j, (end-start)

the following was printed from sikuli:
2 0.25

3 0.5

4 0.75

5 1.0

6 1.25

7 1.5

8 1.75

9 2.0

I dont quite knows what thoose numers mean.

--
I am using the sikuli version 1.1.0 
64x (64-bit) operating system - windows 8

-- 
You received this question notification because your team Sikuli Drivers
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 #287456]: fast clicking

2016-03-11 Thread peter hasselby
Question #287456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/287456

Status: Answered => Open

peter hasselby is still having a problem:
nothing seems to make it faster.

I have also tried with the Settings.DelayBeforeDrag etc. - it dosent
make it faster either.

it still takes 11 seconds to go trough it all.

for the last part of my script I also tried:

Settings.ClickDelay = 0
click(Location(849,315))
Settings.ClickDelay = 0
click(Location(850,330))
Settings.ClickDelay = 0
click(Location(850,346))
Settings.ClickDelay = 0
click(Location(835,390))
Settings.ClickDelay = 0
click(Location(865,391))
Settings.ClickDelay = 0
click(Location(850,420))

But i didt seem to makes the clicks faster either.

Still hoping someone can help me solve this problem

-- 
You received this question notification because your team Sikuli Drivers
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 #287456]: fast clicking

2016-03-03 Thread peter hasselby
Question #287456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/287456

peter hasselby gave more information on the question:
please someone help me.

for about 3 yrs ago i made sikuli do the same thing/script. then it took
only 2 seconds. now it takes 11 seconds. And i cant remember how i did
it then.

my script is as following.

Settings.MoveMouseDelay = 0
for i in range(1000):
hover(Location(701,301))
mouseDown(Button.LEFT)
hover(Location(806,301))
mouseUp(Button.LEFT)
hover(Location(836,300))
mouseDown(Button.LEFT)
hover(Location(865,300))
mouseUp(Button.LEFT)

hover(Location(896,300))
mouseDown(Button.LEFT)
hover(Location(984,300))
mouseUp(Button.LEFT)

hover(Location(700,316))
mouseDown(Button.LEFT)
hover(Location(792,316))
mouseUp(Button.LEFT)

hover(Location(911,316))
mouseDown(Button.LEFT)
hover(Location(985,316))
mouseUp(Button.LEFT)

hover(Location(700,331))
mouseDown(Button.LEFT)
hover(Location(791,330))
mouseUp(Button.LEFT)

hover(Location(911,330))
mouseDown(Button.LEFT)
hover(Location(985,330))
mouseUp(Button.LEFT)

hover(Location(700,346))
mouseDown(Button.LEFT)
hover(Location(790,345))
mouseUp(Button.LEFT)

hover(Location(911,345))
mouseDown(Button.LEFT)
hover(Location(985,345))
mouseUp(Button.LEFT)

hover(Location(701,360))
mouseDown(Button.LEFT)
hover(Location(790,361))
mouseUp(Button.LEFT)

hover(Location(910,361))
mouseDown(Button.LEFT)
hover(Location(985,360))
mouseUp(Button.LEFT)

hover(Location(700,375))
mouseDown(Button.LEFT)
hover(Location(805,375))
mouseUp(Button.LEFT)

hover(Location(895,375))
mouseDown(Button.LEFT)
hover(Location(985,375))
mouseUp(Button.LEFT)

hover(Location(700,391))
mouseDown(Button.LEFT)
hover(Location(790,390))
mouseUp(Button.LEFT)

hover(Location(910,391))
mouseDown(Button.LEFT)
hover(Location(985,391))
mouseUp(Button.LEFT)

hover(Location(700,406))
mouseDown(Button.LEFT)
hover(Location(775,406))
mouseUp(Button.LEFT)

hover(Location(925,406))
mouseDown(Button.LEFT)
hover(Location(985,405))
mouseUp(Button.LEFT)

hover(Location(699,421))
mouseDown(Button.LEFT)
hover(Location(775,421))
mouseUp(Button.LEFT)

hover(Location(925,421))
mouseDown(Button.LEFT)
hover(Location(986,420))
mouseUp(Button.LEFT)

hover(Location(700,436))
mouseDown(Button.LEFT)
hover(Location(699,586))
mouseUp(Button.LEFT)

hover(Location(715,436))
mouseDown(Button.LEFT)
hover(Location(715,586))
mouseUp(Button.LEFT)

hover(Location(730,480))
mouseDown(Button.LEFT)
hover(Location(731,586))
mouseUp(Button.LEFT)

hover(Location(745,480))
mouseDown(Button.LEFT)
hover(Location(745,586))
mouseUp(Button.LEFT)

hover(Location(760,479))
mouseDown(Button.LEFT)
hover(Location(761,586))
mouseUp(Button.LEFT)

hover(Location(775,481))
mouseDown(Button.LEFT)
hover(Location(776,587))
mouseUp(Button.LEFT)

hover(Location(745,451))
mouseDown(Button.LEFT)
hover(Location(955,450))
mouseUp(Button.LEFT)

hover(Location(805,465))
mouseDown(Button.LEFT)
hover(Location(806,586))
mouseUp(Button.LEFT)

hover(Location(820,465))
mouseDown(Button.LEFT)
hover(Location(820,586))
mouseUp(Button.LEFT)

hover(Location(835,465))
mouseDown(Button.LEFT)
hover(Location(835,586))
mouseUp(Button.LEFT)

hover(Location(850,466))
mouseDown(Button.LEFT)
hover(Location(850,585))
mouseUp(Button.LEFT)

hover(Location(864,466))
mouseDown(Button.LEFT)
hover(Location(866,586))
mouseUp(Button.LEFT)

hover(Location(881,465))
mouseDown(Button.LEFT)
hover(Location(880,585))
mouseUp(Button.LEFT)

hover(Location(895,465))
mouseDown(Button.LEFT)
hover(Location(895,585))
mouseUp(Button.LEFT)

hover(Location(925,480))
mouseDown(Button.LEFT)
hover(Location(925,585))
mouseUp(Button.LEFT)

hover(Location(940,480))
mouseDown(Button.LEFT)
hover(Location(940,585))
mouseUp(Button.LEFT)

hover(Location(956,480))
mouseDown(Button.LEFT)
hover(Location(956,586))
mouseUp(Button.LEFT)

hover(Location(970,480))
mouseDown(Button.LEFT)
hover(Location(970,586))
mouseUp(Button.LEFT)

hover(Location(985,435))
mouseDown(Button.LEFT)
hover(Location(986,586))
mouseUp(Button.LEFT)

click(Location(849,315))
click(Location(850,330))
click(Location(850,346))
click(Location(835,390))
click(Location(865,391))
click(Location(850,420))

wait("1456920849969-1.png",20)
click("

[Sikuli-driver] [Question #287456]: fast clicking

2016-03-02 Thread peter hasselby
New question #287456 on Sikuli:
https://answers.launchpad.net/sikuli/+question/287456

First of all, I am a amateur, and not really into things here. So please, if 
you can give me a simple answer, in a simple laungeauge.

I want my mouse to click faster repeatly.

i have tried:

Settings.MoveMouseDelay = 0
for i in range(100)
click(Location(xxx,xxx))

hope someone can help me.





-- 
You received this question notification because your team Sikuli Drivers
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 #239322]: ctrl+alt+2

2013-11-17 Thread peter hasselby
Question #239322 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/239322

Status: Answered = Solved

peter hasselby 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 #239365]: how to use if exists

2013-11-17 Thread peter hasselby
New question #239365 on Sikuli:
https://answers.launchpad.net/sikuli/+question/239365

in want sikuli to run following

click(Location(57,1048))
if exists (Image)
  click(Location(343,49))
if not exists:
   click(Location(1891,10))

im new to this. I think it can be solved rather easily, I just dont have the 
knowlegde to solve it. plz help.

-- 
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 #239365]: how to use if exists

2013-11-17 Thread peter hasselby
Question #239365 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/239365

Status: Answered = Solved

peter hasselby 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 #239322]: ctrl+alt+2

2013-11-16 Thread peter hasselby
New question #239322 on Sikuli:
https://answers.launchpad.net/sikuli/+question/239322

I want the sikuli to type my email. But i don´t know how to make a @ in sikuli
Im not very into the programming. just using it for fun. 

i want the sikuli to do like this

type(thisismyemail)
Key.CTRL+Key.ALT+2 = @ -- ?
type(Hotmail.com)

can someone plz help

-- 
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 #223689]: if fail, continue another script, when done, start first again

2013-03-07 Thread peter hasselby
New question #223689 on Sikuli:
https://answers.launchpad.net/sikuli/+question/223689

first i want to tell that im very new to this. I have only used Sikuli for 3 
days, and i have never done anything like this before. so please answer in a 
easily understood language, if you would be so kind.

i have following script running in sikuli..

for i in range(10):
click(1362600377681.png)
wait(1)
click(Pattern(B.png).targetOffset(167,-100))
wait(lIm.png,2000)
click(Pattern(I0.png).targetOffset(60,38))
click(Pattern(lahIr0lIlMIM.png).targetOffset(2,31))
click(Pattern(_i.png).targetOffset(-37,-2))
click(136260532.png)
click(Pattern(B-1.png).targetOffset(381,-95))
wait(wm.png,2000)
click(Pattern(lolI.png).targetOffset(59,35))
click(Pattern(lahhr000MIME.png).targetOffset(7,31))
click(Pattern(_L.png).targetOffset(-36,-3))
click(1362601339995.png)
click(Pattern(B-2.png).targetOffset(604,-91))
wait(Antalafspill.png,2000)
wait(1)
click(Pattern(Antalafspill-1.png).targetOffset(56,36))
click(Pattern(lahIr0MKOBPL.png).targetOffset(-7,30))
click(Pattern(_iA.png).targetOffset(-36,0))
click(1362601653653.png)
click(Pattern(B-3.png).targetOffset(818,-97))
wait(llollIlIwmla.png,2000)
click(Pattern(llol.png).targetOffset(57,33))
click(Pattern(lahIr0lIliH.png).targetOffset(2,28))
click(Pattern(1362601791463.png).targetOffset(-36,-1))


if for an exampel, wait(lIm.png,2000)  fails, I want it to start on another 
script.

it could be like: wait(lIm.png,2000). failed
then: click()
  click()
  wait()
  click()
start from beginning again

what type of code do i need to use?

I hope you understand my quistion and are able to answer it. 

-- 
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