Re: [Sikuli-driver] [Question #272186]: double backslashes in printed strings --- is by convention (a \ must be escaped with a \ )

2015-10-09 Thread furni
Question #272186 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272186

Status: Needs information => Open

furni gave more information on the question:
The version is sikulixsetup-1.1.0-20151004.231024-183-forsetup. It's
Sikuli 1.1.0.

Im running it from Sikuli IDE by typing r+CTRL

When double clicking runsikuli.cmd to start sikuli IDE, i get the
message below in the command prompt.

+++ running this Java
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode, sharing)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\Users\a\Desktop\Sikuli\sikulix.jar
10 10, 2015 9:41:52 午前 java.util.prefs.WindowsPreferences 
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x8002. Windows RegCreateKeyEx(...) returned error code 5.
[info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[error] IDE: Remembered window not valid. Going to primary screen


Is this related to the error??

-- 
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 #272260]: name of image passed to function

2015-10-09 Thread rblack
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260

Status: Answered => Open

rblack is still having a problem:
Thank you RaiMan for fast answer, but it doesn't work.

I send image to my functions (imported from separate sikuli file) like that:
http://postimg.org/image/7ca9b4dkp/

This visual passing is very helpfull and i would not like to pass image
paths, because the readiblity of the code will drop dramatically.

-- 
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 #272223]: Can you highlight text with CTRL+Shift+RIGHT ?

2015-10-09 Thread Sam
Question #272223 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272223

Sam posted a new comment:
Thanks. I tried the above code and I've tried using wait in the past.
For whatever reason, my system (windows 7 64 bit) just reads it as
pressing an arrow key. It seems to ignore cntrl +shift. The script above
currently just copies the word "METAR" rather than the airport
information which follows it that I'd like to include in the selection.

I'll just have to look for another way around this or abandon this
particular script

As always thanks for your time and help.  Still amazed at how fantastic
this software is.

-- 
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 1503365] Re: [request] want to know, whether an image file is on imagepath and get it's absolute filename

2015-10-09 Thread Vincent Yau
** Changed in: sikuli
 Assignee: RaiMan (raimund-hocke) => Vincent Yau (vyau6789)

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

Title:
  [request] want to know, whether an image file is on imagepath and get
  it's absolute filename

Status in Sikuli:
  Fix Committed

Bug description:
  * intended solution
  img = ImagePath.exists("someImage.png")

  img is either None/null or the absolute filename

  current workaround see comment #1 of related question

  --
  a direct usage of
  Pattern('a')
  return
  error] Image: could not be loaded: file:/H:/test.sikuli/a.png
  [error] Image: Image not valid, but TextSearch is switched off!

  I would like to be able to check the file 'a.png' exist in the Sikuli Image 
Paths.
  How to ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1503365/+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 1504627] Re: [request] A workaround for highlighting not working on linux

2015-10-09 Thread Zeks
Essentially, I tried to make transparency work but decided the trouble
is not worth it (especially on VMWare which adds whole new level to
frustration) and "painted" the frame with four 2px widgets around the
area.

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

Title:
  [request] A workaround for highlighting not working on linux

Status in Sikuli:
  In Progress

Bug description:
  Faced with the problem of debugging why the hell scripts fail on linux I made 
this very simple app to work as a replacement for Region.highlight function:
  https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

  It needs qt/qbs to compile but once you do, you can simply use the
  function below everywhere, where region.highlight was used

  def highlight(reg, time):
  subprocess.call(["/adp/arm/regionHighlighter.sh",
   "--width=" + str(reg.getW()),
   "--height=" + str(reg.getH()),
   "--top=" + str(reg.getY()),
   "--left=" + str(reg.getX()),
   "--time=" + str(time)]);
  reg.wait(time/1000)

  
  the parameters above are self-explanatory I think. Except time, which is in 
milliseconds

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1504627/+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 1504627] [NEW] [request] A workaround for highlighting not working on linux

2015-10-09 Thread RaiMan
Public bug reported:

Faced with the problem of debugging why the hell scripts fail on linux I made 
this very simple app to work as a replacement for Region.highlight function:
https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

It needs qt/qbs to compile but once you do, you can simply use the
function below everywhere, where region.highlight was used

def highlight(reg, time):
subprocess.call(["/adp/arm/regionHighlighter.sh",
 "--width=" + str(reg.getW()),
 "--height=" + str(reg.getH()),
 "--top=" + str(reg.getY()),
 "--left=" + str(reg.getX()),
 "--time=" + str(time)]);
reg.wait(time/1000)


the parameters above are self-explanatory I think. Except time, which is in 
milliseconds

** Affects: sikuli
 Importance: Medium
 Assignee: RaiMan (raimund-hocke)
 Status: In Progress

** Changed in: sikuli
   Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [request] A workaround for highlighting not working on linux

Status in Sikuli:
  In Progress

Bug description:
  Faced with the problem of debugging why the hell scripts fail on linux I made 
this very simple app to work as a replacement for Region.highlight function:
  https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

  It needs qt/qbs to compile but once you do, you can simply use the
  function below everywhere, where region.highlight was used

  def highlight(reg, time):
  subprocess.call(["/adp/arm/regionHighlighter.sh",
   "--width=" + str(reg.getW()),
   "--height=" + str(reg.getH()),
   "--top=" + str(reg.getY()),
   "--left=" + str(reg.getX()),
   "--time=" + str(time)]);
  reg.wait(time/1000)

  
  the parameters above are self-explanatory I think. Except time, which is in 
milliseconds

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1504627/+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 1504627] Re: [request] A workaround for highlighting not working on linux

2015-10-09 Thread RaiMan
Thanks to Zeks(https://launchpad.net/~enmarantispam)

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

Title:
  [request] A workaround for highlighting not working on linux

Status in Sikuli:
  In Progress

Bug description:
  Faced with the problem of debugging why the hell scripts fail on linux I made 
this very simple app to work as a replacement for Region.highlight function:
  https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

  It needs qt/qbs to compile but once you do, you can simply use the
  function below everywhere, where region.highlight was used

  def highlight(reg, time):
  subprocess.call(["/adp/arm/regionHighlighter.sh",
   "--width=" + str(reg.getW()),
   "--height=" + str(reg.getH()),
   "--top=" + str(reg.getY()),
   "--left=" + str(reg.getX()),
   "--time=" + str(time)]);
  reg.wait(time/1000)

  
  the parameters above are self-explanatory I think. Except time, which is in 
milliseconds

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1504627/+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 #272170]: [1.1.0] Running JRuby scripts: JythonSupport: Not possible to get a Jython on to the classpath!

2015-10-09 Thread RaiMan
Question #272170 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272170

Status: Open => Answered

RaiMan proposed the following answer:
ok understood.
as mentioned: I have to refresh my RubyMine setup.

Yep, running a simple
popup("Hello")

script might help to get nearer to the problem.

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

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


Re: [Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-09 Thread RaiMan
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260

Status: Open => Answered

RaiMan proposed the following answer:
if we are talking about the basic Sikuli usage, image is an image
filename as a string.

exit(image + " not found")

-- 
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 #272256]: Status of bug #1504627 changed to 'In Progress' in Sikuli

2015-10-09 Thread RaiMan
Bug #1504627 status changed in Sikuli:

New => In Progress

https://bugs.launchpad.net/sikuli/+bug/1504627
"[request] A workaround for highlighting not working on linux"

This bug is linked to #272256.
A workaround for highlighting not working on linux
https://answers.launchpad.net/sikuli/+question/272256

-- 
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 #272256]: A workaround for highlighting not working on linux

2015-10-09 Thread RaiMan
Question #272256 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272256

Linked to bug: #1504627
https://bugs.launchpad.net/bugs/1504627
"[request] A workaround for highlighting not working on linux"

-- 
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 #272252]: Authority To Operate on a Government System needed

2015-10-09 Thread RaiMan
Question #272252 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272252

RaiMan posted a new comment:
@Zeks
LOL, such easy ;-)

-- 
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 #272252]: Authority To Operate on a Government System needed

2015-10-09 Thread Zeks
Question #272252 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272252

Zeks posted a new comment:
Why do you even need to use sikuli on a military installation? you can
just as well test apps on a local PC with the same OS and then deploy on
a real system. that's what I am doing

-- 
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 1096528] Re: highlight doesn't work in linux

2015-10-09 Thread Zeks
https://answers.launchpad.net/sikuli/+question/272256

You can work around the issue as I explained in the post above.

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

Title:
  highlight doesn't work in linux

Status in Sikuli:
  In Progress

Bug description:
  The messages say as much so it's clearly a known issue, but I was
  surprised there was no bug report for it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1096528/+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 #272170]: [1.1.0] Running JRuby scripts: JythonSupport: Not possible to get a Jython on to the classpath!

2015-10-09 Thread Serge
Question #272170 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272170

Status: Needs information => Open

Serge gave more information on the question:
In Rubymine - right mouse click on desktop_install_win.feature and
select "Run desktop_install_win.feature"

*.feature is a cucumber file where all tests are described using Gherkin
language. There is no any ruby scripts.

As I now env.rb is running before all others scripts (this is part of
cucumber project structure).

Should I create and try simple script without cucumber?

-- 
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 #272260]: name of image passed to function

2015-10-09 Thread rblack
New question #272260 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272260

Hello, 

how to get the name of an image passed to a function as an object ?

def WaitAndClick(image,time,doclick = 1):
try:
wait(image,time)
if doclick==1:
click(image)
sleep(5)
except:
exit("no image found")

in the excpet i would like to pu the image name or entire object even ? 

image.name is not working, nor any other attribute. 

-- 
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 #272249]: SikuliX 1.1.0 setShowActions dose not work

2015-10-09 Thread masuo
Question #272249 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272249

Status: Answered => Solved

masuo 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 #272256]: A workaround for highlighting not working on linux

2015-10-09 Thread Zeks
New question #272256 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272256

Faced with the problem of debugging why the hell scripts fail on linux I made 
this very simple app to work as a replacement for Region.highlight function:
https://drive.google.com/file/d/0B2zOZZxcHycGLUhNWjFST0hBdk0/view?usp=sharing

It needs qt/qbs to compile but once you do, you can simply use the function 
below everywhere, where region.highlight was used

def highlight(reg, time):
subprocess.call(["/adp/arm/regionHighlighter.sh",
 "--width=" + str(reg.getW()),
 "--height=" + str(reg.getH()),
 "--top=" + str(reg.getY()),
 "--left=" + str(reg.getX()),
 "--time=" + str(time)]);
reg.wait(time/1000)


the parameters above are self-explanatory I think. Except time, which is in 
milliseconds

-- 
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 #272256]: A workaround for highlighting not working on linux

2015-10-09 Thread Zeks
Question #272256 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272256

Status: Open => Solved

Zeks confirmed that the question is solved:
the shell script is needed to set LD_LIBRARY_PATH to recognize path to
libQt5Gui 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 #272170]: [1.1.0] Running JRuby scripts: JythonSupport: Not possible to get a Jython on to the classpath!

2015-10-09 Thread RaiMan
Question #272170 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272170

Status: Open => Needs information

RaiMan requested more information:
where and how do you issue the 
run .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 #272252]: Authority To Operate on a Government System needed

2015-10-09 Thread RaiMan
Question #272252 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272252

Status: Needs information => Answered

RaiMan proposed the following answer:
Ok, after having looked at the post:
I guess you can forget about that.

SikuliX comes with the MIT License, which denies any resposibilities for 
anything when using it.
... and there are not any SLA's available.

-- 
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 #272223]: Can you highlight text with CTRL+Shift+RIGHT ?

2015-10-09 Thread RaiMan
Question #272223 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272223

Status: Open => Answered

RaiMan proposed the following answer:
I have no problems with that (Win 10-64, Java 8, SikuliX 1.1.0):


App.focus("Google Chrome")
wait(1)
type("l", KeyModifier.CTRL)
ZIP="60604" # data[22] 
stationURL = 
"view-source:http://www.wunderground.com/weather-forecast/zmw:"+ZIP+".1.9"; 
paste(stationURL)
type(Key.ENTER)
wait(3)
type("f", KeyModifier.CTRL)
paste("METAR")
type(Key.ENTER)
type(Key.ESC)
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type("c", KeyModifier.CTRL)
print "Clipboard[%s]" % Env.getClipboard()

if it does not work for you, try some short wait()s between the type()s

-- 
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 #272252]: Authority To Operate on a Government System needed

2015-10-09 Thread Paul
Question #272252 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272252

Paul posted a new comment:
This is the best info I have found so far:

http://www.prweb.com/releases/usarmy/ato/prweb10394710.htm

I also do not know where or how to get it, I am still researching. I just
know I need it to use SikUli on a Government system.

-- 
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 #272252]: Authority To Operate on a Government System needed

2015-10-09 Thread RaiMan
Question #272252 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272252

Status: Open => Needs information

RaiMan requested more information:
I live in Germany and do not have any idea, what you are talking about.

If it is at all possible for me (with some acceptable effort at no costs), I am 
willing to try to get this approval.
But you have to give me some pointers.

-- 
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 #272186]: double backslashes in printed strings --- is by convention (a \ must be escaped with a \ )

2015-10-09 Thread RaiMan
Question #272186 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272186

Status: Open => Needs information

RaiMan requested more information:
What SikuliX version?

How do you 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 #272252]: Authority To Operate on a Government System needed

2015-10-09 Thread Paul
New question #272252 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272252

Hi,

To run software on a Gov system, it has to have an approved Authority to 
Operate (it's an Info Assurance process...)

For example, Microsoft Office has a DoD ATO that the Army recognizes; versus 
VLC (VideoLAN player) which is not authorized (and does not have an ATO.)

I can't find the Army IA approval part for your software and would like to use 
it on a GOV system.

Please advise.

Thank You!
Paul Schwarz

-- 
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 #272170]: [1.1.0] Running JRuby scripts: JythonSupport: Not possible to get a Jython on to the classpath!

2015-10-09 Thread Serge
Question #272170 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272170

Status: Answered => Open

Serge is still having a problem:
As I said I'm not familiar enough with Ruby.

I'm using JRuby+Cucumber+Sikuli+Selenium(Watir).
I got errors directly after run .feature. Not sure witch script I need to put 
here? Do you need env.rb?

The env.rb has following:

# required libraries
require 'allure-cucumber'
require 'cucumber/formatter/progress'
require 'java'
require 'sikulix'
include Sikulix
require 'page-object'
require 'page-object/page_factory'
require 'watir-webdriver'
require 'os'


require 'rspec'
require 'data_magic'
require 'require_all'
require 'rubygems'


# Screen modules
require File.expand_path('../utils', __FILE__)
require File.expand_path('../../support/screens/mainscreen', __FILE__)
require File.expand_path('../../support/screens/traynccmenuscreen', __FILE__)
require File.expand_path('../../support/screens/nccviewscreen', __FILE__)

-- 
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 #272186]: double backslashes in printed strings --- is by convention (a \ must be escaped with a \ )

2015-10-09 Thread furni
Question #272186 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272186

Status: Answered => Open

furni is still having a problem:
Thanks for such a quick reply!! :)))

but I still get errors below :(


data = u"C:\Users\a\Desktop\依頼文\sikuli_funcあ.txt"
dir = os.path.dirname(data)
uprint("*** content of " + dir)
for fname in os.listdir(dir):
  uprint(fname)
uprint("*** content of " + data)
ftxt = open(data)
for line in ftxt.readlines():
  uprint(line.strip())


and print out..



[error] script [ third ]] stopped with error at line --unknown--
[error] Could not evaluate error source nor reason. Analyze StackTrace!
[error] java.lang.IllegalArgumentException: Cannot create PyString with 
non-byte value 
at org.python.core.PyString.(PyString.java:64) 
at org.python.core.PyString.(PyString.java:70) 
at org.python.core.Py.UnicodeDecodeError(Py.java:357) 
at org.python.core.codecs.decoding_error(codecs.java:1601) 
at org.python.core.codecs.insertReplacementAndGetResume(codecs.java:1573) 
at org.python.core.PyString.hexescape(PyString.java:537) 
at org.python.core.PyString.decode_UnicodeEscape(PyString.java:465) 
at org.python.antlr.GrammarActions.extractString(GrammarActions.java:535) 
at org.python.antlr.GrammarActions.extractStrings(GrammarActions.java:468) 
at org.python.antlr.PythonParser.atom(PythonParser.java:10996) 
at org.python.antlr.PythonParser.power(PythonParser.java:10363) 
at org.python.antlr.PythonParser.factor(PythonParser.java:10290) 


at org.python.antlr.PythonParser.term(PythonParser.java:9855) 
at org.python.antlr.PythonParser.arith_expr(PythonParser.java:9581) 
at org.python.antlr.PythonParser.shift_expr(PythonParser.java:9308) 
at org.python.antlr.PythonParser.and_expr(PythonParser.java:9141) 
at org.python.antlr.PythonParser.xor_expr(PythonParser.java:8978) 
at org.python.antlr.PythonParser.expr(PythonParser.java:8814) 
at org.python.antlr.PythonParser.comparison(PythonParser.java:8360) 
at org.python.antlr.PythonParser.not_test(PythonParser.java:8287) 
at org.python.antlr.PythonParser.and_test(PythonParser.java:8073) 
at org.python.antlr.PythonParser.or_test(PythonParser.java:7911) 
at org.python.antlr.PythonParser.test(PythonParser.java:7771) 
at org.python.antlr.PythonParser.testlist(PythonParser.java:12705) 
at org.python.antlr.PythonParser.expr_stmt(PythonParser.java:3021) 
at org.python.antlr.PythonParser.small_stmt(PythonParser.java:2675) 
at org.python.antlr.PythonParser.simple_stmt(PythonParser.jav

a:2524) 
at org.python.antlr.PythonParser.stmt(PythonParser.java:2438) 
at org.python.antlr.PythonParser.file_input(PythonParser.java:618) 
at org.python.antlr.BaseParser.parseModule(BaseParser.java:78) 
at org.python.core.CompileMode$3.dispatch(CompileMode.java:22) 
at org.python.core.ParserFacade.parse(ParserFacade.java:158) 
at org.python.core.ParserFacade.parse(ParserFacade.java:188) 
at org.python.core.Py.compile_flags(Py.java:1956) 
at org.python.core.__builtin__.execfile_flags(__builtin__.java:527) 
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:286) 
at 
org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:208)
 
at 
org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:176)
 
at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2369) 

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot 
create PyString with non-byte value


Im running it on Win7 32bit  java version "1.8.0_60" Java(TM) SE Runtime 
Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode, sharing)

Plenty of errors I'm confused :(((

-- 
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 #272223]: Can you highlight text with CTRL+Shift+RIGHT ?

2015-10-09 Thread Sam
Question #272223 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272223

Status: Answered => Open

Sam is still having a problem:
Thanks. I'm finding the element to the right of it and then just highlighting 
right to capture it. Unfortunately, I
ctrl+shift +right doesn't seem to work for highlighting.

Here is my code:


from urlparse import urlparse
import datetime
date = datetime.date.today() # pulls gregorian cal date
print date


## how to open applications directly
# Path to Firefox executable: 
PathChrome = 
"C:\Users\staffos\AppData\Local\Google\Chrome\Application\chrome.exe"


App.open(PathChrome)
wait(10)
type("l", KeyModifier.CTRL)
ZIP="60604" # data[22] 
stationURL = 
"view-source:http://www.wunderground.com/weather-forecast/zmw:"+ZIP+".1.9"; 
paste(stationURL)
type(Key.ENTER)
wait(15)
type(Key.TAB)
type("f", KeyModifier.CTRL)


paste("METAR")
type(Key.ENTER)
wait(1)
type(Key.ESC)

wait(3)
 # this part isn't working. Trying to capture airport value next metar, but 
this won't work to highlight
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )
type(Key.RIGHT, KeyModifier.CTRL+KeyModifier.SHIFT )



Thanks for your help

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

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


[Sikuli-driver] [Bug 1504505] [NEW] [1.1.0] setShowActions() does not work

2015-10-09 Thread RaiMan
Public bug reported:

* a somehow workaround

Settings.Highlight = True

which highlights every match.

-

Environment:
Windows7, SikulixIDE 1.1.0(2015-10-05_17:07)

Code:
setShowActions(True)
click("1444386622630.png")

** Affects: sikuli
 Importance: High
 Assignee: RaiMan (raimund-hocke)
 Status: Fix Committed

** Description changed:

+ * a somehow workaround
+ 
+ Settings.Highlight = True
+ 
+ which highlights every match.
+ 
+ -
+ 
  Environment:
  Windows7, SikulixIDE 1.1.0(2015-10-05_17:07)
  
  Code:
  setShowActions(True)
  click("1444386622630.png")

** Changed in: sikuli
   Status: New => Fix Committed

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

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
Milestone: None => 1.1.1

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

Title:
  [1.1.0] setShowActions() does not work

Status in Sikuli:
  Fix Committed

Bug description:
  * a somehow workaround

  Settings.Highlight = True

  which highlights every match.

  -

  Environment:
  Windows7, SikulixIDE 1.1.0(2015-10-05_17:07)

  Code:
  setShowActions(True)
  click("1444386622630.png")

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1504505/+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 #272249]: Status of bug #1504505 changed to 'Fix Committed' in Sikuli

2015-10-09 Thread RaiMan
Bug #1504505 status changed in Sikuli:

New => Fix Committed

https://bugs.launchpad.net/sikuli/+bug/1504505
"[1.1.0] setShowActions() does not work"

This bug is linked to #272249.
SikuliX 1.1.0 setShowActions dose not work
https://answers.launchpad.net/sikuli/+question/272249

-- 
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 #272249]: SikuliX 1.1.0 setShowActions dose not work

2015-10-09 Thread RaiMan
Question #272249 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272249

Linked to bug: #1504505
https://bugs.launchpad.net/bugs/1504505
"[1.1.0] setShowActions() does not work"

-- 
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 #272249]: SikuliX 1.1.0 setShowActions dose not work

2015-10-09 Thread RaiMan
Question #272249 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272249

Status: Needs information => Answered

RaiMan proposed the following answer:
use 
Settings.Highlight = True
as a somehow workaround (fix might take a while -> 1.1.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 #272249]: SikuliX 1.1.0 setShowActions dose not work

2015-10-09 Thread RaiMan
Question #272249 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272249

Status: Open => Needs information

RaiMan requested more information:
sorry, but this is a 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


[Sikuli-driver] [Question #272249]: SikuliX 1.1.0 setShowActions dose not work

2015-10-09 Thread masuo
New question #272249 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272249

Environment:
Windows7, SikulixIDE 1.1.0(2015-10-05_17:07)

Code:
setShowActions(True)
click("1444386622630.png")

-- 
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 #272241]: Help to click on image based on text info observed

2015-10-09 Thread RaiMan
Question #272241 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272241

RaiMan proposed the following answer:
sorry, you have to transscript this to Java 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] [Bug 1504386] Re: [1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll

2015-10-09 Thread RaiMan
Yes, that is what I mean:
purge everything from the environment, that points to older Sikuli(X) versions.

Not needed with 1.1.0

BTW: you should upgrade your environment to Jython 2.7 (bundled with
SikuliX 1.1.0) and use the latest RobotFramework.

What you only for use with RobotFramework need is on classpath: with
version 1.1.0 it is sikulixapi.jar

As clearly mentioned: Be sure you have read the information on
http://sikulix.com

The experimental support for RFW (tab support) might be interesting as
well.

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

Title:
  [1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll

Status in Sikuli:
  Opinion

Bug description:
  My system is Win7 64bit
  After I finished installing sikulixsetup-1.1.0.jar.
  I run runsikulix.cmd.
  I will get following log

  +++ running this Java
  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
  java version "1.8.0_60"
  Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
  Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
  +++ trying to run SikuliX
  +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine 
-jar
  C:\Vincent\Sikuli\sikulix.jar
  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
  [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [error] WindowsHotkeyManager: JIntellitype problem: Could not load 
JIntellitype.
  dll from local file system or from inside JAR
  Press any key to continue . . .

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1504386/+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 #272241]: Help to click on image based on text info observed

2015-10-09 Thread RaiMan
Question #272241 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272241

RaiMan proposed the following answer:
this works with version 1.1.0 using this web page:

top = "top.png" # image of the title "Question information"
reg = find(top).below()
#reg.highlight(2)
icon = "icon.png" # image of the yellow icons
mIcons = reg.findAllByRow(Pattern(icon).similar(0.95))
for mIcon in mIcons:
  print mIcon
  mIcon.hover()

label = reg.findText("English")
#label.highlight(2)
label.rightAt(15).hover()
wait(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


[Sikuli-driver] [Bug 1504386] Re: [1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll

2015-10-09 Thread vc15lin
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 which was i set in Environment 
Variable.
Now I delete it ,but I also get same log like following.

[info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[error] WindowsHotkeyManager: JIntellitype problem: Could not load JIntellitype.
dll from local file system or from inside JAR

Before use 1.1.0, I use Sikuli X r930 and integrated with robotframework.
So I set a lot of Environment Variable like following

CLASSPATH
C:\Vincent\Sikuli_Robot\sikuli-script.jar;C:\jython2.5.3\jython.jar
Path
C:\Program Files (x86)\Sikuli 
X\libs;C:\jython2.5.3;C:\Python27;C:\Python27\Scripts;
SIKULI_HOME
C:\Program Files (x86)\Sikuli X\

Is above mentioned will affect the installation?

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

Title:
  [1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll

Status in Sikuli:
  Opinion

Bug description:
  My system is Win7 64bit
  After I finished installing sikulixsetup-1.1.0.jar.
  I run runsikulix.cmd.
  I will get following log

  +++ running this Java
  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
  java version "1.8.0_60"
  Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
  Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
  +++ trying to run SikuliX
  +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine 
-jar
  C:\Vincent\Sikuli\sikulix.jar
  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
  [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [error] WindowsHotkeyManager: JIntellitype problem: Could not load 
JIntellitype.
  dll from local file system or from inside JAR
  Press any key to continue . . .

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1504386/+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 #271608]: How can I highlight and copy a certain text?

2015-10-09 Thread Launchpad Janitor
Question #271608 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271608

Status: Needs information => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
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


Re: [Sikuli-driver] [Question #271654]: steps to build sikuli API jar from source

2015-10-09 Thread Launchpad Janitor
Question #271654 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271654

Status: Needs information => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
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


Re: [Sikuli-driver] [Question #272241]: Help to click on image based on text info observed

2015-10-09 Thread RaiMan
Question #272241 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272241

Status: Open => Answered

RaiMan proposed the following answer:
what version of Sikuli?

I strongly recommend to switch to 1.1.0 (http://sikulix.com)

-- 
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 #271680]: [error] ResourceLoaderBasic: check: libs dir is empty, has wrong content or is outdated [action] ResourceLoaderBasic: check: Please wait! Trying to extract libs

2015-10-09 Thread Launchpad Janitor
Question #271680 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271680

Status: Needs information => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Needs information'
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


Re: [Sikuli-driver] [Question #272186]: double backslashes in printed strings --- is by convention (a \ must be escaped with a \ )

2015-10-09 Thread RaiMan
Question #272186 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272186

Status: Open => Answered

RaiMan proposed the following answer:
this works with version 1.1.0 on Windows 10 64 with Java 8 (should work
on Win7, 8 and Java 7 too):

data = u"c:\SikuliX\依頼分\sikuli.funcあ.txt"
dir = os.path.dirname(data)
uprint("*** content of " + dir)
for fname in os.listdir(dir):
  uprint(fname)
uprint("*** content of " + data)
ftxt = open(data)
for line in ftxt.readlines():
  uprint(line.strip())

... and prints out:
*** content of c:\SikuliX\依頼分
sikuli.funcあ.txt
*** content of c:\SikuliX\依頼分\sikuli.funcあ.txt
sikuli.funcあ line 1
sikuli.funcあ line 2
sikuli.funcあ line 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] [Question #272241]: Help to click on image based on text info observed

2015-10-09 Thread Saravanakumar
New question #272241 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272241

Hello team,

I am working on a web based app. that has applet within it. I am using Selenium 
Java and Sikuli for automation testing. In the web page that contain applet, 
the UI is depicted as shown below (I have depicted this as text):

Idle   Run_Icon   Edit_Icon   Info_Icon   
Cross_Icon
Active  Run_Icon   Edit_Icon   Info_Icon   
Cross_Icon

NOTE: The *_Icon are images that are rendered on Applet. This is in PNG format.

I am able to find Run_Icon using following technique using Sikuli:
matches = s.findAll("img/ESRSrun.PNG");
if(m.exists("img/ESRSrun.PNG")  != null){
if(m.getScore() > 0.9){
 m.click();
 System.out.println("clicked active state...");
}
}

I am able to find text called using Match textMatch = s.find("Idle");
My requirement is to click on the Run_Icon only when the text reads Idle as 
text. 

Question : How to I measure and move the mouse cursor towards right of text 
called "Idle" and click on "Run_Icon"

Please share your inputs and ideas. 
Thank you
Saravanakumar

-- 
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 1504386] Re: [1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll

2015-10-09 Thread RaiMan
Just checked on my Win 7 64 with Java 8 both 32-Bit and 64-Bit.

Did not have any problems.

the message 
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

shows, that you are using some modified runsikulix.cmd, since this is
not produced with the standard setup.

So take care, that there are no pointers/references to older Sikuli(X)
versions in your environment at the time, the java command inside
runsikulix.cmd is processed.

** Summary changed:

- Could not load JIntellitype.dll
+ [1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll

** Changed in: sikuli
   Status: New => Opinion

** Changed in: sikuli
 Assignee: (unassigned) => RaiMan (raimund-hocke)

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

Title:
  [1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll

Status in Sikuli:
  Opinion

Bug description:
  My system is Win7 64bit
  After I finished installing sikulixsetup-1.1.0.jar.
  I run runsikulix.cmd.
  I will get following log

  +++ running this Java
  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
  java version "1.8.0_60"
  Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
  Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
  +++ trying to run SikuliX
  +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine 
-jar
  C:\Vincent\Sikuli\sikulix.jar
  Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
  [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [error] WindowsHotkeyManager: JIntellitype problem: Could not load 
JIntellitype.
  dll from local file system or from inside JAR
  Press any key to continue . . .

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