Re: [Sikuli-driver] [Question #665323]: anyway to make a simple 'status bar' ?

2018-03-06 Thread cherie
Question #665323 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665323

cherie posted a new comment:
Thank you!  Tho the closing just keeps running hehe until 10.. i can
work with it tho

thanks a lot!

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

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


Re: [Sikuli-driver] [Question #665323]: anyway to make a simple 'status bar' ?

2018-03-06 Thread cherie
Question #665323 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665323

Status: Answered => Solved

cherie confirmed that the question is solved:
Thanks masuo, 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 #665323]: anyway to make a simple 'status bar' ?

2018-03-06 Thread masuo
Question #665323 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665323

Status: Open => Answered

masuo proposed the following answer:
This is an example.

STATUS = "NG"
COUNTER = 0
REFRESHCYCLE = 3
TIMES = 10
CLOSEDIALOG = False
#
def get_BottomLeft_of_SCREEN():
r = Region(0,0,10,10)
r.setRect(SCREEN.getBounds())
BottomLeftRegion = Region(150,r.getH()-100,0,0)
return BottomLeftRegion
#
def open_dialog(cnt):
if not CLOSEDIALOG:
message = "status:%s\ncounter:%d" % (STATUS, COUNTER)
title = "Status Dialog(%d)" % cnt
timeout = REFRESHCYCLE
location = get_BottomLeft_of_SCREEN()
Do.popup(message, title, timeout, location)
#
def call_open_dialog(name, *args):
for cnt in range(TIMES):
open_dialog(cnt)
#
def change_status(event):
global STATUS
global COUNTER
COUNTER = COUNTER + 1
if STATUS != "OK":
STATUS = "OK"
else:
STATUS = "NG"
#
def close_dialog(event):
global CLOSEDIALOG
CLOSEDIALOG = True
#
import thread
thread.start_new_thread(call_open_dialog,("call_open_dialog",""))
Env.addHotkey(Key.RIGHT, KeyModifier.CTRL, change_status)
Env.addHotkey(Key.END, KeyModifier.CTRL, close_dialog)
popup("Click [OK] to stop")

-- 
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 #665323]: anyway to make a simple 'status bar' ?

2018-03-06 Thread cherie
New question #665323 on Sikuli:
https://answers.launchpad.net/sikuli/+question/665323

like draw a small white box maybe on the buttom left of the screen, where it 
pulls the data from variables :) 

[ Status: ON ]
[ Counter: 3]
[ Time: ] 

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 #665209]: Anyway to Download Settings / Variables from a url on a website

2018-03-06 Thread cherie
Question #665209 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665209

Status: Answered => Solved

cherie 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 #665220]: i have a monster PC.. i want to split it to run 2-3 sessions..

2018-03-06 Thread cherie
Question #665220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665220

Status: Answered => Solved

cherie 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 #665279]: Instantiating SikuliX classes through API with node-java hangs on Mac

2018-03-06 Thread Finn Ellis
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Finn Ellis posted a new comment:
Looking forward to it, thanks! (I think our time zones are pretty far
apart, so it may take me a day to report back.)

-- 
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 #665279]: Instantiating SikuliX classes through API with node-java hangs on Mac

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

Status: Open => Answered

RaiMan proposed the following answer:
ok, I will have a look and come back tomorrow.

Be prepared to run a setup then with the latest nigthly build of SikuliX
1.1.2

-- 
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 #665279]: Instantiating SikuliX classes through API with node-java hangs on Mac

2018-03-06 Thread Finn Ellis
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Status: Needs information => Open

Finn Ellis gave more information on the question:
Oh ha, yeah, that does it. Here's the output I get before it hangs:

[debug] Debug.init: from sikuli.Debug: on: 3
[debug] RunTimeINIT: loadOptions: check: 
/Users/finnre/slack/slack-desktop/spec/e2e
[debug] RunTimeINIT: loadOptions: check: /Users/finnre
[debug] RunTimeINIT: loadOptions: check: /Users/finnre/Library/Application 
Support/Sikulix/SikulixStore
[debug] RunTimeINIT: global init: entering as: API

-- 
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 #665279]: Instantiating SikuliX classes through API with node-java hangs on Mac

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

Status: Open => Needs information

RaiMan requested more information:
ups - sorry - must be:
java.options.push('-Dsikuli.Debug=3');

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 #665279]: Instantiating SikuliX classes through API with node-java hangs on Mac

2018-03-06 Thread Finn Ellis
Question #665279 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665279

Status: Needs information => Open

Finn Ellis gave more information on the question:
Yep, it's pretty simple:


var java = require('java');

java.classpath.push('sikulixapi.jar');
java.options.push('-Dsikuli.debug=3');

var screen = java.newInstanceSync('org.sikuli.script.Screen');
console.log(screen)


All it's doing is importing the node-java bridge, adding the sikulix jar to the 
classpath (and the debug option), and then trying to instantiate a Screen (or 
any Sikuli class that I've tried). The mystery app pops up when I instantiate 
the class, and nothing ever prints -- not even debug output from Sikuli, 
weirdly enough.

If I add this line, next to the other option:

java.options.push('-Djava.awt.headless=true')

then the script does finish successfully, but it outputs (from the
console.log line):

nodeJava_org_sikuli_script_Screen { h: 1, w: 1, y: 0, x: 0 }

which of course isn't my real screen size. :) Even in this case, though,
there's no debug output from Sikuli, which makes me wonder if it's
getting eaten by node-java.

I posted an issue with node-java as well, in case it's helpful to see
screenshots of what I'm seeing: https://github.com/joeferner/node-
java/issues/422

-- 
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 #665044]: Constantly Checking for GUI Failure Messages In Test

2018-03-06 Thread Art
Question #665044 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665044

Status: Answered => Solved

Art confirmed that the question is solved:
Thanks RaiMan, that solved my question.

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

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


[Sikuli-driver] [Bug 1740421] Re: [1.1.1] Region capture not correct: vnc.capture(someRegion) --- workaround

2018-03-06 Thread RaiMan
@Julian
Could you give it a test?

** Changed in: sikuli
   Status: In Progress => Fix Committed

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

** Summary changed:

- [1.1.1] Region capture not correct: vnc.capture(someRegion) --- workaround
+ [1.1.1] VNC: Region capture not correct: vnc.capture(someRegion) --- fixed 
1.1.2 2018-03-06 build#120

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

Title:
  [1.1.1] VNC: Region capture not correct: vnc.capture(someRegion) ---
  fixed 1.1.2 2018-03-06 build#120

Status in Sikuli:
  Fix Committed

Bug description:
  problem: image is elongated or even turned up-side down

  - workaround
  from comment #4
  I have found a way to bypass this issue:
  BufferedImage croppedImage = vnc.capture().getImage().getSubimage(xAxis, 
yAxis, width, height);
  ImageIO.write(croppedImage, "png", new File("tempRead.png"));

  ... or some other means, that crops the needed region image from a fullscreen 
capture.
  
  Sikuli 1.1.2-20171218.172518-66
  OS: Windows Embeded

  Hi,

  I'm trying to read the text from a specified region, but what I've
  noticed is that, when I'm trying to see what's in that actual region,
  and capture that image, it becomes distorted.

  If the region is higher than 185px, the image is elongated (second image in 
the screenshot).
  If the region has the hight lower than around 185px, the whole text is messed 
up, and upside down too (the last image in the screenshot).

  This is the code I've used:

  Region tLocked = vnc.set(new Region(9, 170, 240, 185));
  ImageIO.write(vnc.capture(tLocked).getImage(), "png", new 
File("terminal.png"));
  System.out.println(tLocked.text());

  Therefore, when trying to read text from the first scenario, I get nothing, 
and from the second scenario I get:
  xfaaucxscs‘}5en:s_1_1:en: :

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1740421/+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 #663114]: [1.1.2] IDE: when I save script I get error message --- switch off Options-on-Save: createHTML

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

Summary changed to:
[1.1.2] IDE:  when I save script I get error message --- switch off  
Options-on-Save: createHTML

-- 
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 #663114]: [1.1.2] when I save script I get error message --- switch off Options-on-Save: createHTML

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

Summary changed to:
[1.1.2] when I save script I get error message --- switch off  Options-on-Save: 
createHTML

-- 
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 #663114]: [1.1.2] when I save script I get error message.

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

Summary changed to:
[1.1.2] when I save script I get error message.

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

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


Re: [Sikuli-driver] [Question #663114]: [1.1.2 0ffline setup]when I save script I get error message.

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

Status: Expired => Answered

RaiMan changed the question status:
should stay open

-- 
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 #665288]: While running script, getting image not found while same image is present on screen

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

Status: Open => Answered

RaiMan proposed the following answer:
optimize your image:
- as little background towards the edges as possible
- concentrate on the key aspects of the image
- check, that in all cases a similarity score of at least 0.9 is achieved

Have a look at this:
http://sikulix-2014.readthedocs.io/en/latest/region.html#exception-findfailed

to think of options to better support FindFailed situations.

-- 
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 #665288]: While running script, getting image not found while same image is present on screen

2018-03-06 Thread kirti agrawal
New question #665288 on Sikuli:
https://answers.launchpad.net/sikuli/+question/665288

I am running almost 500 robo scripts and using sikuli library.

The issue that I am facing here is sometimes, the image is present right there 
on the screen but still I get image not found error. I have also tried using 
sikuli API minSimilarity but even that does bot work.

Please support 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 #665279]: Instantiating SikuliX classes through API with node-java hangs on Mac

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

Status: Open => Needs information

RaiMan requested more information:
take care, that the JVM gets the option -Dsikuli.debug=3

This should reveal more debug output at startup and help to narrow the
offending part.

Helpful of course would be, to reduce the testcase to the minimum of
configuration/script content, where it still fails.

Could you provide such a minimum constellation and post it 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 #665281]: Prevent abrupt program shutdown

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

RaiMan posted a new comment:
Another option always is, to use exists():

if exists(image, 0): # just one search
# do what is needed
else:
# do something else

-- 
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 #101902]: Cannot type slash character. This slash: "/" --- workaround: alt + numpad

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

Description changed to:
** workaround
Found the best solution. Universal on all Windows systems is alt + numpad (from 
comment #7)

# So for Slash
def typeSlash():
keyDown(Key.ALT)
type(Key.NUM4+Key.NUM7)
keyUp()

#or like this:
string = 'jan/2017'
string = string.replace('/', Key.DIVIDE)
type(string)

-
When I issue the command on the line 3 of my script:
type("/")
The Sikuli IDE does not send the slash character ("/") and throw the following 
error:

[sikuli] [Error] source lineNo: 3
[sikuli] [Error] Traceback (innermost last):
  File "C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\sikuli-tmp8004614922768274155.py", 
line 3, in ?
  File "C:\Arquivos de 
programas\Sikuli\sikuli-ide-full.jar\Lib/python/edu/mit/csail/uid/Sikuli.py", 
line 514, in type
at sun.awt.windows.WRobotPeer.keyPress(Native Method)
at java.awt.Robot.keyPress(Unknown Source)
at edu.mit.csail.uid.SikuliScript.doType(SikuliScript.java:465)
at edu.mit.csail.uid.SikuliScript.doType(SikuliScript.java:457)
at edu.mit.csail.uid.SikuliScript.type_ch(SikuliScript.java:569)
at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:626)
at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:446)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:
Invalid key code

Thanks for the attention and congratulation for this very useful tools
:)

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