[Sikuli-driver] [Question #601403]: Sikuli on XVFB Headless mode - Linux

2017-03-30 Thread Jeevan S
New question #601403 on Sikuli:
https://answers.launchpad.net/sikuli/+question/601403

Hi ,

Information related to Sikuli on XVFB Headless mode dates  back to 2013 . I 
would like to know the current status if we can execute Sikuli on XVFB with a 
Linux environment.

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 #578456]: [1.1.1] macOS: App.focus: Occasionally: Where is osascript

2017-03-30 Thread Jeff_Vallis
Question #578456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/578456

Jeff_Vallis gave more information on the question:
Can you help me code a workaround,have tried to understand
http://sikulix-2014.readthedocs.io/en/latest/region.html#observing-
visual-events-in-a-region but its beyoind my skill set.

What I want to do is :-
replace App.focus("Tynon") and use  App_Focus_Failing() in the following :-


def If_Choose_App_Appeared():
setRect(458, 187, 823, 657)
while exists(Pattern("1490794202722.png").similar(0.90)): # Image with 
Choose Application Header
print "Running Check_App_Focus - Found Choose Application"
if exists("1490794220568.png"): # Cancel Button
print "Check_App_Focus - Found Cancel"
click(getLastMatch())

def App_Focus_Failing():
# I want to set If_Choose_App_Appeared() to be running in background
App.focus("Tynon")
# I want to Stop If_Choose_App_Appeared() to be running in background

-- 
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 #595513]: Blank log file when run from command line

2017-03-30 Thread RaiMan
Question #595513 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/595513

RaiMan proposed the following answer:
ok, understood.

Since you do not see anything in the logfile, you are using simple print
statements for your "logging" and not the features as described here:
http://sikulix-2014.readthedocs.io/en/latest/scripting.html#writing-and-
redirecting-log-and-debug-messages (which is the kind of logging, as it
is used in SikuliX).

the print statement's output in the standard goes to stdout, which in turn in 
the IDE is per default redirected to the message area.
see: http://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html
and the option -c to start the IDE from a commandline and switch off the 
message box, so all print output goes to stdout (commandline), which in turn 
can be redirected to a file using > (as you already did for a scriptrun).

you might also use the print statement to directly print to a file:
fLog = open(fnameLog, "w")
print >> fLog, "print test"
fLog.close()

where fnameLog is a valid filename string, that might be formed using 
os.path.join()
all this is standard Python

-- 
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 #595513]: Blank log file when run from command line

2017-03-30 Thread RaiMan
Question #595513 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/595513

Description changed to:
*  possible solutions
Since you do not see anything in the logfile, you are using simple print 
statements for your "logging" and not the features as described here: 
http://sikulix-2014.readthedocs.io/en/latest/scripting.html#writing-and-redirecting-log-and-debug-messages
 (which is the kind of logging, as it is used in SikuliX).

the print statement's output in the standard goes to stdout, which in turn in 
the IDE is per default redirected to the message area.
see: http://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html
and the option -c to start the IDE from a commandline and switch off the 
message box, so all print output goes to stdout (commandline), which in turn 
can be redirected to a file using > (as you already did for a scriptrun).

you might also use the print statement to directly print to a file:
fLog = open(fnameLog, "w")
print >> fLog, "print test"
fLog.close()

where fnameLog is a valid filename string, that might be formed using 
os.path.join()
all this is standard Python

--

hi kinda new at this and testing some log outputs. When using the IDE
with the Settings.LogTime the message area displays perfectly. When I
try to redirect that output to a simple txt it's a blank file, even the
default non-specificed "WorkingDir/SikuliLog.txt" is blank. any options
that I am missing?

EDIT: I should mention im using 1.1.0 for now on a WIN 10 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 #601403]: Sikuli on XVFB Headless mode - Linux

2017-03-30 Thread RaiMan
Question #601403 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/601403

Status: Open => Answered

RaiMan proposed the following answer:
Just give it a try.

If it works: fine.

If not, then please give me your setup details, so I might be able to fix it 
(as the offending part is SikuliX).
In any case use version 1.1.1.

In the development of version 2 I use TravisCI with XVFB setup to run my
tests in a such an environment: works
(https://github.com/RaiMan/SikuliX2)

-- 
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 #578456]: [1.1.1] macOS: App.focus: Occasionally: Where is osascript

2017-03-30 Thread RaiMan
Question #578456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/578456

Status: Open => Answered

RaiMan proposed the following answer:
ok, this is much easier:

def If_Choose_App_Appeared():
shitHappened = false
setRect(458, 187, 823, 657)
while exists(Pattern("1490794202722.png").similar(0.90)): # Image with 
Choose Application Header
print "Running Check_App_Focus - Found Choose Application"
if exists("1490794220568.png"): # Cancel Button
print "Check_App_Focus - Found Cancel"
click(getLastMatch())
shitHappened = true
return shitHappened

def App_Focus_Failing():
max = 3
while True:
App.focus("Tynon")
if not If_Choose_App_Appeared():
break # focus should have worked, otherwise try again
max -= 1
if max < 0: # to avoid endless loop if workaround does not work
print "no chance - exiting"
exit(1)

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

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


Re: [Sikuli-driver] [Question #557456]: Help compile sikulix tg44

2017-03-30 Thread Launchpad Janitor
Question #557456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/557456

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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 #601443]: What is the command thatmakes the whole script to bupass the errors

2017-03-30 Thread Stoyan Stoimenov
New question #601443 on Sikuli:
https://answers.launchpad.net/sikuli/+question/601443

I realy want to know what is the command that makes the whole script to bypass 
errors.

-- 
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 #601443]: What is the command thatmakes the whole script to bupass the errors

2017-03-30 Thread RaiMan
Question #601443 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/601443

Status: Open => Answered

RaiMan proposed the following answer:
if you are talking about FindFailed errors:
http://sikulix-2014.readthedocs.io/en/latest/region.html#exception-findfailed

-- 
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 1677689] [NEW] sikuli image recognition fails, even if the element is not present, it finds similar image

2017-03-30 Thread Prity
Public bug reported:

Using RemoteScreen class. RemoteScreen's find() method finds similar
image and clicks on the wrong image.

Sikuli-X-1.0rc3 (r905)
Java6
OS: 64 bit
Win 8.1

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

Title:
  sikuli image recognition fails, even if the element is not present, it
  finds similar image

Status in Sikuli:
  New

Bug description:
  Using RemoteScreen class. RemoteScreen's find() method finds similar
  image and clicks on the wrong image.

  Sikuli-X-1.0rc3 (r905)
  Java6
  OS: 64 bit
  Win 8.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1677689/+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 #595513]: Blank log file when run from command line

2017-03-30 Thread JayGuajardo
Question #595513 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/595513

Status: Answered => Solved

JayGuajardo 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 #562399]: Submenu Disappear when mouse is moved

2017-03-30 Thread JayG
Question #562399 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/562399

Status: Open => Answered

JayG proposed the following answer:
Whenever my script stops working from a different environment the first
thing i check is the screen resolution. That has been about 80% of my
issues.

-- 
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 #578460]: What tesseract related improvements are expected with Sikuli 2?

2017-03-30 Thread Eugene S
Question #578460 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/578460

Status: Answered => Solved

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

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

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


[Sikuli-driver] [Question #602804]: Change title in pop-up text boxes

2017-03-30 Thread Josh
New question #602804 on Sikuli:
https://answers.launchpad.net/sikuli/+question/602804

Is it possible to change the title of the pop-up text boxes? I want it to 
reflect the title of the question rather than Sikulix Text/ Error/ Selection 

-- 
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 #602804]: Change title in pop-up text boxes

2017-03-30 Thread RaiMan
Question #602804 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/602804

Status: Open => Answered

RaiMan proposed the following answer:
the docs might help ;-)
http://sikulix-2014.readthedocs.io/en/latest/interaction.html#interacting-with-the-user-and-other-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


[Sikuli-driver] [Bug 1677689] Re: sikuli image recognition fails, even if the element is not present, it finds similar image

2017-03-30 Thread RaiMan
versions prior to SikuliX version 1.1.1 (http://sikulix.com) are no
longer supported.

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

Title:
  sikuli image recognition fails, even if the element is not present, it
  finds similar image

Status in Sikuli:
  New

Bug description:
  Using RemoteScreen class. RemoteScreen's find() method finds similar
  image and clicks on the wrong image.

  Sikuli-X-1.0rc3 (r905)
  Java6
  OS: 64 bit
  Win 8.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1677689/+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