[Sikuli-driver] [Question #679238]: Alt+Shift+C doesn't work

2019-03-15 Thread Max Musterman
New question #679238 on Sikuli:
https://answers.launchpad.net/sikuli/+question/679238

Hello, I just updated from Sikuli 1.1.2 to 1.1.3 and updated my Java to 11 and 
now I can no longer close my scripts with Alt+Shift+C. 

-- 
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 #678309]: Gradually reducing MinSimilarity

2019-02-03 Thread Max Musterman
Question #678309 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678309

Max Musterman 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 #678309]: Gradually reducing MinSimilarity

2019-02-03 Thread Max Musterman
Question #678309 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678309

Status: Answered => Solved

Max Musterman confirmed that the question is solved:
Thanks a bunch

-- 
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 #678309]: Gradually reducing MinSimilarity

2019-02-03 Thread Max Musterman
New question #678309 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678309

Hi, thanks for your work maintaining this script. I wonder, is there a way to 
gradually reduce the MinSimilarity? You can set it to a specific value, but is 
it possible to reduce it by 0,01 continuously within a loop until it finds an 
image?  Something like

Settings.MinSimilarity=1
loop
if image exists 
do thing
break
else
decrease MinSimilarity by 0,01


-- 
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 #670783]: Different character encoding when using CMD instead of IDE

2018-07-26 Thread Max
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Status: Expired => Open

Max is still having a problem:
the issue still exists. can i provide more helpful information? just
tell me what you need. thanks a lot!

-- 
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 #670783]: Different character encoding when using CMD instead of IDE

2018-07-10 Thread Max
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Max posted a new comment:
Value of mail is for example:

FromSubject ReceivedSize
Lastname, Firstname Subjecttext 22:09   46 KB

-- 
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 #670783]: Different character encoding when using CMD instead of IDE

2018-07-10 Thread Max
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Status: Answered => Open

Max is still having a problem:
I'm running Sikulix 1.1.0 on Windows 7 64bit, Java Version 8, Update
152.

Here is my code snippet with some comments:

###
type("c",KEY_CTRL) # copy selected mail subject field
mail = Env.getClipboard()
mail = mail.encode('utf-8', 'ignore').decode('utf-8')
mail = mail.split("\n") # split table titles line and subject/sender
mail = mail[1] # set var mail to the subject/sender string
mail = mail.split("\t") # split into sender and subject
sender = "sender unknown"
sender = mail[0] #sender name
sender = sender.encode('utf-8', 'ignore').decode('utf-8')
mailtext = "no text"
mailtext = mail[1] # subject text
mailtext = mailtext.encode('utf-8', 'ignore').decode('utf-8')
#switch to textbox (ticket application)
paste("Here is some text from "+sender+": "+mailtext)
###


Thank you for your help

-- 
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 #670783]: Different character encoding when using CMD instead of IDE

2018-07-10 Thread Max
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Max posted a new comment:
and yes: i did the .encode.decode utf-8 thing with my variable

-- 
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 #670783]: Different character encoding when using CMD instead of IDE

2018-07-10 Thread Max
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Status: Answered => Open

Max is still having a problem:
no i‘m using „paste(myvariable)“ to paste the string into the textbox.

-- 
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 #670783]: Different character encoding when using CMD instead of IDE

2018-07-09 Thread Max
New question #670783 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670783

Hello,

i have a sikulix script which has a different behaviour when i start it as a 
batch file with runsikulix.cmd than running it from the IDE
 .
I'm using Sikulix 1.1.0 (cant download a newer version because it is restricted 
in my companys network)

the script copys (type ctrl+c -> Env.getClipboard()) some mail text with 
special characters like "ä", "ö" or "ü" and paste it into a textbox of another 
application.
when i start my script from the sikulix IDE everything is fine.
but when i start my script from a batch file (\\xx\SikuliX\runsikulix.cmd 
-r \\\test.sikuli). the encoding of the special characters fails. The 
chacater "ä" is displayed as "ÿ".
how can i fix that?

thank you for your help!

-- 
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 #663232]: How to click on screen using coordinates

2018-01-19 Thread Max Musterman
Question #663232 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663232

Max Musterman posted a new comment:
After going through some other user scripts, the correct command is "
click(Location(X,Y)) "

I don't understand why you didn't just answer my question. If you didn't
care about my question, fair enough, don't reply but why reply just to
give me misleading information? Are you keen on wasting both mine and
your time?

http://doc.sikuli.org/location.html
Does not contain the command click(Location(X,Y)) which was the one and only 
thing I asked about. 

Now you are probably going to think "It contains Location(x, y) so you
could have concluded that..." No. I can't I have no idea about
programming, I literally just tried to automate a few clicks while also
using images. I don't care to learn about programming or computer
science. The above command is literally all I wanted to know.

Anyways, my script works now, thanks for wasting our time.

-- 
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 #663232]: How to click on screen using coordinates

2018-01-18 Thread Max Musterman
Question #663232 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663232

Max Musterman posted a new comment:
I am sure there are, but them existing doesn't help me if I cant find
them, which is why I asked for a link. I found tons of stuff about
relative coordinates or coordinates on an image or whatever, but nothing
about just clicking a specific location.

I read the docs I found when I googled "sikuli click coordinates", like
http://doc.sikuli.org/region.html http://doc.sikuli.org/location.html
but they don't 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 #663232]: How to click on screen using coordinates

2018-01-18 Thread Max Musterman
Question #663232 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663232

Max Musterman posted a new comment:
Hi, thanks for you reply. I tried reading through what I could find
before asking, but the problem is I have no programming knowledge so I
don't understand much of it.

Do I need to define a location/region before using click? If so how do I
do it? Can you maybe give me a link to a simple working script that I
can copy paste that does a few clicks on the desktop so I can learn from
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 #663232]: How to click on screen using coordinates

2018-01-18 Thread Max Musterman
New question #663232 on Sikuli:
https://answers.launchpad.net/sikuli/+question/663232

Hello, I am new,  I want to click on screen using coordinates.
I tried using the code in https://answers.launchpad.net/sikuli/+question/575478
But using Click(928,482) only clicks at the current mouse position.

If I set loc = 928,482
And use Click(loc)
It also only clicks at the current mouse position.

How do I get it to click at set coordinates?




-- 
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 #661603]: Set tolerance in click(image)

2017-12-12 Thread Max
Question #661603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661603

Status: Answered => Solved

Max 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 #661603]: Set tolerance in click(image)

2017-12-12 Thread Max
Question #661603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661603

Status: Answered => Open

Max is still having a problem:
thanks for the tips!

I was able to do it using pattern as you suggested with the following
code:

my_image = find(Pattern("1513067174539.png").similar(0.5))
click(my_image)

Then I tried to insert exsist function since I don't know a priori if
the image is present and I don't want that if the find fails the program
stops, but the script crashed.

while true
my_image = find(Pattern("1513067174539.png").similar(0.5))
if exists(my_image):
click(my_image)
else:
sleep(5)
type("t", KeyModifier.CTRL)

How can I solve this problem? Is it possible to use a mach object
obtained by find() inside exsist()???

-- 
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 #661603]: Set tolerance in click(image)

2017-12-11 Thread Max
New question #661603 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661603

Hi,

I have a problem in my Sikuli python script and no idea how to solve it.

I need to click on an image, but this could slightly differ from one computer 
to another. My code now is something like this:

while (exit != 1):
count += 1 
if exists("1508670860035.png"):
click("150867092.png")
exit = 1
else:

I would like to say something like "if exists("1508670860035.png").similar(0.5) 
click ("1508670860035.png").similar(0.5)". 
So I would like to add sort of tolerance for this image, so it could not be 
exactly the same, but differ a little.

I tried to use similar() function but I think I used in a wrong way (my script 
crashed).

Any suggestion?

-- 
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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-28 Thread Max
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Max 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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-28 Thread Max
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Status: Answered => Solved

Max confirmed that the question is solved:
It works! Thanks again, amazing solution :)

-- 
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 #661218]: Open browser in python script without using full system path

2017-11-28 Thread Max
Question #661218 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661218

Max 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 #661218]: Open browser in python script without using full system path

2017-11-28 Thread Max
New question #661218 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661218

Hi!

On Windows, I'm trying to open  a browser (e.g., chrome) through python sikuli 
script  without using its system path since a priori I don't know  the right 
path on different machines and OS versions.

I tried the following codes:

--->
someApp = App("Firefox") 
someApp.open()

--->
App.open("firefox")

None is working, only the full path 
=> App.open("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe")
=> App.open("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")

Is there a way to do it?
Thank 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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-28 Thread Max
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Max posted a new comment:
Excellent!!! I will try tonight :) Thank you so much for your 
help!! I'll let you know the result ;)
Thanks again!

-- 
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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-27 Thread Max
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Max posted a new comment:
of course!!! this sounds amazing!!!

-- 
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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-26 Thread Max
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Max posted a new comment:
eheheh yep sorry :P my apologies!

-- 
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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-26 Thread Max
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Status: Answered => Open

Max is still having a problem:
any idea?!? :)

-- 
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 #661030]: Justice League

2017-11-23 Thread max
New question #661030 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661030

https://myfloridagreen.com/forums/topic/hbo-techfree-watch-justice-league-2017-online-full-hd-movie

-- 
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 #660655]: .sendto() method does not work on windows

2017-11-21 Thread Max
Question #660655 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660655

Status: Answered => Open

Max is still having a problem:
Yep, I'm running the code from IDE.  In stackoverflow someone suggested
to use run() function in sikuli and call an external python script . Any
idea how to use 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


Re: [Sikuli-driver] [Question #660655]: .sendto() method does not work on windows

2017-11-12 Thread Max
Question #660655 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660655

Max posted a new comment:
I think is a sikuli issue since, if I run a python script with these lines, the 
code is working properly (on windows).
>From the error logs I had the impression that sikuli tried to use its own 
>_socket.py

-- 
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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-12 Thread Max
Question #660613 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660613

Max posted a new comment:
Thank!

-- 
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 #660655]: .sendto() method does not work on windows

2017-11-12 Thread Max
Question #660655 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660655

Max posted a new comment:
The same code on sikulix  linux is working fine.
In both OS I have the latest 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 #660655]: .sendto() method does not work on windows

2017-11-12 Thread Max
Question #660655 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660655

Description changed to:
Hi,

I developed a sikuli python script on linux that uses this code:

from socket import AF_INET, SOCK_DGRAM
import sys
import socket
import struct, time

host = "pool.ntp.org"
port = 123
buf = 1024
address = (host,port)
msg = '\x1b' + 47 * '\0'

# reference time (in seconds since 1900-01-01 00:00:00)
TIME1970 = 2208988800L # 1970-01-01 00:00:00

# connect to server
client = socket.socket( AF_INET, SOCK_DGRAM)
client.sendto(msg, address)
msg, address = client.recvfrom( buf )

t = struct.unpack( "!12I", msg )[10]
t -= TIME1970

current_time = time.ctime(t).replace("  "," ")


The code is working fine under linux, but if I use sikulix on windows it 
crashes (at line =>  client.sendto(msg, address)  ) with the following error:

[error] script [ Sikuli_Test_Original ] stopped with error in line 23
[error] _socket.error ( [Errno -1] Unmapped exception: 
java.util.concurrent.RejectedExecutionException: event executor terminated )
[error] --- Traceback --- error source first line: module ( function ) 
statement 359: _socket ( handle_exception ) _socket.error: [Errno -1] Unmapped 
exception: java.util.concurrent.RejectedExecutionException: event executor 
terminated
995: _socket ( sendto ) File 
"C:\Users\myuser\Documents\Sikuli\sikulix.jar\Lib\_socket.py", line 971, in 
_datagram_connect
[error] --- Traceback --- end --


Any idea why and how to fix 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 #660655]: .sendto() method does not work on windows

2017-11-12 Thread Max
New question #660655 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660655

Hi,

I developed a sikuli python script on linux that uses this code:

from socket import AF_INET, SOCK_DGRAM
import sys
import socket
import struct, time

host = "pool.ntp.org"
port = 123
buf = 1024
address = (host,port)
msg = '\x1b' + 47 * '\0'

# reference time (in seconds since 1900-01-01 00:00:00)
TIME1970 = 2208988800L # 1970-01-01 00:00:00

# connect to server
client = socket.socket( AF_INET, SOCK_DGRAM)
client.sendto(msg, address)
msg, address = client.recvfrom( buf )

t = struct.unpack( "!12I", msg )[10]
t -= TIME1970

current_time = time.ctime(t).replace("  "," ")


The code is working fine under linux, but if I use sikulix on windows it 
crashes with the following error:

[error] script [ Sikuli_Test_Original ] stopped with error in line 23
[error] _socket.error ( [Errno -1] Unmapped exception: 
java.util.concurrent.RejectedExecutionException: event executor terminated )
[error] --- Traceback --- error source first line: module ( function ) 
statement 359: _socket ( handle_exception ) _socket.error: [Errno -1] Unmapped 
exception: java.util.concurrent.RejectedExecutionException: event executor 
terminated
995: _socket ( sendto ) File 
"C:\Users\myuser\Documents\Sikuli\sikulix.jar\Lib\_socket.py", line 971, in 
_datagram_connect
[error] --- Traceback --- end --


Any idea why and how to fix 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 #660613]: Convert my Sikuli python script in a java (obfuscated) standalone package

2017-11-11 Thread Max
New question #660613 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660613

Hi!

Preface: I'm not a software developer and have never developed anything in java 
:)
I developed some sikuli scripts in python to automate actions for my researches 
(I work in academia).

Now I need to build a java standalone package for one of my programs (with the 
obfuscation) to be able to run it without installing and configure sikuli when 
I move or if I need to lend it to other departments.

I asked already the question here => 
https://stackoverflow.com/questions/47042941/jar-or-exe-file-from-sikuli-python-script
 
 but could not performed already the second step...

I have my script in a folder "my_program.sikuli":

image1.png
image2.png
...
script.py


So far I just compiled my py script with jython obtaining a .class file

$JYTHON_HOME/jython $JYTHON_HOME/Lib/compileall.py   /home/my_program.sikuli/

===> a new file called  "script$py.class" is in /home/my_program.sikuli/

Now I have no idea what to do and how to do it! In the link they spoke about 
wrappers and __run__.py  but cannot understand what to do.

Could you help me explaining step by step the actions?

Thank you very much for your support!!!


-- 
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 #660197]: JAR or EXE file from Sikuli python script

2017-11-01 Thread Max
Question #660197 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660197

Status: Answered => Solved

Max 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 #660197]: JAR or EXE file from Sikuli python script

2017-11-01 Thread Max
Question #660197 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660197

Status: Solved => Open

Max is still having a problem:
Just a clarification to fully understand.

When you said "Of course you can create a fat jar including
sikulixapi.jar", so in that case I create the big package using the
sikulixapi.jar in my system + my java code, then I can distribute and
run this big java package to any pc without running the setup on those
systems, right?

Thank you again!!!

-- 
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 #660197]: JAR or EXE file from Sikuli python script

2017-11-01 Thread Max
Question #660197 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660197

Status: Answered => Solved

Max 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 #660197]: JAR or EXE file from Sikuli python script

2017-11-01 Thread Max
Question #660197 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660197

Status: Answered => Open

Max is still having a problem:
What if I write my code in java and I include all the classes like this:

import org.sikuli.script.*;

public class TestSikuli {

public static void main(String[] args) {
Screen s = new Screen();
try{
s.click("imgs/spotlight.png", 0);
}
catch(FindFailed e){
e.printStackTrace();
}

}

}

Then I create a jar package. Also in that case I need to use sikulix.jar
to run my jar? In answer #4, the thing I want to bypass (if possible) is
to run the setup.jar in each pc. I wanted to use a standalone solution
that does not require any setup.

-- 
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 #660197]: JAR or EXE file from Sikuli python script

2017-11-01 Thread Max
Question #660197 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660197

Status: Answered => Open

Max is still having a problem:
Thanks for the answers!

Is there a "standalone" sikuli jar or exe to execute sikuli scripts? I mean, I 
think I cannot install any software in other machines but I can download like a 
jar package or exe.
 
Sorry for the question but I'm completely new with 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 #660197]: JAR or EXE file from Sikuli python script

2017-10-31 Thread Max
New question #660197 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660197

I just started doing some scripts with Sikuli in python.

I would like to know if it's possible (and if yes, how) to create a jar or exe 
file from my python script (file .py and images).

I would like to easily run my program from other machines that do not have 
sikuli install (e.g., java -jar my_script.jar or my_script.exe) or give the 
utility to some colleagues, but I don't want that they see the source code.

I tried to follow this link but did not work -> 
https://wiki.python.org/jython/JythonFaq/DistributingJythonScripts

Thank you for your help!!!

-- 
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 #254203]: Hotkey Listener overrides hotkey use (ctrl-c)

2014-09-09 Thread Max
Question #254203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254203

Max posted a new comment:
I tried the first one first, didn't work so well, I will check again
with both solutions when I get back from work or maybe at lunch. It
could possibly be a little problematic because I'm in my example
actually physically pressing ctrl + c the same time, I think that's
maybe why the delays and timing seem so critical. I'm on Ubuntu 14.04.

-- 
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 #254203]: Hotkey Listener overrides hotkey use

2014-09-08 Thread Max
New question #254203 on Sikuli:
https://answers.launchpad.net/sikuli/+question/254203

I'm trying to write a java program that can listen when a user copies a text 
like this:

String key = c;
int modifiers = KeyModifier.CTRL;

HotkeyListener listener = new HotkeyListener() {
@Override
public void hotkeyPressed(HotkeyEvent hotkeyEvent) {
copyListener.executeCopy();
}
};

HotkeyManager.getInstance().addHotkey(key, modifiers, listener);

My problem is that this code overrides the global hotkey so that nothing is 
actually copied to clipboard when I press ctrl + c (when I get result from 
clipboard I only get what I copied before running this program, it works fine 
when I'm not using this hotkeylistener though). Is it possible to let the user 
copy text with ctrl + c and just listen to the event without intercepting it, 
or somehow place the selected text in clipboard?

-- 
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 #254203]: Hotkey Listener overrides hotkey use

2014-09-08 Thread Max
Question #254203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254203

Status: Answered = Open

Max is still having a problem:
Which class is that in?

-- 
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 #254203]: Hotkey Listener overrides hotkey use

2014-09-08 Thread Max
Question #254203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254203

Status: Answered = Solved

Max confirmed that the question is solved:
I ended up using java.awt.Robot, works as I'd like it to now. Thanks for
the answers though!

final HotkeyListener listener = new HotkeyListener() {
@Override
public void hotkeyPressed(HotkeyEvent hotkeyEvent) {
try {
HotkeyManager.getInstance().removeHotkey(key, modifiers);
Robot robot = new Robot();
robot.keyPress(KeyEvent.CTRL_DOWN_MASK);
robot.delay(100);
robot.keyPress(KeyEvent.VK_C);
robot.delay(50);
robot.keyRelease(KeyEvent.VK_C);
robot.delay(100);
robot.keyRelease(KeyEvent.CTRL_DOWN_MASK);
robot.delay(1000);
copyListener.executeCopy();
HotkeyManager.getInstance().addHotkey(key, modifiers, this);
} catch (AWTException e) {
e.printStackTrace();
}
}
};

A bit tricky playing around with the delays, but it doesn't need to be
fast so it's fine

-- 
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 #253723]: How to Create a Repeatable Loop

2014-08-28 Thread max
Question #253723 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253723

Status: Answered = Solved

max confirmed that the question is solved:
Thank you this works

while True: # loop forever
if exists(image, 0):
click(some_image)
wait(5)

I will just open task manager and find the java process to manually
abort when I want it to stop.

Thanks a bunch

-- 
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 #253723]: How to Create a Repeatable Loop

2014-08-27 Thread max
New question #253723 on Sikuli:
https://answers.launchpad.net/sikuli/+question/253723

Hi, I just downloaded Sikuli 2 days ago. The Language and constructs are all 
very new to me, but the potential of this type of program is great. I have a 
very simple question.

I have a program that runs overnight on my computer, but within the program the 
publisher has some unavoidable pop-ups that must be clicked on to the close or 
else the program is stagnant until I awake in the morning. 

I attempted to make a Sikuli script to recognize a unique image within the 
pop-ups and then click to close the pop-up. The script works, but it only works 
for 1 occurrence. I want it to run continuously overnight to close the pop-ups 
as they appear several times during the night.

Here is the script I wrote
1) wait (image, FOREVER)
2) click (image)

Right now once it clicks to close the pop-up, the sikuli program stops. 
I would like it to Wait until the Image appears
then to perform the function of clicking to close the pop-up
then to go back to waiting until the next time the pop-up appears
to perform the function of clicking to close again
repeat
repeat
and so on 

-- 
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 #253723]: How to Create a Repeatable Loop

2014-08-27 Thread max
Question #253723 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253723

Description changed to:
Hi, I just downloaded Sikuli 2 days ago. The Language and constructs are
all very new to me, but the potential of this type of program is great.
I have a very simple question.

I have a program that runs overnight on my computer, but within the
program the publisher has some unavoidable pop-ups that must be clicked
to close or else the program is stagnant all night until I awake in the
morning.

I attempted to make a Sikuli script to recognize a unique image within
the pop-ups and then click to close the pop-up. The script works, but it
only works for 1 occurrence. I want it to run continuously overnight to
close the pop-ups as they appear several times during the night.

Here is the script I wrote
1) wait (image, FOREVER)
2) click (image)

Right now once it clicks to close the pop-up, the sikuli program stops. 
I would like it to Wait until the Image appears
then to perform the function of clicking to close the pop-up
then to go back to waiting until the next time the pop-up appears
to perform the function of clicking to close again
repeat
repeat
and so on

-- 
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 #253723]: How to Create a Repeatable Loop

2014-08-27 Thread max
Question #253723 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/253723

Description changed to:
Hi, I just downloaded Sikuli 2 days ago. The Language and constructs are
all very new to me, I am not familiar with programming code. But the
potential of this type of program is great for me, if I can learn it.
For now, I have a very simple question.

I have a program that runs overnight on my computer, but within the
program the publisher has some unavoidable pop-ups that must be clicked
to close or else the program is stagnant all night until I awake in the
morning.

I attempted to make a Sikuli script to recognize a unique image within
the pop-ups and then click to close the pop-up. The script works, but it
only works for 1 occurrence. I want it to run continuously overnight to
close the pop-ups as they appear several times during the night.

Here is the script I wrote
1) wait (image, FOREVER)
2) click (image)

Right now once it clicks to close the pop-up, the sikuli program stops. 
I would like it to Wait until the Image appears
then to perform the function of clicking to close the pop-up
then to go back to waiting until the next time the pop-up appears
to perform the function of clicking to close again
repeat
repeat
and so on

-- 
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 #250510]: Unhiding Sikuli while script running?

2014-06-20 Thread max
New question #250510 on Sikuli:
https://answers.launchpad.net/sikuli/+question/250510

My script works great, except I want it running once a day, so I added a while 
true loop. However, the Sikuli IDE window closes, and so I can't see any output 
nor can I stop the script if I want to...

There must be a way to show Sikuli in the system tray or something, no?

-- 
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 #235769]: Always Prompt: FindFailed: can not find *.png on the screen

2013-09-18 Thread max
Question #235769 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235769

max posted a new comment:
The name of png is the one in test.py, so I think is may not be
inconsistent problem.

-- 
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 #235769]: Always Prompt: FindFailed: can not find *.png on the screen

2013-09-18 Thread max
Question #235769 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235769

max posted a new comment:
FIles in test.sikuli folder:

1379331036687.png
test.html
test.py

The content of test.py:

click(1379331036687.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 #235769]: Always Prompt: FindFailed: can not find *.png on the screen

2013-09-18 Thread max
Question #235769 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235769

Status: Answered = Solved

max confirmed that the question is solved:
Hi RaiMan,
I download a new version of sikuli, it runs normally,  but I am still very 
grateful to you.


Good luck~

-- 
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 #235769]: Always Prompt: FindFailed: can not find *.png on the screen

2013-09-17 Thread max
Question #235769 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235769

max posted a new comment:
Yes, I can save the script as test.py, and there is the *.png image
in test.sikuli folder,

-- 
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 #235769]: Always Prompt: FindFailed: can not find *.png on the screen

2013-09-16 Thread max
Question #235769 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235769

Description changed to:
Hello,
This is max, I met one problem about using sikuli, so I need your help.
I use sikuli on Windows 32-Bit, and I can capture image on my screen, but when 
I try to run scripts, it always prompts FindFailed: can not find *.png on the 
screen, actually the image is on my screen and I can see it though my eyes, I 
don't know where is wrong. Please help me to resolve it.

java version on my system is 6.0


Hope to here from you ASAP.

Thank u.

-- 
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 #235769]: Always Prompt: FindFailed: can not find *.png on the screen

2013-09-16 Thread max
Question #235769 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235769

max posted a new comment:
Hi RaiMan,
Sikuli-X-1.0rc3 (r905)-win32.zip

And my system version is Window XP home

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


[Sikuli-driver] [Question #173515]: Compatibility on Windows XP

2011-10-07 Thread Max Lau
New question #173515 on Sikuli:
https://answers.launchpad.net/sikuli/+question/173515

I am using Windows XP to start Sikuli X-1.0rc3 (r905).
I can launch the program successfully, but I cannot take any screenshots or 
even run my scripts.

The version of my Java Platform is 6 Update 7 (Build 1.6.0_07-b06).


How can I get Sikuli working on my windows??

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