Re: [Sikuli-driver] [Question #665696]: Can we integrate selenium in Sikuli IDE?

2018-03-21 Thread Hina
Question #665696 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665696

Hina gave more information on the question:
The solution in recommended case works fine till load command. But when we try 
to write code it won't work. 
May be cuz I'm using Sikuli with python. 

How can we install selenium webdriver for python version?

-- 
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 #665696]: Can we integrate selenium in Sikuli IDE?

2018-03-21 Thread Hina
Question #665696 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665696

Status: Answered => Open

Hina is still having a problem:
When I click on Tools--> Extensions it shows me a message

Not available yet - click what ypu like  ;-)
OK Be quiet! Cancel 

:( no idea why did I get this message?

-- 
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 #667037]: Building a custom Sikuli/Eclipse IDE

2018-03-21 Thread joe maniaci
Question #667037 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667037

Description changed to:
So for the last year I have gone down the path of researching various
automated GUI test tools. One of the more promising ones was Testplant's
Eggplant Functional tool. However, the price is just way too much for my
company at the moment. So I started going down the path of Sikuli and I
have come up with a satisfactory workflow for myself, but I just don't
think it will be satisfactory for those I'll have to school up. So I
work with giant printers and we don't really have spare engineers to
build up tests but we do have a lot of testers that could. I even
created my own drastically simplified Sikuli API(in Java) and all a user
has to do is collect images with the sikuli IDE and piece it all
together within Eclipse using Java. However for someone without a
programming background I fear this might not be enough. So here is what
I am thinking...

An all in one custom Eclipse IDE utilizing a custom DSL with the ability
to capture imagery as well as tweak the target and similarity. This and
the ability to model the interface, that is, laying out that if I
perform Action A on View V, I should now expect to see View V2, where I
could perform Action A2, so on and so forth. So imagine dragging and
dropping a couple Thumbnail/ImageButton/Icon-like controls that
represent the views, the actions that can be performed and how they all
link together in a drawing area. Kind of like UML Designer in Eclipse.

I'm trying to write out requirements for all this but I'd like to
prototype some more first and that's where I'm running into issues of
what to use. For creating a scripting language that builds out Java it
appears that Xtext will be the way to go so that's that. I'm thinking to
create an Eclipse plugin to capture and tweak imagery, that way other
Eclipse users could use just that for their projects(would be nice to
know how to easily hook into Sikuli for this). In regards to
modeling/IDE development I have come across the Eclipse Modeling
Framework and the Graphical Editing Framework but I'm not entirely
certain how to get started.

If anything I'd be curious if people could point me in the right
direction, let me know if something is possible or/not, what Eclipse
tools might be more suitably.. I think what's really throwing me off is
all the various technologies there appears to be; Eclipse Modeling
Project, Graphical Editing Framework, Plugin Development Environment,
Standard Widget Toolkit, Rich Client Platform, Eclipse SDK, Eclipse
Project, e4, etc, etc.

Thank you very much for any useful info.

-- 
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 #667037]: Building a custom Sikuli/Eclipse IDE

2018-03-21 Thread joe maniaci
New question #667037 on Sikuli:
https://answers.launchpad.net/sikuli/+question/667037

So for the last year I have gone down the path of researching various automated 
GUI test tools. One of the more promising ones was Testplant's Eggplant 
Functional tool. However, the price is just way too much for my company at the 
moment. So I started going down the path of Sikuli and I have come up with a 
satisfactory workflow for myself, but I just don't think it will be 
satisfactory for those I'll have to school up. So I work with giant printers 
and we don't really have spare engineers to build up tests but we do have a lot 
of testers that could. I even created my own drastically simplified Sikuli 
API(in Java) and all a user has to do is collect images with the sikuli IDE and 
piece it all together within Eclipse using Java. However for someone without a 
programming background I fear this might not be enough. So here is what I am 
thinking...

An all in one custom Eclipse IDE utilizing a custom DSL with the ability to 
capture imagery as well as tweak the target and similarity. This and the 
ability to model the interface, that is, laying out that if I perform Action A 
on View V, I should now expect to see View V2, where I could perform Action A2, 
so on and so forth. So imagine dragging and dropping a couple 
Thumbnail/ImageButton/Icon-like controls that represent the views, the actions 
that can be performed and how they all link together in a drawing area. Kind of 
like UML Designer in Eclipse.

I'm trying to write out requirements for all this but I'd like to prototype 
some more first and that's where I'm running into issues of what to use. For 
creating a scripting language that builds out Java it appears that Xtext will 
be the way to go so that's that. I'm thinking to create an Eclipse plugin to 
capture and tweak imagery, that way other Eclipse users could use just that for 
their projects(would be nice to know how to easily hook into Sikuli for this). 
In regards to modeling/IDE development I have come across the Eclipse Modeling 
Framework and the Graphical Editing Framework but I'm not entirely certain how 
to get started.

If anything I'd be curious if people could point me in the right direction, let 
me know if something is possible or/not, what Eclipse tools might be more 
suitably, etc, etc.

Thank you very much for any useful info.

-- 
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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same

2018-03-21 Thread RaiMan
Question #667010 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667010

RaiMan proposed the following answer:
situations like that usually come from that the image has too much
background towards the edges of the image and the background in another
environment is slightly different.

The solution: concentrate the image on the key visual aspects and have
as little background as possible towards the edges.

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

RaiMan posted a new comment:
always welcome - have fun with SikuliX

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread Alexander Schone
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

Alexander Schone posted a new comment:
Yes, that is what I meant, I only need the "List" function when I expect
the images(objects) to be created in the process of execution, but since
I have all pictures already ill go without that feature. Thanks a lot!
This thread has given me a good start with your help and clarifications
:)

-- 
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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same

2018-03-21 Thread Lee Yen Liang
Question #667010 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667010

Lee Yen Liang posted a new comment:
I can't see much difference between the images captured on different
MacBook-Pros.

I discovered that the new MacBook-Pro is able to find the image using
`Pattern("icon.png").similar(0.5)` command.

Another thing I found interesting is that the old MacBook-Pro's display
is `Intel Iris Graphics 6100 1536 MB`, and the new MacBook-Pro's display
is `Intel Iris Graphics 540 1536 MB`. Maybe I should check the
difference between the two displays.

-- 
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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same

2018-03-21 Thread Lee Yen Liang
Question #667010 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667010

Lee Yen Liang posted a new comment:
`Pattern("icon.png").similar(0.5)`  lowers the matching criteria.

-- 
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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same

2018-03-21 Thread RaiMan
Question #667010 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667010

Status: Open => Answered

RaiMan proposed the following answer:
I guess the problem is with the Android emulator, which produces
differences on the both Macs.

To verify, make a screenshots on both machines of the offending region
and compare with Mac Preview enlarging it so you can see individual
pixels.

Another option is, to use the SikuliX IDE Preview.

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

RaiMan posted a new comment:
--- why do I need findBestList instead of findBest?

same answer as this:
--- difference between findAny and findAnyList
findAny accepts a parameter series of images, whereas findAnyList accepts only 
one parameter, which is a List of images (where images are either image 
filename strings or Pattern objects) 

which version you use depends on how you setup your image list:

findBestList(listOfImages) 
listOfImages is a List object, that is filled elsewhere.

findbest(image1, image2, image3, image4, ...)
here the list of images is represented as a "static" parameter list

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread Alexander Schone
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

Alexander Schone posted a new comment:
why do I need findBestList instead of findBest? Im not fully getting the
difference even though I looked up both functions in the docs.

-- 
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 #667010]: Image FindFailed on different MacBook-Pros even though the screen resolutions are the same

2018-03-21 Thread Lee Yen Liang
New question #667010 on Sikuli:
https://answers.launchpad.net/sikuli/+question/667010

I have two MacBook-Pros. Both machines' resolutions are 2560 x 1600. 

Each machine runs sikuli to do some tasks on an Android emulator(Nox App 
Player) whose resolution is set to 720 x 1280.

I just captured an image with sikuli on the old MacBook-Pro. Then I transfer 
the code along with the image to the new MacBook-Pro with gitlab. Then I run 
exactly the same code and the same image on the new MacBook-Pro, and find that 
sikuli can't find the image on the new MacBook-Pro.

Why does this happen?

The two images on the old and the new MacBook-Pros have exactly the same pixels.






-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

RaiMan posted a new comment:
--- findBestList() vs. findAnyList()
yep, in your case findBestList() is the preferable feature

--- just made a test with 10 images in a 500 pixel region:
- exists loop: 90 msec
- findBest: 24 msec

so findBest is faster and the code is leaner

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

RaiMan posted a new comment:
the exists example should break when number is found:

found = False
foundNumber = -1
for number in numbers:
foundNumber += 1
if not reg.exists(number, 0): 
continue
else: 
found = True
break
if found:
print "found number:", foundNumber
else:
print "no success"

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread Alexander Schone
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

Alexander Schone posted a new comment:
I'll think about visiting the javadoc next time! I see so in my case I dont 
really need to use findAnyList correct? since I have the images as files 
already I dont need to create patterns?
How about findBest, would that not suit my needs better here since it would 
only return one number, or is it slower?

Hmm if findAny is faster at 5+ pictures and I have 10 pictures then I suppose I 
wont use it, especially if it cant be done in java :)
thank you for the example though!

-- 
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] [Bug 1757368] [NEW] [1.1.2] JavaScript support not working

2018-03-21 Thread RaiMan
Public bug reported:

Is there sample codes using JavaScript in SikuliX IDE.
I am interested in the explanation here.
There is some special support for using SikuliX features from JavaScript which 
is still experimental and not yet documented.

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.3

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1757368

Title:
  [1.1.2] JavaScript support not working

Status in Sikuli:
  In Progress

Bug description:
  Is there sample codes using JavaScript in SikuliX IDE.
  I am interested in the explanation here.
  There is some special support for using SikuliX features from JavaScript 
which is still experimental and not yet documented.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1757368/+subscriptions

___
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] [Bug 1757365] [NEW] [1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work

2018-03-21 Thread RaiMan
Public bug reported:

 problem
if Env.isLockOn(Key.NUM_LOCK):
  nlZap=True
else:
  nlZap=False
if nlZap:
  type(Key.NUM_LOCK)



I want to select one line text in script by combined keys of HOME and SHIFT, 
but it dosen't work.
My script is :
type(Key.END)
wait(1)
type(Key.HOME, Key.SHIFT)
wait(1)
type('C', Key.CTRL)
wait(1)
print Env.getClipboard()

But from UI, the line text can't be selected. Is there any problem in my
script? Thanks

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.3

** Description changed:

+  problem
+ if Env.isLockOn(Key.NUM_LOCK):
+   nlZap=True
+ else:
+   nlZap=False
+ if nlZap:
+   type(Key.NUM_LOCK)
+ 
+ 
+ 
  I want to select one line text in script by combined keys of HOME and SHIFT, 
but it dosen't work.
  My script is :
  type(Key.END)
  wait(1)
  type(Key.HOME, Key.SHIFT)
  wait(1)
  type('C', Key.CTRL)
  wait(1)
  print Env.getClipboard()
  
  But from UI, the line text can't be selected. Is there any problem in my
  script? Thanks

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1757365

Title:
  [1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work

Status in Sikuli:
  In Progress

Bug description:
   problem
  if Env.isLockOn(Key.NUM_LOCK):
nlZap=True
  else:
nlZap=False
  if nlZap:
type(Key.NUM_LOCK)

  

  I want to select one line text in script by combined keys of HOME and SHIFT, 
but it dosen't work.
  My script is :
  type(Key.END)
  wait(1)
  type(Key.HOME, Key.SHIFT)
  wait(1)
  type('C', Key.CTRL)
  wait(1)
  print Env.getClipboard()

  But from UI, the line text can't be selected. Is there any problem in
  my script? Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1757365/+subscriptions

___
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 #666873]: Is there sample codes using JavaScript in SikuliX IDE.

2018-03-21 Thread RaiMan
Question #666873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666873

Status: Answered => Solved

RaiMan changed the question status:
making it a bug

-- 
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 #666873]: Status of bug #1757368 changed to 'In Progress' in Sikuli

2018-03-21 Thread RaiMan
Bug #1757368 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1757368
"[1.1.2] JavaScript support not working"

This bug is linked to #666873.
Is there sample codes using JavaScript in SikuliX IDE.
https://answers.launchpad.net/sikuli/+question/666873

-- 
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 #666873]: Is there sample codes using JavaScript in SikuliX IDE.

2018-03-21 Thread RaiMan
Question #666873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666873

Linked to bug: #1757368
https://bugs.launchpad.net/bugs/1757368
"[1.1.2] JavaScript support not working"

-- 
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 #666873]: Is there sample codes using JavaScript in SikuliX IDE.

2018-03-21 Thread RaiMan
Question #666873 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666873

Status: Open => Answered

RaiMan proposed the following answer:
Sorry, but just found, that the JavaScript support does not work.

-- 
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 #665698]: Status of bug #1757365 changed to 'In Progress' in Sikuli

2018-03-21 Thread RaiMan
Bug #1757365 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1757365
"[1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work"

This bug is linked to #665698.
How to use type function to input combined keys of HOME and SHIFT ?
https://answers.launchpad.net/sikuli/+question/665698

-- 
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 #665698]: How to use type function to input combined keys of HOME and SHIFT ?

2018-03-21 Thread RaiMan
Question #665698 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665698

Linked to bug: #1757365
https://bugs.launchpad.net/bugs/1757365
"[1.1.x] Windows 7: Env.isLockOn(Key.NUM_LOCK) does not work"

-- 
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 #665698]: How to use type function to input combined keys of HOME and SHIFT ?

2018-03-21 Thread RaiMan
Question #665698 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665698

Status: Open => Answered

RaiMan proposed the following answer:
ok, thank you.
I have to check the situation on Windows 7.

-- 
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 #666773]: How to get on the road as a newcomer to Java programming

2018-03-21 Thread RaiMan
Question #666773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/666773

RaiMan posted a new comment:
--- Why could it return null? It will always find a number there.
yes ... findAnyList() will always return a List object,
... but in your case all match entries in the list for the numbers not found 
will be null, only for the one found there will be a valid match entry.

--- difference between findAny and findAnyList
findAny accepts a parameter series of images, whereas findAnyList accepts only 
one parameter, which is a List of images (where images are either image 
filename strings or Pattern objects) (the javadocs mentioned in comment #1 
might have told you ;-)

--- would it be possible to use .exists() 
yes, of course: (Python script ;-)

numbers = (n0, n1, n2, ..., n9) # nX is a string having the number image 
filename
reg =  # the search region
found = -1
for number in numbers:
if not reg.exists(number, 0): continue
else: found = found + 1 
if found > -1:
print "found number:", found
else:
print "no success"

this is a sequential search, which will in the average need 5 searches
to identify the number (max 10 searches).

findAny() internally delegates each search into a separate thread, that
run in parallel. My checks say, that beginning with 4 images to be
searched in parallel, findAny() is faster than sequential exists()

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