Re: [Sikuli-driver] [Question #268798]: sleep interrupted exception

2015-07-06 Thread Eugene Maslov
Question #268798 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268798

Eugene Maslov posted a new comment:
However, some applications draw the cursor themselves over some of their
graphical viewers etc. Press PrintScreen key and paste the image
somewhere. If it's the case, the cursor will be present in the picture.

-- 
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 #268925]: Webservice call from sikuli

2015-07-06 Thread Abhishek
New question #268925 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268925

Hi Raiman,
We are using sikuli for quite a while now. Thanks for the outstanding product. 
We need a favor from you. We are trying to customize sikuli, to call our 
webservice(wsdl), which will carry some parameters and we also need to catch 
the response back. We were struggling with the implementation. So please let us 
know, that:-

1. Is it really possible to customize sikuli to do all these fancy stuffs?
2. If (1) is yes, then how to call a webservice (SOAP based webservice. not URL 
one) from sikuli, as it does not provide any functionality as such ?

Also we need to download sikuli-IDE.jar and sikuli-script.jar manually. Please 
could forward us the link for the same.

-- 
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 #268773]: How to call wsdl from Sikuli

2015-07-06 Thread Charu
Question #268773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268773

Charu posted a new comment:
Thanks for the suggestion, but here i am not able to call webservice. I
am using SOAP web services and not REST. REST we can call through
browser but can not do same with SOAP. Is there any way i can integrate
wsdl file through sikuli like SOAP UI tool?

-- 
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 #223521]: Sikuli and RDP windows

2015-07-06 Thread fordox
Question #223521 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223521

fordox proposed the following answer:
Is it possible to solve the problem? Making Sikuli think that the screen
is the real one?

-- 
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 #268929]: Openn Login and check if image exists in Desktop application

2015-07-06 Thread RaiMan
Question #268929 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268929

Status: Open = Answered

RaiMan proposed the following answer:
goto http://sikulix.com, read carefully through home and quick start and
then decide, what Sikuli flavor you want to use.

-- 
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 #268925]: Webservice call from sikuli

2015-07-06 Thread RaiMan
Question #268925 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268925

Status: Open = Answered

RaiMan proposed the following answer:
see: https://answers.launchpad.net/sikuli/+question/268773

-- 
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 #268773]: How to call wsdl from Sikuli

2015-07-06 Thread RaiMan
Question #268773 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268773

RaiMan proposed the following answer:
you seem to need some soap client package in Java.
check the net.

-- 
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 #268932]: select() question

2015-07-06 Thread rob barlow
New question #268932 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268932

I've trying out the select() function and am little confused.

Im trying to have it pop up in part of the script an wait. So user can click 
return to go back to main selection or exit altogether.

Im guessing /i have it wrong and that its not going do as I want. That select() 
will sit there until user has made selection. Then it does whatever its told in 
its options.

Where I want some stuff doing while the popup is there waiting...   Not sure if 
i have made myself clear...

def Ffish():
items = (Wait,Return,Exit)
selected = select(Clicker Heroes Script 0.6, options = items)
while True:
# Was expecting it to see if anything selected do else go on
# items = (Wait,Return,Exit)
# selected = select(options = items)
if selected == items[1]:
break
else:
pass
if selected == items[2]:
exit()
else:
pass
#
a = Env.getMouseLocation()
if Fish.exists(Pattern(1435578564051.png).similar(0.80)):
Fish.click(Pattern(1435578564051.png).similar(0.80))
print(Got One)
mouseMove(a)
wait(0.5)
mouseMove(1435402415929.png)

-- 
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 #268932]: select() question

2015-07-06 Thread RaiMan
Question #268932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268932

Status: Open = Answered

RaiMan proposed the following answer:
thte select() acts synchronous like popup().

It is displayed and simply waits until the user presses a button.

What you want cannot be done with Sikuli features currently.

-- 
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 #268932]: select() question

2015-07-06 Thread rob barlow
Question #268932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268932

rob barlow posted a new comment:
I found a work around to what I wanted to do.

Env.addhotkey(Key.ESC,0,Quit)  # ESC not used in game
Setings.Dquit = 1

def Quit(event):
Settings.Dquit =5

then in any function just use

if Settings.Dquit != 1
   break

then i go back to my main where i can pop up the select() stuff. It
works too not sure if theres a better way.

Thank you once again for the help an info.

-- 
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 #268580]: questions about sikulifirefoxdriver

2015-07-06 Thread Dan
Question #268580 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268580

Dan posted a new comment:
I have been trying for a week or so and I can't seem to get it to do
what I want. The sikuliwebdriver doesn't find images on the selenium
browser page (seems like a bug to me, but no one in that world responds
to messages). I can find the images using just the sikuli java API. But
that is using a screen shot of the desktop to find the image and click
the mouse. I want to create a Screen using the selenium webdriver
screenshot. That way I can use multiple instances of Selenium at a time
and it is not dependent on the browser being visible on the screen. Do
you have some example code that does that? I can get a BufferedImage of
the screen from Selenium. I just don't see how to create a Screen from
that.

-- 
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 #268932]: select() question

2015-07-06 Thread rob barlow
Question #268932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268932

Status: Answered = Solved

rob barlow 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 #268915]: Create Image on the fly

2015-07-06 Thread Jeff_Vallis
New question #268915 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268915

1.1.0(2015-06-23_01:00nightly)/Mac10.10.4/Java8(64)1.8.0_25-b17

I know where an Avatar is positioned on the screen but do not know what the 
image is and I need to find this image later so is there a way to set an image 
from a region.
or
Have found the way to take a screen shot of the selected region and saved it as 
(path)/TheAvatar.png
can I set a variable to this image.


-- 
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 #268915]: Create Image on the fly

2015-07-06 Thread Eugene S
Question #268915 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268915

Status: Open = Answered

Eugene S proposed the following answer:
If you already have an image captured with something like this:

capturedImage = capture(someRegion)

you can create a Pattern from it:
pattern = Pattern(capturedImage).similar(.95).targetOffset(x, y)

You can then use the Pattern object with Region class:

reg = Region()
reg.find(pattern)

-- 
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 #268929]: Openn Login and check if image exists in Desktop application

2015-07-06 Thread ouedghiri
New question #268929 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268929

Hello, 

I'm a beginner in automation and I try to use Sikuli for automate a desktop 
application. 
I create a new project in JAVA with Eclipse, i added external jar in JAVA Build 
Path : sikuli-script.jar/sikuli-api-1.0.2-standalone.jar
I want to open a Desktop application and fill the login and password and after 
that check if a picture exist in the application. 

maestro.PNG  is the screenshot of my icon application and i don't know how to 
do next steps. 

package com.example.tests;
import java.awt.Desktop;
import java.io.File;
import org.sikuli.api.DesktopScreenRegion;
import org.sikuli.api.ImageTarget;
import org.sikuli.api.ScreenRegion;
import org.sikuli.api.Target;
import org.sikuli.api.robot.Mouse;
import org.sikuli.api.robot.desktop.DesktopMouse;
import org.sikuli.script.*;

public class maestro {
public static void main(String[] args)  {

 ScreenRegion s = new DesktopScreenRegion();
 Target tg=new ImageTarget(new 
File(C:\\TRAVAIL\\bandb\\POB\\maestro.PNG));
 ScreenRegion sr= s.find(tg);
 System.out.println(sr);
 Mouse mouse=new DesktopMouse(); 
 mouse.click(sr.getCenter());
 }
}


When i execute this code i get : 

SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.null

Exception in thread main java.lang.NullPointerException
at com.example.tests.maestro.main(maestro.java:25)

Can you give me information about that ? 

Thank you 


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