[Sikuli-driver] [Question #688888]: Sikuli Click function is not working with Java version 211 and 241

2020-02-19 Thread Ravina Ingole
New question #68 on Sikuli:
https://answers.launchpad.net/sikuli/+question/68

What I want to achieve:
I want to Click using image.

Case 1:
When I tried to use Java 8 Version 171  it is working fine for Lenovo ThinkPad 
laptops below are configuration of laptop:

1.Window Edition: Window 10 Enterprise.
2.Processor: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHz
3.Memory: 8.00 GB (7.88 GB Usable)
4.System Type: 64-Bit Operating system, x64-based processor

Case 2:

When I tried to upgrade Java 8 Version to 211 and 241 it is not clicking on 
image instead of that it is clicking on below axis of screen.
CLICK on L(702,311)@S(0)[0,0 1280x720] (539 msec)

Laptop Configuartion used is:
1. Window Edition: Window 10 Enterprise.
2.Processor: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHz
3.Memory: 8.00 GB (7.88 GB Usable)
4.System Type: 64-Bit Operating system, x64-based processor

Note: I have tried to use different images still its is clicking on same axis 
of screen, whereas type function of sikul is working fine.

Case 3:
when I tried to use same images to click on Dell laptops it is working fine as 
expected for all JAVA 8 version of 171,211 and 241.
Below is configuration of Dell laptop:

1. Window Edition: Window 10 Enterprise.
2.Processor: Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz 2.71 GHz
3.Memory: 8.00 GB (7.88 GB Usable)
4.System Type: 64-Bit Operating system, x64-based processor
5.Latutude 5290




-- 
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 #688887]: Click() Implementation in Code

2020-02-19 Thread jeff
New question #67 on Sikuli:
https://answers.launchpad.net/sikuli/+question/67

Hi,

I'm trying to learn to navigate the code.

Where is the implementation of the Click() call inside the codebase?

https://github.com/sikuli/sikuli

Thanks,
Jeff

-- 
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 #688886]: Defnition calling another Definition already declared.

2020-02-19 Thread Leonardo Castro
New question #66 on Sikuli:
https://answers.launchpad.net/sikuli/+question/66

Hello.

I'm tryng to call one definition already defined, inside another definition.

CODE:

def teste1(event):
 popup("teste 1")

def teste2(event):
 popup("teste 2")

def teste3(event):
 popup("teste 3")

def all(event):
teste1()
teste2()
teste3()

all()



-- 
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 #688862]: Windows: App.open: switch instance after creating multiple

2020-02-19 Thread larryli
Question #688862 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688862

larryli posted a new comment:
maybe the following part has problem.

this.appPID = Integer.parseInt(appPID);

so reset(); is called, the PID is -1

-- 
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 #688883]: onAppear handler will be called again

2020-02-19 Thread larryli
Question #63 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/63

larryli posted a new comment:
for this issue, I have try it  the following modification, it can control 
observe.
it can fix the issue, I have one propsal, whether it can provide API to set 
observe name, because, as the code, it can use name to add and remove. just 
check master branch code, it seems not have.

if it already have, sorry for my less check.

def handler1(event):
 event.stopObserver()
 event.getRegion().getObserver().removeObserver(event.getName())
 print "handler1 is ready"
 global process
 process = false

openApp("application path")
global process
process = True
onAppear("image1", hander1)
observe(FOREVER)

while True:
   wait(2)
  if process == False: break

def handler2(event):
 event.stopObserver()
 event.getRegion().getObserver().removeObserver(event.getName())
 print "handler2is ready"

openApp("app2 path")
onAppear("image2", hander2)
observe(FOREVER)

-- 
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 #688862]: Windows: App.open: switch instance after creating multiple

2020-02-19 Thread larryli
Question #688862 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688862

larryli posted a new comment:
thanks for your answer.
I will also study it.

-- 
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 #688883]: onAppear handler will be called again

2020-02-19 Thread larryli
New question #63 on Sikuli:
https://answers.launchpad.net/sikuli/+question/63

Now, I use 2.0.2 version
as the following code, I already stopObserver in handler1, but when open app2, 
it also have the image1, as the log, handler1 will be executed again. whether  
stopObserver in handler1 just stop scan, it should clear image1 from onAppear?
if yes, is there any method?

def handler1(event):
 event.stopObserver()
 print "handler1 is ready"
 global process
 process = false
  
openApp("application path")
global process
process = True
onAppear("image1", hander1)
observe(FOREVER)

while True:
   wait(2)
  if process == False: break

def handler2(event):
 event.stopObserver()
 print "handler2is ready"

openApp("app2 path")
onAppear("image2", hander2)
observe(FOREVER)

thank you very much




-- 
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 1863949] [NEW] capture is returning different data types depending on call

2020-02-19 Thread Glenn Tanner
Public bug reported:

In 2.0.2, on 64 bit Arch Linux, depending on how capture is called it is
no longer returning a file path. I cannot find anywhere where this
behavior is documented and therefore am reporting it as a bug. It seems
to be returning a java object and making a java call.

imagePath = SCREEN.capture()
print imagePath
imagePath = VNC.capture()
print imagePath
imagePath = capture(VNC) #FYI - local screen captured
print imagePath
exit(0)

Actual:
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
org.sikuli.script.ScreenImage@59ab5f32
org.sikuli.script.ScreenImage@4236bae8
[info] Exit code: 0
/tmp/Sikulix_1686686143/sikuliximage-1582144646621.png

Expected:
shutil.move(vnc.capture(), FULL_PATH) #from tmp

Work around:
img = vnc.capture().saveInBundle("temp")
shutil.move(img, FULL_PATH) #from bundle

** Affects: sikuli
 Importance: Undecided
 Status: New

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

Title:
  capture is returning different data types depending on call

Status in Sikuli:
  New

Bug description:
  In 2.0.2, on 64 bit Arch Linux, depending on how capture is called it
  is no longer returning a file path. I cannot find anywhere where this
  behavior is documented and therefore am reporting it as a bug. It
  seems to be returning a java object and making a java call.

  imagePath = SCREEN.capture()
  print imagePath
  imagePath = VNC.capture()
  print imagePath
  imagePath = capture(VNC) #FYI - local screen captured
  print imagePath
  exit(0)

  Actual:
  CConnection: Server supports RFB protocol version 3.8
  CConnection: Using RFB protocol version 3.8
  org.sikuli.script.ScreenImage@59ab5f32
  org.sikuli.script.ScreenImage@4236bae8
  [info] Exit code: 0
  /tmp/Sikulix_1686686143/sikuliximage-1582144646621.png

  Expected:
  shutil.move(vnc.capture(), FULL_PATH) #from tmp

  Work around:
  img = vnc.capture().saveInBundle("temp")
  shutil.move(img, FULL_PATH) #from bundle

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1863949/+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 #688872]: Get build number of .exe file

2020-02-19 Thread RaiMan
Question #688872 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688872

RaiMan proposed the following answer:
It is true, that you cannot use the Python package win32com, since The
Python interpreter with SikuliX is the Java based Jython, which cannot
access C-based stuff, as is possible with the Python interpreter.

But you can try using the package com.sun.jna.platform.win32, which is
included in SikuliX, since we need it for various features, that need to
access system API's like Win32.

You have to learn how to use Java classes from within Jython/SikuliX
scripts and then the Win32 world is open for you ;-)

-- 
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 #688872]: Get build number of .exe file

2020-02-19 Thread Manfred Hampl
Question #688872 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688872

Status: Open => Answered

Manfred Hampl proposed the following answer:
How would you do that without sikuli?

Probably:
File explorer - navigate to the .exe file - right mouse button - properties - 
details

And these steps can of course be automated using sikuli.

-- 
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 #688868]: get current keyboard Layout

2020-02-19 Thread Manfred Hampl
Question #688868 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688868

Status: Open => Answered

Manfred Hampl proposed the following answer:
What is "the problem" that needs to be solved?

How would you know about the keyboard layout without sikuli?

-- 
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 #688872]: Get build number of .exe file

2020-02-19 Thread Asheru
New question #688872 on Sikuli:
https://answers.launchpad.net/sikuli/+question/688872

Hello,

I want to know if it's possible to get the build number of an .exe file.

I have found some examples but they require win32com package and from what I 
have found it's not working with sikuliX since it's not written fully in python.

Is there any other way?

-- 
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 #688868]: get current keyboard Layout

2020-02-19 Thread Sergey Taranenko
Question #688868 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688868

Status: Answered => Open

Sergey Taranenko is still having a problem:
Well, what other methods are there to solve the 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 #688862]: Windows: App.open: switch instance after creating multiple

2020-02-19 Thread RaiMan
Question #688862 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688862

Summary changed to:
Windows: App.open: switch instance after creating multiple 

-- 
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 #688862]: Windows: App.open: switch instance after creating multiple

2020-02-19 Thread RaiMan
Question #688862 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688862

Status: Open => Answered

RaiMan proposed the following answer:
I am sorry. I have tested on Windows 10 and have to admit, that it has
bugs.

Will come back later.

-- 
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 #688863]: Is it possible to update HtmlTestRunner report after each test?

2020-02-19 Thread RaiMan
Question #688863 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688863

RaiMan proposed the following answer:
ok, then you have to dive into the code of HTMLTestRunner and look for a
way.

... not too complicated, but needs some html and Python experiences.

You might also look in the net for an update/successor.

-- 
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 #688863]: Is it possible to update HtmlTestRunner report after each test?

2020-02-19 Thread Asheru
Question #688863 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688863

Asheru posted a new comment:
Yeah but the problem is that we run like 80 to 100 tests at once on a VM
through TFS so I was thinking it might not be possible but I decided to
ask.

-- 
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 #688863]: Is it possible to update HtmlTestRunner report after each test?

2020-02-19 Thread RaiMan
Question #688863 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688863

Status: Open => Answered

RaiMan proposed the following answer:
not possible.

you might separate the all-5-test-run in 5 test runs, so each produces
its own report.

-- 
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 #688868]: get current keyboard Layout

2020-02-19 Thread RaiMan
Question #688868 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688868

Status: Open => Answered

RaiMan proposed the following answer:
not intended for public use.

-- 
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 #688868]: get current keyboard Layout

2020-02-19 Thread Sergey Taranenko
New question #688868 on Sikuli:
https://answers.launchpad.net/sikuli/+question/688868

tell me how to know the current keyboard layout?
I found the getCurrentLayout() procedure in 
API/src/main/java/org/sikuli/script/support/KeyboardLayout.java but it is 
private.
what am i doing wrong ?

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