[Sikuli-driver] [Bug 1830592] [NEW] End key misoperation in last IDE text line

2019-05-27 Thread Alex Lunyov
Public bug reported:

Hi!

Using SikuliX 1.1.4 build# 288. Windows 10.

The key END operates like LEFT key when typing in the very last line in
the IDE editor. Typing END in any other line works as expected.

** 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/1830592

Title:
  End key misoperation in last IDE text line

Status in Sikuli:
  New

Bug description:
  Hi!

  Using SikuliX 1.1.4 build# 288. Windows 10.

  The key END operates like LEFT key when typing in the very last line
  in the IDE editor. Typing END in any other line works as expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1830592/+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 #669204]: Hang Sikuli on minimizing

2018-05-18 Thread Alex Lunyov
Question #669204 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/669204

Status: Answered => Solved

Alex Lunyov confirmed that the question is solved:
Thanks a lot! Now it works fine, on Java 10 + SikuliX 1.1.3.

-- 
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 1750498] Re: [1.1.2] Can't add hotkey without modifier --- fixed 2018-02-20 build #112

2018-02-21 Thread Alex Lunyov
Now it works well, thank you!

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

Title:
  [1.1.2] Can't add hotkey without modifier --- fixed 2018-02-20 build
  #112

Status in Sikuli:
  Fix Committed

Bug description:
  Hi!

  There is an issue in the last Feb 2018 1.1.2 nightly version. Hotkey
  problem.

  My code:

  ###
  def Handl(event):
  print 123

  Env.addHotkey(Key.F10, 0, Handl)

  while True:
  wait(0.1)
  ###

  Console output:

  [info] HotkeyManager: add Hotkey: F10 (121, 0)
  [error] HotkeyManager: addHotkey: failed

  [error] script [ Безымянный ] stopped with error at line --unknown--
  [error] Error caused by: Traceback (most recent call last): File 
"C:\Users\Lunyov\AppData\Local\Temp\Sikulix_164905349\sikuli-7323448507405961629.py",
 line 7, in  File 
"C:\Users\Lunyov\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 67, in 
wait java.lang.ThreadDeath
  at java.lang.Thread.stop(Unknown Source)
  at org.sikuli.ide.SikuliIDE$ButtonRun.stopRunScript(SikuliIDE.java:2598)
  at org.sikuli.ide.SikuliIDE.onStopRunning(SikuliIDE.java:2945)
  at org.sikuli.ide.SikuliIDE$13.hotkeyPressed(SikuliIDE.java:2936)
  at 
org.sikuli.hotkey.HotkeyController$HotKeyListenerWrapper.onHotKey(HotkeyController.java:155)
  at com.tulskiy.keymaster.common.Provider$HotKeyEvent.run(Provider.java:148)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  java.lang.ThreadDeath: java.lang.ThreadDeath

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1750498/+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 1750498] [NEW] Can't add hotkey in the last 1.1.2 nightly

2018-02-19 Thread Alex Lunyov
Public bug reported:

Hi!

There is an issue in the last Feb 2018 1.1.2 nightly version. Hotkey
problem.

My code:

###
def Handl(event):
print 123

Env.addHotkey(Key.F10, 0, Handl)

while True:
wait(0.1)
###

Console output:

[info] HotkeyManager: add Hotkey: F10 (121, 0)
[error] HotkeyManager: addHotkey: failed

[error] script [ Безымянный ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File 
"C:\Users\Lunyov\AppData\Local\Temp\Sikulix_164905349\sikuli-7323448507405961629.py",
 line 7, in  File 
"C:\Users\Lunyov\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 67, in 
wait java.lang.ThreadDeath
at java.lang.Thread.stop(Unknown Source)
at org.sikuli.ide.SikuliIDE$ButtonRun.stopRunScript(SikuliIDE.java:2598)
at org.sikuli.ide.SikuliIDE.onStopRunning(SikuliIDE.java:2945)
at org.sikuli.ide.SikuliIDE$13.hotkeyPressed(SikuliIDE.java:2936)
at 
org.sikuli.hotkey.HotkeyController$HotKeyListenerWrapper.onHotKey(HotkeyController.java:155)
at com.tulskiy.keymaster.common.Provider$HotKeyEvent.run(Provider.java:148)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.ThreadDeath: java.lang.ThreadDeath

** 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/1750498

Title:
  Can't add hotkey in the last 1.1.2 nightly

Status in Sikuli:
  New

Bug description:
  Hi!

  There is an issue in the last Feb 2018 1.1.2 nightly version. Hotkey
  problem.

  My code:

  ###
  def Handl(event):
  print 123

  Env.addHotkey(Key.F10, 0, Handl)

  while True:
  wait(0.1)
  ###

  Console output:

  [info] HotkeyManager: add Hotkey: F10 (121, 0)
  [error] HotkeyManager: addHotkey: failed

  [error] script [ Безымянный ] stopped with error at line --unknown--
  [error] Error caused by: Traceback (most recent call last): File 
"C:\Users\Lunyov\AppData\Local\Temp\Sikulix_164905349\sikuli-7323448507405961629.py",
 line 7, in  File 
"C:\Users\Lunyov\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 67, in 
wait java.lang.ThreadDeath
  at java.lang.Thread.stop(Unknown Source)
  at org.sikuli.ide.SikuliIDE$ButtonRun.stopRunScript(SikuliIDE.java:2598)
  at org.sikuli.ide.SikuliIDE.onStopRunning(SikuliIDE.java:2945)
  at org.sikuli.ide.SikuliIDE$13.hotkeyPressed(SikuliIDE.java:2936)
  at 
org.sikuli.hotkey.HotkeyController$HotKeyListenerWrapper.onHotKey(HotkeyController.java:155)
  at com.tulskiy.keymaster.common.Provider$HotKeyEvent.run(Provider.java:148)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  java.lang.ThreadDeath: java.lang.ThreadDeath

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1750498/+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] [Question #660623]: type('`') odd behaviour II

2017-11-11 Thread Alex Lunyov
New question #660623 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660623

Well, I still need help.

I noticed such strange thing:

type('`') is dependent on _current_ layout before the run button is pressed.

I made a test:

for i in range(10):
try:
type('`')  # backquote typing
except:
print "error"
wait(1)

I set layout to English and run the script. During 10 seconds I change the 
layout manually and see typing of backquotes and other symbol corresponding the 
key '`'.

Then I set layout to Cyrillic and run the script. I see nothing is typed though 
I change the layout to English and back etc. during that 10 seconds.  And after 
10 seconds I see 10 "error" printings.

So, how could I make my script layout independent?

P.S. and type('d') for example is initial-layout independent.

-- 
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 #660608]: type('`') odd behaviour

2017-11-11 Thread Alex Lunyov
Question #660608 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660608

Status: Open => Solved

Alex Lunyov confirmed that the question is solved:
OK, I've just resolved the problem. Nothing strange, in fact I use two
layouts and while I run script in English layout the keystroke is
correct. Otherwise it is invalid. So, I have to check the correct layout
before I run the script.

-- 
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 #660608]: type('`') odd behaviour

2017-11-11 Thread Alex Lunyov
New question #660608 on Sikuli:
https://answers.launchpad.net/sikuli/+question/660608

Hi,

here is some addition to "type invalid key code" questions collection on 
Launchpad. May be a bug.

So, when I just started IDE and executed simple code:

 type('`')  # there is one key to type, backquote (backtick), that belongs 
to American QWERTY layout

I got such an error:

*
[log] TYPE "`"
[error] script [ Безымянный ] stopped with error in line 1
[error] java.lang.IllegalArgumentException ( 
java.lang.IllegalArgumentException: Invalid key code )
*

Next, I corrected the command:

 type(u'`')

and got no errors:

*
[log] TYPE "`"
*

And at last, I deleted unicode prefix and there were no errors again.

Can't understand.

I use latest 1.1.2 nightly version of 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 #657922]: Is there a way to get the highest match score of a failed Region.exists() call?

2017-09-13 Thread Alex Lunyov
Question #657922 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657922

Alex Lunyov proposed the following answer:
You could use method getScore() for a match result in case it is not
None.

So, the following code will show you a digit between 0 and 1, where 0
corresponds to "no match" result and 1 to exactly match result:

res = some_reg.exists(some_img)
try:
 print res.getScore()
except AttributeError:
 print 0.

-- 
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 #657192]: Key Attribute of Function key in keyboard

2017-09-06 Thread Alex Lunyov
Question #657192 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657192

Status: Open => Answered

Alex Lunyov proposed the following answer:
It seems that key stroke could be lost in other application than target.
Check please.

-- 
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 #657137]: region search work slower

2017-09-05 Thread Alex Lunyov
Question #657137 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657137

Alex Lunyov posted a new comment:
OK! Be aware of different visual effects like Aero on Windows 7,
transparency effects that your OS uses to display messages etc. A short
wait(...) before searching the pattern could be very useful in this
case. Both you could change Settings.AutoWaitTimeout constant (default
is 3 sec).

Read also this manual:
http://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=autowaittimeout#Region.setAutoWaitTimeout

-- 
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 #657179]: Current popup window remains in the tray after breaking

2017-09-04 Thread Alex Lunyov
Question #657179 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657179

Alex Lunyov gave more information on the question:
+  The same issue on Win 10, (previous 1.1.2 version). This is the old
problem, was on 1.1.1 versions.

-- 
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 #657137]: region search work slower

2017-09-04 Thread Alex Lunyov
Question #657137 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657137

Alex Lunyov posted a new comment:
Please, do some additional pure tests on your computer to ensure, using
this commands:

start = time.time() # at the beginning of your test
... # your script
duration = time.time() - start # at the end of your test

print duration () # will show the test duration

-- 
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 #657137]: region search work slower

2017-09-04 Thread Alex Lunyov
Question #657137 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657137

Alex Lunyov posted a new comment:
I suppose the construction reg.exists(img, 0) inside the loop with some
reasonable delay is better than construction reg.exists(img) that
performs search operation in the region during 3 sec (by default)
because it is easier for the system to check once and wait some time
than to check continuously during 3 sec. You'll soon find the most
appropriate way for each of your current tasks.

-- 
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 #657137]: region search work slower

2017-09-01 Thread Alex Lunyov
Question #657137 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657137

Status: Open => Answered

Alex Lunyov proposed the following answer:
Hm, it should work faster in case you use static visual objects and correct 
regions. 
By the way, region object keeps the last match result and there is no need to 
search again:

   # this is clearer:
   reg.wait(img)
   reg.click(img)  

   # this is better:
   reg.wait(img)
   reg.click()  

if it was successful (visual object is in your region), the region
remember click point of the visual object in it and reg.click()
operation results in clicking on that object. But in case the previous
search operation in that region gave no result reg.click() operation
clicks in the region center.

All main features are explained 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


Re: [Sikuli-driver] [Question #657179]: Current popup window remains in the tray after breaking

2017-08-31 Thread Alex Lunyov
Question #657179 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/657179

Alex Lunyov gave more information on the question:
In addition: I'm using Win 7-64 bit, SikuliX 1.1.2 the last July 2017
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


[Sikuli-driver] [Question #657179]: Current popup window remains in the tray after breaking

2017-08-31 Thread Alex Lunyov
New question #657179 on Sikuli:
https://answers.launchpad.net/sikuli/+question/657179

Current popup window remains in the tray after breaking (Shift+Alt+C) the main 
process and pressing OK button on the popup window.

So, a lot of such remains one can see in the tray after several breaking 
actions.

In other words I press shift+alt+с when I see a popup, then press OK in the 
popup window to take it away. But it is still shown in the tray as "dot-sized 
window", as it seems.

I'd like Sikuli to kill not only the main process but also all its threads 
without any remains while pressing shift+alt+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 #454275]: Loading and reloading scripts shows or doesn't show images

2017-03-16 Thread Alex Lunyov
Question #454275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/454275

Alex Lunyov posted a new comment:
The second advice resolved my issue! :)

-- 
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 #454275]: Loading and reloading scripts shows or doesn't show images

2017-03-16 Thread Alex Lunyov
Question #454275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/454275

Alex Lunyov posted a new comment:
*shortly speaking, I use this key combination instead of using image-
capture button because the IDE window screens my visual targets while
capturing mode is running.

-- 
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 #454275]: Loading and reloading scripts shows or doesn't show images

2017-03-15 Thread Alex Lunyov
Question #454275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/454275

Alex Lunyov posted a new comment:
Yes, RaiMan, I've tested, this works well.
Some related problem (just to let you know if it is a bug).

On Windows 7: I press the image-capture button and my IDE with script text 
disappeares and I see my visual targets to be used in the script.
On Windows 10: I do the same, but IDE window doesn't dissappear, it disturbes. 
I need to use ctrl+shift+2 combination to capture image from the target 
applications.

-- 
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 #454275]: Loading and reloading scripts shows or doesn't show images

2017-03-15 Thread Alex Lunyov
Question #454275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/454275

Alex Lunyov posted a new comment:
@RaiMan, thanks!

-- 
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 #454275]: Loading and reloading scripts shows or doesn't show images

2017-03-15 Thread Alex Lunyov
Question #454275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/454275

Alex Lunyov posted a new comment:
Ok!

-- 
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 #454275]: Loading and reloading scripts shows or doesn't show images

2017-03-15 Thread Alex Lunyov
Question #454275 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/454275

Alex Lunyov posted a new comment:
Hi, it's nice to come back here (would like report some possible bugs).
So, I updated my Sikuli to 1.1.1 2017-03-03 and I noticed that updating
images didn't work as expected (as it had worked before).

1. I create some image visual:

img = "img.png"# using screen-capture button

2. Then I decide to change this image, type Backspace to delete old
image:

img = # img.png should be deleted, shouldn't it?

3. I choose another part of the screen using screen-capture button :

img = "img.png" #

Surprisingly I see my _old image_ instead of the new one. But when I
save the project and reopen it in Sikuli IDE I do see the new image.

-- 
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 #411717]: can't repeat function inside while True

2016-12-24 Thread Alex Lunyov
Question #411717 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/411717

Status: Open => Answered

Alex Lunyov proposed the following answer:
At first check the breaking condition of ABC() infinite cycle. Check
using of global and local variables in "Mainloop" and ABC loop.

-- 
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 #406805]: Script fail without proper message

2016-12-21 Thread Alex Lunyov
Question #406805 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406805

Status: Open => Answered

Alex Lunyov proposed the following answer:
For example:

button_OK_img = Pattern(mybuttonOK.png).similar(0.85)  # this could just
be a picture you paste in your script using sikuli tools

button_OK_reg = Region(100, 123, 30, 20)# this is a
region on the screen where 30 × 20 px word "OK" on a button is expected
to appear at some moment.

than you use:

button_OK_reg.wait(button_OK_img, FOREVER)

Sikuli will stop and wait forever (till you turn off the computer or
interrupt the workflow manually) for the OK button in the place where it
should appear.

-- 
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 #406805]: Script fail without proper message

2016-12-21 Thread Alex Lunyov
Question #406805 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406805

Alex Lunyov posted a new comment:
*then you use...
sorry for misprint

-- 
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 #406805]: Script fail without proper message

2016-12-21 Thread Alex Lunyov
Question #406805 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406805

Status: Open => Answered

Alex Lunyov proposed the following answer:
It seems your script fails while waiting for 1480419928033.png in
doubleClick function after type(Key.ENTER) was successfully passed. That
is usually a problem of system GUI response, that in some cases don't
perform all key actions as you expect. You should better use waiting
constructions like

gui_element_region.wait(gui_element_subpicture, wait_time)

where gui_element_subpicture is little piece of expected element to be
acted on (20 × 20 pixels or so), gui_element_region is a rectangular
region where the subpicture is expected to appear, wait_time is
appropriate time, could be for example FOREVER = wait forever. Use SHOW
button to get the region according to the captured image and use
region.grow(2..5 pixels) to enlarge regions where Sikuli looks for the
subpic.

So you could always be sure your script clicks on appropriate GUI
elements. In most cases :)

-- 
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 #406805]: Script fail without proper message

2016-12-19 Thread Alex Lunyov
Question #406805 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406805

Status: Open => Needs information

Alex Lunyov requested more information:
How do you see it fails? What happens? You have shown only function
definitions, but it would better to give also their call points in your
script (the part of your script where assigndata and assignfunction are
called).

-- 
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 #406560]: Hotkey modifiers don't work correctly & F12 hotkey problem

2016-12-08 Thread Alex Lunyov
Question #406560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406560

Alex Lunyov posted a new comment:
I have checked and now it works as described in the docs, 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 #406560]: Hotkey modifiers don't work correctly & F12 hotkey problem

2016-12-08 Thread Alex Lunyov
Question #406560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406560

Alex Lunyov 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 #406560]: Hotkey modifiers don't work correctly & F12 hotkey problem

2016-12-08 Thread Alex Lunyov
Question #406560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406560

Alex Lunyov posted a new comment:
Ok, RaiMan, I'll then check a new build.

-- 
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 #406560]: Hotkey modifiers don't work correctly & F12 hotkey problem

2016-12-07 Thread Alex Lunyov
Question #406560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406560

Description changed to:
I've made some tests on last 1.1.1 (Win7-64) and revealed the following
thing in using Env.addHotkey function:

#1. There is a little mess with key modifier using in addHotkey, for
example:

 Env.addHotkey(Key.F11, KeyModifier.CTRL, handler) # 
works as expected
 Env.addHotkey(Key.F11, KEY_CTRL, handler)  
  # works as expected too
 Env.addHotkey(Key.F11, Key.CTRL, handler)  
   # fails

 # another example:

 Env.addHotkey(Key.F11, KeyModifier.WIN, handler)  # 
doesn't fail but doesn't work as expected 
 Env.addHotkey(Key.F11, KEY_WIN, handler)   
   # works as expected
 Env.addHotkey(Key.F11, Key.WIN, handler)   
# fails

This needs to be standardized (an issue with obsolete constants). Also
in removeHotkey function, I suppose.

#2.
 Env.addHotkey(Key.F12, 0, handler)# 
see below

This is passed but generally doen't work on Windows. The solution is to
change system debugger hotkey in the registry:
HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AeDebug\UserDebuggerHotKey from 0 to any suitable
value (0x2F for example), then reboot; this will turn off the debugger
hotkey F12 and release this key to use as Sikuli hotkey.

Also SHIFT+F12 hotkey can't be set without registry tweaking. But
CTRL+F12 can be successfully set, I did it on my Windows 7 machine.

-- 
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 #406560]: Hotkey modifiers don't work correctly & F12 hotkey problem

2016-12-07 Thread Alex Lunyov
Question #406560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406560

Summary changed to:
Hotkey modifiers don't work correctly & F12 hotkey problem

Description changed to:
I've made some tests on last 1.1.1 (Win7-64) and revealed the following
thing in using Env.addHotkey function:

#1. There is a little mess with key modifier using in addHotkey, for
example:

 Env.addHotkey(Key.F11, KeyModifier.CTRL, handler) # 
works as expected
 Env.addHotkey(Key.F11, KEY_CTRL, handler)  
  # works as expected too
 Env.addHotkey(Key.F11, Key.CTRL, handler)  
   # fails

 # another example:

 Env.addHotkey(Key.F11, KeyModifier.WIN, handler)  # 
doesn't fail but doesn't work as expected 
 Env.addHotkey(Key.F11, KEY_WIN, handler)   
   # works as expected
 Env.addHotkey(Key.F11, Key.WIN, handler)   
# fails

This needs to be standardized. Also in removeHotkey function, I suppose.

#2.
 Env.addHotkey(Key.F12, 0, handler)# 
see below

This is passed but doen't work on Windows. The solution is to change
system debugger hotkey in the registry: HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AeDebug\UserDebuggerHotKey from 0 to any suitable
value (0x2F for example), that will turn off the debugger hotkey F12 and
release this key to use as Sikuli hotkey.

Also SHIFT+F12 hotkey can't be set without registry tweaking. But
CTRL+F12 can be successfully set, I did it on my Windows 7 machine.

-- 
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 #406560]: Hotkey modifiers don't work correctly & F12 hotkey problem

2016-12-07 Thread Alex Lunyov
Question #406560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406560

Description changed to:
I've made some tests on last 1.1.1 (Win7-64) and revealed the following
thing in using Env.addHotkey function:

#1. There is a little mess with key modifier using in addHotkey, for
example:

 Env.addHotkey(Key.F11, KeyModifier.CTRL, handler) # 
works as expected
 Env.addHotkey(Key.F11, KEY_CTRL, handler)  
  # works as expected too
 Env.addHotkey(Key.F11, Key.CTRL, handler)  
   # fails

 # another example:

 Env.addHotkey(Key.F11, KeyModifier.WIN, handler)  # 
doesn't fail but doesn't work as expected 
 Env.addHotkey(Key.F11, KEY_WIN, handler)   
   # works as expected
 Env.addHotkey(Key.F11, Key.WIN, handler)   
# fails

This needs to be standardized. Also in removeHotkey function, I suppose.

#2.
 Env.addHotkey(Key.F12, 0, handler)# 
see below

This is passed but generally doen't work on Windows. The solution is to
change system debugger hotkey in the registry:
HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AeDebug\UserDebuggerHotKey from 0 to any suitable
value (0x2F for example), that will turn off the debugger hotkey F12 and
release this key to use as Sikuli hotkey.

Also SHIFT+F12 hotkey can't be set without registry tweaking. But
CTRL+F12 can be successfully set, I did it on my Windows 7 machine.

-- 
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 #406560]: Hotkey modifiers don't work correctly & F12 hotkey problem

2016-12-07 Thread Alex Lunyov
Question #406560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406560

Description changed to:
I've made some tests on last 1.1.1 (Win7-64) and revealed the following
thing in using Env.addHotkey function:

#1. There is a little mess with key modifier using in addHotkey, for
example:

 Env.addHotkey(Key.F11, KeyModifier.CTRL, handler) # 
works as expected
 Env.addHotkey(Key.F11, KEY_CTRL, handler)  
  # works as expected too
 Env.addHotkey(Key.F11, Key.CTRL, handler)  
   # fails

 # another example:

 Env.addHotkey(Key.F11, KeyModifier.WIN, handler)  # 
doesn't fail but doesn't work as expected 
 Env.addHotkey(Key.F11, KEY_WIN, handler)   
   # works as expected
 Env.addHotkey(Key.F11, Key.WIN, handler)   
# fails

This needs to be standardized. Also in removeHotkey function, I suppose.

#2.
 Env.addHotkey(Key.F12, 0, handler)# 
see below

This is passed but generally doen't work on Windows. The solution is to
change system debugger hotkey in the registry:
HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\AeDebug\UserDebuggerHotKey from 0 to any suitable
value (0x2F for example), then reboot; this will turn off the debugger
hotkey F12 and release this key to use as Sikuli hotkey.

Also SHIFT+F12 hotkey can't be set without registry tweaking. But
CTRL+F12 can be successfully set, I did it on my Windows 7 machine.

-- 
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 #406560]: Hotkey modifiers doen't work correctly & F12 hotkey problem

2016-12-07 Thread Alex Lunyov
New question #406560 on Sikuli:
https://answers.launchpad.net/sikuli/+question/406560

I've made some tests on last 1.1.1 (Win7-64) and revealed the following thing 
in using Env.addHotkey function:

#1. There a little mess with key modifier using in addHotkey, for example:

 Env.addHotkey(Key.F11, KeyModifier.CTRL, handler) # 
works as expected
 Env.addHotkey(Key.F11, KEY_CTRL, handler)  
  # works as expected too
 Env.addHotkey(Key.F11, Key.CTRL, handler)  
   # fails

# another example:

 Env.addHotkey(Key.F11, KeyModifier.WIN, handler)  # 
doesn't fail but doesn't work as expected 
 Env.addHotkey(Key.F11, KEY_WIN, handler)   
   # works as expected
 Env.addHotkey(Key.F11, Key.WIN, handler)   
# fails

This needs to be standardized. Also in removeHotkey function, I suppose.

#2.
 Env.addHotkey(Key.F12, 0, handler)# 
see below

This is passed but doen't work on Windows. The solution is to change system 
debugger hotkey in the registry: HKLM\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\AeDebug\UserDebuggerHotKey from 0 to any suitable value (0x2F 
for example), that will turn off the debugger hotkey F12 and release this key 
to use as Sikuli hotkey.

Also SHIFT+F12 hotkey can't be set without registry tweaking. But CTRL+F12 can 
be successfully set, I did it on my Windows 7 machine.

-- 
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 #404622]: Loop Click on images

2016-12-04 Thread Alex Lunyov
Question #404622 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404622

Status: Open => Answered

Alex Lunyov proposed the following answer:
On last nightly 1.1.1 works well. It could depend on image similarity
setting also.

-- 
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 #404549]: Extract a value from a tooltip which is a part of the flash application?

2016-12-01 Thread Alex Lunyov
Question #404549 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404549

Status: Open => Needs information

Alex Lunyov requested more information:
The possible solution depends upon the time period while the tooltip is
visible, upon the type of information you expect to get from the tooltip
(it could be a set of pics to detect the kind of tooltip to make a
desicion or the text value of tooltip itself to use this text in your
script). Please, give more information.

-- 
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 1646399] [NEW] select() can't set default=0; can't set default=

2016-12-01 Thread Alex Lunyov
Public bug reported:

#1
select(mytxt, options=mylist, default=0)

throws an error: «Error source first line: module ( function ) statement
433: Sikuli ( select ) TypeError: popSelect(): 4th arg can't be coerced
to String».

The first line as default is expected.

#2 It is convenient to set default value both as a string and as an item
number. But when I use unicode string as a default value, select()
always sets default=0 (=first line):

select(mytxt, options=mylist, default=u"пункт №3") # default=0 actually

** 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/1646399

Title:
  select() can't set default=0; can't set default=

Status in Sikuli:
  New

Bug description:
  #1
  select(mytxt, options=mylist, default=0)

  throws an error: «Error source first line: module ( function )
  statement 433: Sikuli ( select ) TypeError: popSelect(): 4th arg can't
  be coerced to String».

  The first line as default is expected.

  #2 It is convenient to set default value both as a string and as an
  item number. But when I use unicode string as a default value,
  select() always sets default=0 (=first line):

  select(mytxt, options=mylist, default=u"пункт №3") # default=0
  actually

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1646399/+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 #404499]: How can I register the spend time step by step?

2016-11-29 Thread Alex Lunyov
Question #404499 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404499

Alex Lunyov posted a new comment:
*then convert...

-- 
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 #404499]: How can I register the spend time step by step?

2016-11-29 Thread Alex Lunyov
Question #404499 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404499

Status: Open => Answered

Alex Lunyov proposed the following answer:
It seems this Python module could help you: 
https://docs.python.org/2/library/datetime.html
You could record the timestamps at different moments and than convert the 
differences into the human-readable times.

-- 
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 #404238]: [1.1.0+] HowTo use Region.observe()

2016-11-21 Thread Alex Lunyov
Question #404238 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404238

Alex Lunyov posted a new comment:
@Raiman, the code example in onChanged part of the docs doesn't work in 1.1.1 
and some previous nightly versions. It returns error "[error] TypeError ( 
observe(): takes no keyword arguments )". It was a problem to use observer in 
background (now solved with JRegion workaround).
Thanks for the renaming to make the questions clearer!

-- 
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 #404238]: Error Observe sikuli 1.1.1

2016-11-21 Thread Alex Lunyov
Question #404238 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404238

Alex Lunyov posted a new comment:
Yes, and it seems the title of that question is not proper. May be this
is better: "Java region problem in observer (Sikuli 1.1.1)".
"stopObserver" is not a subject.

-- 
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 #404001]: stopObserver() doesn't work

2016-11-21 Thread Alex Lunyov
Question #404001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404001

Alex Lunyov posted a new comment:
@spyros-liakos, ;) we do all the best to help each other here.

-- 
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 #404001]: stopObserver() doesn't work

2016-11-13 Thread Alex Lunyov
Question #404001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404001

Alex Lunyov posted a new comment:
OK, I looked more closely the docs, tried the example and found out that
adding the line

reg = JRegion(reg)

solved my problem at last. I don't know Java, this line was written on
the off-chance. :)

That's curious that these lines produce different kinds of Region (Java
and Python?):

reg = Region(x,y,w,h)  # this doesn't work in observer
reg = selectRegion("select a region to observe") # this works in observer

But print(reg) gives in both cases "R[x,y wxh]@S(0) E:Y, T:3,0" where
one can't see the difference between Java and Python level Region (hope
this is right terminology).

My problem seems to be solved but I need some time to check.

-- 
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 #404041]: Compare two colors

2016-11-13 Thread Alex Lunyov
Question #404041 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404041

Status: Open => Answered

Alex Lunyov proposed the following answer:
Hm, they are not equal, see green components are different.

-- 
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 #404001]: stopObserver() doesn't work

2016-11-13 Thread Alex Lunyov
Question #404001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404001

Alex Lunyov gave more information on the question:
The same problem, hundreds of lines "File "C:\SikuliX\SikuliX 1.1.1
08-11\sikulix.jar\Lib\sikuli\Region.py", line 63, in observe", I have on
Win7-32 and Win10-64.

When I change "10, background=True" → "10, background=False" I see only
the error "RuntimeError: maximum recursion depth exceeded (Java
StackOverflowError)" in red colour.

May be I missed something in syntaxis of observers, but I tried to read
the docs carefully.

-- 
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 #404001]: stopObserver() doesn't work

2016-11-12 Thread Alex Lunyov
Question #404001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404001

Status: Answered => Open

Alex Lunyov is still having a problem:
When I use this:

onAppear(img, myhandler)
observe(10)

- it works fine. It observed the whole screen, see pic and write message
"Seen".

And when I try to use this:

reg.onAppear(img, myhandler)
reg.observe(10, background=True)

- I see a "snowfall" of messages:
--
Exception in thread "Thread-11" Traceback (most recent call last):
File "C:\SikuliX\SikuliX 1.1.1 08-11\sikulix.jar\Lib\sikuli\Region.py", line 
63, in observe
...672 same lines
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)
-

Not critical for me at my work but it could be interesting to solve.
Thanks.

-- 
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 #404001]: stopObserver() doesn't work

2016-11-11 Thread Alex Lunyov
New question #404001 on Sikuli:
https://answers.launchpad.net/sikuli/+question/404001

I don't understand, why this code hangs up (I use latest 1.1.1 nightly version).

def myhandler(event):
print "Seen"
event.stopObserver()

img = "a.png"
reg = Region(417,895,209,185)

reg.onAppear(img, myhandler)
reg.observeInBackground(1)
reg.stopObserver()


# img is on the screen, so myhandler should immediately run and print "Seen". 
But I see the following:

--
Exception in thread "Thread-11" Traceback (most recent call last):
File "C:\SikuliX\SikuliX 1.1.1 Nov 07\sikulix.jar\Lib\sikuli\Region.py", line 
63, in observe
...
File "C:\SikuliX\SikuliX 1.1.1 Nov 07\sikulix.jar\Lib\sikuli\Region.py", line 
63, in observe
...
...
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)
--

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-11-08 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
May be this will help: GetKeyState returns type SHORT signed and state
variable is of Java INT type, and so sign is lost (and hence True value
is returned anyway). May be Java in Win 10 is able to repair this
incompatibility with signs.

OK, this all is just my humble thoughts and I can't look deeper. Just
try to 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 #403786]: Sikuli running from personal laptop and finding image on remote machine

2016-11-07 Thread Alex Lunyov
Question #403786 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403786

Status: Open => Needs information

Alex Lunyov requested more information:
Please, post the error message to analyse your incident. How did you
know Sikuli hadn't found the image of shortcut?

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-11-07 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
Well, the problem of _crashing_ was solved, but... I have just realized
that Env.isLockOn(...) doesn't work as expected. This function  gives
True in any cases. Type(Key.*_LOCK) works fine though. I use Win 7 64
bit. I've tried to install Java 8-111 64 bit + Sikuli last nightly on
two sterile machines Win 7 64 bit and also reinstalled that on mine. No
result.

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-11-03 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
OK, RaiMan, I'll do that. Some news meanwhile: I've installed last
nightly version of SikuliX on the similar computer (Win 7 64 bit) with
Java 7 version installed. Env.isLockOn(...) didn't cause fatal error,
worked fine. Then I updated to Java 8-111 and it crashed agatin on the
isLockOn function.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #285483]: isLockOn does not change until typing from the keyboard

2016-11-03 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
I deleted all "C:\Users\Lunyov\AppData\Roaming\Sikulix" folder, no effect. Then 
I uninstalled Java 8-111, reinstalled it, again deleted  SikuliX and installed 
last nightly SikuliX 1.1.1. No effect. I have got hs_err_pid1236.log in my 
Sikuli working folder with fatal error description.
I'll try on another computer and comment here the result.

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-11-02 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
Thank you for the advice.  I'll try. I have a backup in any case.

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-11-02 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
*installed, sorry. 
The screenshot was made from the video of closing the Sikuli IDE

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-11-02 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
Sos! I've just install the last update 1.1.1 and it seems the workflow
interrupts fatally every time on the command Env.isLockOn, see
screenshot https://drive.google.com/open?id=0B3bgaHY_O0xMOV8wb0NpcjNwOVU

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-10-29 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
Oh! This is incredible! :) I'm looking forward to be updated and check
the 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 #285483]: isLockOn does not change until typing from the keyboard

2016-10-27 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
May be masuo's and my examples (represented here) will help you a bit.
Also notice that the problem of Env.isLockOn arises sometimes when the
previous run of the script was interrupted by user (alt+shift+c), in my
case.

P.S. My script checks the NumLock state at the beginning and this check
not always successful because of this bug. Failure takes place when I
pressed alt+shift+c on the previous start (not always). I try find and
report more accurate condition of Env.isLockOn failure in my case).

I wish you good luck in this job!

-- 
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 #285483]: isLockOn does not change until typing from the keyboard

2016-10-26 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
Thanks, masuo. This bug is 8 month old, so, it might relies on some Java
problems but not 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 #285483]: isLockOn does not change until typing from the keyboard

2016-10-26 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
*if this 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


Re: [Sikuli-driver] [Question #285483]: isLockOn does not change until typing from the keyboard

2016-10-26 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
*if this 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


Re: [Sikuli-driver] [Question #285483]: isLockOn does not change until typing from the keyboard

2016-10-26 Thread Alex Lunyov
Question #285483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/285483

Alex Lunyov posted a new comment:
Just want to check, it this bug is under working. It still exists in
last nightly.

-- 
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 #403370]: Problems installing SikuliX 1.1.0 in Windows 8/10 --- try version 1.1.1

2016-10-23 Thread Alex Lunyov
Question #403370 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403370

Alex Lunyov proposed the following answer:
Please, check the name of your win-user account on the PCs. It should be
non unicode-named (Latin etc. but not Russian, Chinese etc.). If so,
login to the latin-named user, install, make bat file to run Sikuli
under latin-named user and use this bat file in your unicode-named user
account.

-- 
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 #403295]: Getting time of matching operation

2016-10-21 Thread Alex Lunyov
Question #403295 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403295

Alex Lunyov 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 #403295]: Getting time of matching operation

2016-10-21 Thread Alex Lunyov
Question #403295 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403295

Status: Answered => Open

Alex Lunyov is still having a problem:
Thanks a lot for the answer. May be I didn't understand something, but why does 
getTime() always report a number less then 1000 while I wait for the visual for 
ten seconds or more (I usually get getTime=200, 300 or so in case matching 
picture appeared in 10 seconds). I expected getTime > 1. What's wrong?
P.S. Find function runs immediately in my script after I press Run button. So, 
it performs scans during >10 seconds before it gets success match.

-- 
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 #403295]: Getting time of matching operation

2016-10-21 Thread Alex Lunyov
Question #403295 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403295

Status: Solved => Open

Alex Lunyov is still having a problem:
Thanks Raiman! But I still need some help. So, when the image is right
on the screen and it matches during first scan, the result is like this:

getTime()
>>15   
print a
M[1014,305 169x155]@S(S(0)[0,0 1920x1080]) S:1,00 C:1098,382 [15 msec]
# 15 and 15 msec

And when I do some clicks to open image and it matches during next scan
iterations, the result of getTime is different:

getTime()
>>33
print a
M[1014,305 169x155]@S(S(0)[0,0 1920x1080]) S:1,00 C:1098,382 [15 msec]
# 33 and 15 msec

So, I need the whole time, not the time of successful scan (is it right 
definition of getTime?)
I could try to get a difference of system time before and after find operation 
but I wonder if there are internal timing function.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #403295]: Getting time of matching operation

2016-10-21 Thread Alex Lunyov
Question #403295 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/403295

Status: Open => Solved

Alex Lunyov confirmed that the question is solved:
OK, I have just exctracted the list of methods of Match and got
.getTime() that is exactly what I need.

-- 
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 #403295]: Getting time of matching operation

2016-10-21 Thread Alex Lunyov
New question #403295 on Sikuli:
https://answers.launchpad.net/sikuli/+question/403295

Hi!

I need to get the time in milliseconds of matching (if it was successful).
When I print a match result I get something like this:

a = find(myimage)
print a
>>M[1014,305 169x155]@S(S(0)[0,0 1920x1080]) S:1,00 C:1098,382 [453 msec]

I need function to get time:
print a.getTime()
>>453

Is it possible without converting to str and parsing?

-- 
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 #402813]: Can't find image

2016-10-14 Thread Alex Lunyov
Question #402813 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402813

Alex Lunyov posted a new comment:
Be sure your visuals with default similarity settings (where there are no green 
squared numbers on it) are matched with appropriate level of similarity. Or you 
can always set the similarity individual for each pic in your script – that 
would bring some robustness to your script (my own experience advice).
You are welcome!

-- 
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 #239574]: Sikuli type() vs python\jython type() commands --- use isinstance() instead

2016-10-14 Thread Alex Lunyov
Question #239574 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/239574

Alex Lunyov posted a new comment:
I had the same problem (and solved for my task). Please, let me know it
this workaround is bad for any reason:

sikulitype = type   # save sikuli type function
del type   # delete it to return to native Python function
pythtype = type# save native function
type = sikulitype   # return to Sikuli common type() function

print pythtype(pythtype)  # works as expected, gives Python type() result
type("OK")   # as usual Sikuli typing

// comments for the Sikuli/Python beginners :)

-- 
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 #402813]: Can't find image

2016-10-11 Thread Alex Lunyov
Question #402813 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402813

Status: Open => Answered

Alex Lunyov proposed the following answer:
That could be an issue with setting Settings.MinSimilarity of Sikuli.
Have you changed this setting somewhere without restarting the Sikuli IDE?
Hope you have already found the 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 #402758]: all() function

2016-10-05 Thread Alex Lunyov
Question #402758 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402758

Alex Lunyov posted a new comment:
(-;

-- 
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 #402758]: all() function

2016-10-05 Thread Alex Lunyov
Question #402758 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402758

Status: Answered => Solved

Alex Lunyov confirmed that the question is solved:
OK, and please add some explanation to the docs. Thanks!

-- 
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 #402758]: all() function

2016-10-04 Thread Alex Lunyov
New question #402758 on Sikuli:
https://answers.launchpad.net/sikuli/+question/402758

I have just tryed to run this:

print all()

and got the line "S(-1)[0,0 1920x1080] E:Y, T:3,0".

What does it mean? I have not found the documentation. Will it be bad for 
Sikuli working if I delete this function so that I was able to use standard 
Python function 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 #381074]: How can i compare value on screen with value in my script?

2016-09-05 Thread Alex Lunyov
Question #381074 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/381074

Status: Open => Answered

Alex Lunyov proposed the following answer:
Is the visual value on your screen text or pic? If it is text you just
have to copy it from the screen in the following sequence: click the
text, select it, copy to the clipboard and read into the variable in
your script using the command:

myValue = Env.getClipboard()

Otherwise you could try using OCR feature.

-- 
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 #335603]: Sikuli not able to recognise images taken through Remote desktop and when run directly on system due to font antialiasing

2016-08-11 Thread Alex Lunyov
Question #335603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/335603

Status: Open => Answered

Alex Lunyov proposed the following answer:
OK, there should be a way to run *.bat file to toggle ClearType on/off,
look here: http://www.techsupportforum.com/forums/f10/solved-cleartype-
command-does-it-exist-332657.html

Or you could try to "sikulify" the sequence of your mouse clicks to get
antialiasing on/off to revert it back, that would be good exsercise for
you. Yes, this is right setting, but keep in mind that this is global
setting, and in my tasks I prefer set similarity for each image
manually. Sometimes I need 99% similarity both with 50% etc.

-- 
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 #335603]: Sikuli not able to recognise images taken through Remote desktop and when run directly on system due to font antialiasing

2016-08-11 Thread Alex Lunyov
Question #335603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/335603

Status: Open => Needs information

Alex Lunyov requested more information:
Could you manually disable antialiasing on the remote system? If yes,
does that system keep this setting?

-- 
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 #335603]: Sikuli not able to recognise images taken through Remote desktop and when run directly on system due to font antialiasing

2016-08-11 Thread Alex Lunyov
Question #335603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/335603

Status: Open => Answered

Alex Lunyov proposed the following answer:
There are two main ways to solve your problem:
1. Make both interfaces to use either antialiased or non-antialiased fonts. 
E.g. switch it OFF or ON both machines.
2. Reduce the factor of similarity, using standard Sikuli IDE instruments. So 
that your script could catch antialiased and non-antialiased screenshots of 
text.

The last way make your script less robust and so you should test all
your images on both computers. For large text (let it be more then 10–15
pixels in height) the last way is suitable and for small text the first
way may be the only suitable in your case.

-- 
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 1609936] Re: Autoset checkboxes on mouse hover in Settings - moreOptions --- one has to be careful ; -)

2016-08-05 Thread Alex Lunyov
Hope there will be no other such surprises. So this is a bug of NetBeans
environment, right?

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

Title:
  Autoset checkboxes on mouse hover in Settings - moreOptions --- one
  has to be careful ;-)

Status in Sikuli:
  Confirmed

Bug description:
  Strange behaviour in the Settings box was noticed.

  1. Launch Sikuli IDE (both stable and last nightly)
  2. Go to Settings → more Options
  3. Clear some of the checkboxes in the groups "IDE Layout" or "Messages to 
show"
  4. Move the mouse over "Activate the new layout" checkbox area.

  The bug raises: selfchecking previously cleared checkboxes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1609936/+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 1609936] [NEW] Autoset checkboxes on mouse hover in Settings

2016-08-04 Thread Alex Lunyov
Public bug reported:

Strange behaviour in the Settings box was noticed.

1. Launch Sikuli IDE (both stable and last nightly)
2. Go to Settings → more Options
3. Clear some of the checkboxes in the groups "IDE Layout" or "Messages to show"
4. Move the mouse over "Activate the new layout" checkbox area.

The bug raises: selfchecking previously cleared checkboxes.

** 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/1609936

Title:
  Autoset checkboxes on mouse hover in Settings

Status in Sikuli:
  New

Bug description:
  Strange behaviour in the Settings box was noticed.

  1. Launch Sikuli IDE (both stable and last nightly)
  2. Go to Settings → more Options
  3. Clear some of the checkboxes in the groups "IDE Layout" or "Messages to 
show"
  4. Move the mouse over "Activate the new layout" checkbox area.

  The bug raises: selfchecking previously cleared checkboxes.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1609936/+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 1597639] Re: [request] inputText() should have more options --- fixed 1.1.1 2016-07-04

2016-07-06 Thread Alex Lunyov
I have tested the build and now it works fine, as expected.

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

Title:
  [request] inputText() should have more options --- fixed 1.1.1
  2016-07-04

Status in Sikuli:
  Fix Committed

Bug description:
  Hi!

  Could it be possible to bring some custumisation options to
  inputText(), that is a rather useful feature in Sikuli? Currently it
  has such disadvantages: very small text in the message as well as
  user's input text, no scrolling and no text line breaking to be
  visible in the box. I know this is a "notepad in Sikuli" :) but what
  if it is easy to bring such options?

  I got acquainted with
  https://answers.launchpad.net/sikuli/+question/240592 similar
  question, but those solution is not as suitable as oneline inputtext()
  in small scripts and for beginners.

  Well, the text should be a bit larger in the inputtext() at least.
  Other options might be less important currently.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1597639/+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 #295801]: inputText() customisation

2016-07-06 Thread Alex Lunyov
Question #295801 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295801

Status: Open => Solved

Alex Lunyov confirmed that the question is solved:
Now works fine, thanks!

-- 
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 1597639] Re: [request] inputText() should have more options --- fixed 1.1.1 2016-07-03

2016-07-04 Thread Alex Lunyov
Dear Raiman, thank a lot for improving user experience in this input
tool (and so quick)! I've tested this and found a few problems.

So, this is my test code:

Settings.InputFontSize = 15# works fine
Settings.InputFontMono = True
a = inputText("Tell your story please!",title="Script 
request",lines=27,width=18,text="Box for your text.")

It seems lines and width settings have reverse effect on the text box,
so we get 27 symbols width and 18 lines height. Also it is not
documented how to change message text size. It remains the same, very
small. Please, see the attachment.

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

Title:
  [request] inputText() should have more options --- fixed 1.1.1
  2016-07-03

Status in Sikuli:
  Fix Committed

Bug description:
  Hi!

  Could it be possible to bring some custumisation options to
  inputText(), that is a rather useful feature in Sikuli? Currently it
  has such disadvantages: very small text in the message as well as
  user's input text, no scrolling and no text line breaking to be
  visible in the box. I know this is a "notepad in Sikuli" :) but what
  if it is easy to bring such options?

  I got acquainted with
  https://answers.launchpad.net/sikuli/+question/240592 similar
  question, but those solution is not as suitable as oneline inputtext()
  in small scripts and for beginners.

  Well, the text should be a bit larger in the inputtext() at least.
  Other options might be less important currently.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1597639/+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 1597639] Re: [request] inputText() should have more options --- fixed 1.1.1 2016-07-03

2016-07-04 Thread Alex Lunyov
The according test inputText() box

** Attachment added: "The according test inputText() box"
   
https://bugs.launchpad.net/sikuli/+bug/1597639/+attachment/4695208/+files/inputText%20new.png

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

Title:
  [request] inputText() should have more options --- fixed 1.1.1
  2016-07-03

Status in Sikuli:
  Fix Committed

Bug description:
  Hi!

  Could it be possible to bring some custumisation options to
  inputText(), that is a rather useful feature in Sikuli? Currently it
  has such disadvantages: very small text in the message as well as
  user's input text, no scrolling and no text line breaking to be
  visible in the box. I know this is a "notepad in Sikuli" :) but what
  if it is easy to bring such options?

  I got acquainted with
  https://answers.launchpad.net/sikuli/+question/240592 similar
  question, but those solution is not as suitable as oneline inputtext()
  in small scripts and for beginners.

  Well, the text should be a bit larger in the inputtext() at least.
  Other options might be less important currently.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1597639/+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 #195150]: Set global hotkey without a KeyModifier

2016-07-01 Thread Alex Lunyov
Question #195150 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/195150

Alex Lunyov posted a new comment:
OK, thanks!

-- 
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 #195150]: Set global hotkey without a KeyModifier

2016-07-01 Thread Alex Lunyov
Question #195150 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/195150

Alex Lunyov proposed the following answer:
So, there is no way to pass a KeyModifier argument in addHotkey
function, right? We have to give 0 value in the modifier position to set
handler of a pure key press.

Just remembered your advice in the recent "Key.NONE" history (in my
question #295399) and then try to search through other questions about
this exact 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


[Sikuli-driver] [Question #295801]: inputText() customisation

2016-06-30 Thread Alex Lunyov
New question #295801 on Sikuli:
https://answers.launchpad.net/sikuli/+question/295801

Hi!

Could it be possible to bring some custumisation options to inputText(), that 
is a rather useful feature in Sikuli? Currently it has such disadvantages: very 
small text in the message as well as user's input text, no scrolling and no 
text line breaking to be visible in the box. I know this is a "notepad in 
Sikuli" :) but what if it is easy to bring such options?

I got acquainted with https://answers.launchpad.net/sikuli/+question/240592 
similar question, but those solution is not as suitable as oneline inputtext() 
in small scripts and for beginners.

Well, the text should be a bit larger in the inputtext() at least. Other 
options might be less important currently.

-- 
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 1588723] Re: Black Image Exist does not find it

2016-06-17 Thread Alex Lunyov
Please make sure your image size (width and height) is less than width
and height of your region. By the way it could be useful to warn a
priori (and while running script) if the image can't be found in the
region in case the latter is smaller than the former.

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

Title:
  Black Image Exist does not find it

Status in Sikuli:
  New

Bug description:
  1.1.1(2015-11-26_01:00nightly)/Mac10.11.5/Java8(64)1.8.0_25-b17

  Found 2 References to this :-
  ​ 
  #697141 X 1.0rc2: find(), exists(), onAppear(), onVanish() with black or 
white images not working
  Fix Released (2 comments) last updated 2011-09-27

  and

  https://answers.launchpad.net/sikuli/+question/140115

  My Code after reading various Suggestions always returns "not found"
  if exists(Pattern("1464943398109.png").similar(0.99)): 
  print "found"
  else:
  print "not found"

  The Area of the Screen that I am testing is completely black and so is
  the image

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1588723/+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 #295399]: Null keymodifier in type()

2016-06-17 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Alex Lunyov posted a new comment:
OK, I got it. Agree with your code decision, I have included it in my
script. Thanks!

-- 
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 #295399]: Null keymodifier in type()

2016-06-17 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Alex Lunyov posted a new comment:
Some addition. For beginners (like me) and for compatibility it could be
useful to create constant Key.NULL=0, but it is just my humble
suggestion. As for my strange comment, that was just my excuse for the
problem insignificance, but nevertheless I'm glad to get know the
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 #295399]: Null keymodifier in type()

2016-06-17 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Status: Answered => Solved

Alex Lunyov confirmed that the question is solved:
Great, thanks! This entirely solved my 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 #295399]: Null keymodifier in type()

2016-06-17 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Alex Lunyov gave more information on the question:
In short Key.NULL should act as absence of any keymodifiers, or as
"pressing nothing".

-- 
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 #295399]: Null keymodifier in type()

2016-06-17 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Status: Needs information => Open

Alex Lunyov gave more information on the question:
Sorry, if my problem is not worth taking your attention.

I use the following workaround:

def typeCopyCommand(key="c", keym=Key.CTRL):
if keym:
type(key,keym)
else:
type(key)

In my code typeCopyCommand() sometimes need only one argument:
Key.ENTER, to copy what I need. In this case I use the function
typeCopyCommand() as following: typeCopyCommand(key=Key.ENTER,keym="")

I think it could be clearer to use Key.NULL modifier in type() and
rewrite code like this:

def typeCopyCommand(key="c", keym=Key.CTRL):
 type(key,keym)

and then use more clear commands:
typeCopyCommand()
typeCopyCommand(key=Key.ENTER,keym=Key.NULL)# in case the type() 
function could use null keymodifier

-- 
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 #295397]: how to compare special part of an image

2016-06-17 Thread Alex Lunyov
Question #295397 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295397

Status: Open => Answered

Alex Lunyov proposed the following answer:
You could divide your image into certain parts (hope there are not so
many) and then use a list of these subimages with their offsets from the
upper certain image (for example). This list will represent the whole
image without its uncertainties. Then you should find sequentially
images from this list on your screen.

-- 
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 #295027]: Pattern match preview in IDE shows two different matches while "Exact" similarity is set

2016-06-17 Thread Alex Lunyov
Question #295027 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295027

Status: Open => Solved

Alex Lunyov confirmed that the question is solved:
Thanks a lot for your 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 #295399]: Null keymodifier in type()

2016-06-17 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Description changed to:
Is there any way to set "null" keymodifier (let call it "Key.Null") in
the type function? So that these lines were equivalent:

type("c")
type("c",)
type("c",Key.Null)

I need it to call type() with and without keymodifiers in the same line
of a code. I suggest this feature (in case it was not implemented yet)
could be useful for such purposes in 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 #295399]: Null keymodifier in type()

2016-06-16 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Description changed to:
Is there any way to set "null" keymodifier (let call it "Key.Null") in
the type function? So that these lines where equivalent:

type("c")
type("c",)
type("c",Key.Null)

I need it to call type() with and without keymodifiers in the same line
of a code. I suggest this feature (in case it was not implemented yet)
could be useful for such purposes in 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 #295399]: Null keymodifier in type()

2016-06-16 Thread Alex Lunyov
Question #295399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295399

Description changed to:
Is there any way to set "null" keymodifier (let call it "Key.Null") in
the type function? So that these lines where equivalent:

type("c")
type("c",)
type("c",Key.null)

I need it to call type() with and without keymodifiers in the same line
of a code.

-- 
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 #295399]: Null keymodifier in type()

2016-06-16 Thread Alex Lunyov
New question #295399 on Sikuli:
https://answers.launchpad.net/sikuli/+question/295399

Is there any way to set "null" keymodifier (let call it "Key.Null") in the type 
function so that these lines where equivalent:

type("c")
type("c",)
type("c",Key.null)

I need it to call type() with and without keymodifiers in the same line of a 
code.

-- 
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 #295187]: How To Change MoveMouseDelay using Java

2016-06-14 Thread Alex Lunyov
Question #295187 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295187

Alex Lunyov posted a new comment:
@RaiMan thanks again, I have successfully installed fixed version as
soon as it was released.

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


  1   2   >