[Sikuli-driver] [Question #267752]: makePath and makeFolder question

2015-06-04 Thread steiryx
New question #267752 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267752

Environment: Sikulix IDE + sikulixsetup-1.1.0-20150601.231015-92-forsetup.jar

Just want to clear regarding the following:

makePath(path1, path2, path3, ...)
returns a path with the correct path seperators for the system running on by 
concatenating the given path elements
from left to right (given as strings). There is no trailing path seperator.

makeFolder(path1, path2, path3, ...)
same as makePath() but trailing path seperator to make it suitable for string 
concatenation.

NOTE makePath and makeFolder on Windows the first path element can be specified 
as a drive letter “X:”

-
mpath = makePath(D:\\,TestTool3,helloworld.sikuli)
print mpath
mpath = makeFolder(D:\\,TestTool3,helloworld.sikuli)
print mpath
-
D:\TestTool3\helloworld.sikuli
D:\TestTool3\helloworld.sikuli\


But when I tried it, the drive should have \\ because if not the output path 
will be

D:TestTool3\helloworld.sikuli
D:TestTool3\helloworld.sikuli\

Am I doing it correctly?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


[Sikuli-driver] [Question #267709]: Status of bug #1461533 changed to 'Fix Released' in Sikuli

2015-06-04 Thread Chp
Bug #1461533 status changed in Sikuli:

In Progress = Fix Released

https://bugs.launchpad.net/sikuli/+bug/1461533
[1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time

This bug is linked to #267709.
not working properly similar
https://answers.launchpad.net/sikuli/+question/267709

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


[Sikuli-driver] [Question #267709]: Status of bug #1461533 changed to 'In Progress' in Sikuli

2015-06-04 Thread RaiMan
Bug #1461533 status changed in Sikuli:

Fix Released = In Progress

https://bugs.launchpad.net/sikuli/+bug/1461533
[1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time

This bug is linked to #267709.
not working properly similar
https://answers.launchpad.net/sikuli/+question/267709

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267750]: user and default log problem

2015-06-04 Thread steiryx
Question #267750 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267750

Linked to bug: #241257
https://bugs.launchpad.net/bugs/241257
firefox crashed with SIGSEGV in g_closure_invoke()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267750]: user and default log problem

2015-06-04 Thread steiryx
Question #267750 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267750

Removed link to bug: #241257
https://bugs.launchpad.net/bugs/241257
firefox crashed with SIGSEGV in g_closure_invoke()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


[Sikuli-driver] [Question #267750]: user and default log problem

2015-06-04 Thread steiryx
New question #267750 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267750

Environment: Eclipse + Java + SikuliX-1.0.1
Hi Raiman,

I am working the logs as mentioned on the sikulix document as below:

-
6.1.2 Writing and redirecting log and debug messages
these are the relevant Settings for user logging showing defaults: (False = 
switched off, True = switched on)
• Settings.UserLogs = True (False: user log calls are ignored)
• Settings.UserLogPrefix = user (message prefix)
• Settings.UserLogTime = True
• Debug.setUserLogfile(absolute-path-to-file) (no default)

the settings for Sikuli’s logging with the defaults: (False = switched off 
(message type not created), True =
switched on)
• Settings.ActionLogs = True (message prefix: [log])
• Settings.InfoLogs = True (message prefix: [info])
• Settings.DebugLogs = False (message prefix: [debug])
• Settings.LogTime = False
• Debug.setLogfile(absolute-path-to-file) to redirect the Sikuli messages to 
a file, no default
---

snippet of codes:
--
for loop {
//for debug only.
Settings.UserLogs = true;
Settings.UserLogPrefix = steiryx;
Settings.UserLogTime = true;
Debug.user(check this out.);
Debug.setUserLogFile(path.dir_name_ + tool_user.log);

Settings.ActionLogs = true;
Settings.InfoLogs = true;   //not sure what log is this.
Settings.DebugLogs = true;  //not sure what log is this.
Settings.LogTime = true;
Debug.setLogFile(path.dir_name_ + tool_def.log);
}
--

For tool_user.log
check this out. comes out on Eclipse console log only once
check this out. comes out multiple times when I move the Debug.setUserLogFile
outside(below) the loop.
But in any case the file is still blank.

For tool_def.log
No logs at all even if the setLogFile is outside(below) the for loop.

I tried to put the Debug.setUserLogFile and setLogFile before the loop and it 
works!
So need to give first the file where it should be written.

My question will be regarding my comments
Settings.InfoLogs = true;   //not sure what log is this.
Settings.DebugLogs = true;  //not sure what log is this.

i tried to make it true/false but no changes in log at all.
[log (15/06/04 16:04:34)] CLICK on L(557,730)@S(0)[0,0 1280x1024]
What should be the difference I should see?




-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267750]: user and default log problem

2015-06-04 Thread steiryx
Question #267750 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267750

Linked to bug: #241257
https://bugs.launchpad.net/bugs/241257
firefox crashed with SIGSEGV in g_closure_invoke()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267750]: user and default log problem

2015-06-04 Thread steiryx
Question #267750 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267750

Removed link to bug: #241257
https://bugs.launchpad.net/bugs/241257
firefox crashed with SIGSEGV in g_closure_invoke()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267725]: Change findAll WaitTimeout individually, and Wait for Duplicated or Not Img

2015-06-04 Thread eduardobedoya
Question #267725 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267725

Summary changed to:
Change findAll WaitTimeout individually, and Wait for Duplicated or Not Img

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267725]: change findAll WaitTimeout individually, and Wait for Duplicated or Not Img

2015-06-04 Thread eduardobedoya
Question #267725 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267725

Description changed to:
Hi community, I have kinda two questions, but are related to the same
script.

1) I would like to change the default WaitTimeout of a single findAll

I know Settings.AutoWaitTimeout = (seconds) can change the default WaitTimeout 
in all the script (I don't know why everytime I have tested it, it only applies 
from the second time I run my script on, the first time I run the script the 
WaitTimeout remain to the defult value 3secs despite Settings.AutoWaitTimeout 
is set to 0)
I know also setAutoWaitTimeout = (seconds) set the maximum waiting time for all 
subsequent find operations. (no matter if I put this action inside a function? 
other findAll op will change its WaitTimeout no matte if they are inside other 
functions?)

So if I want to change the default WaitTimeout only for a single findAll
op, I should use two setAutoWaitTimeout, one before, and another after
the findAll op, Iam right? is this the only way?

isn't anything like...
if exist (Img, 0.2): #where 0.2 is the wait time and can be changed
but applied to findAll?

2) How can I wait for an Image (eg. RedStartImg) but sometimes there is
already a RedStartImg in the screen and it will appear a second one, How
can I wait for that second RedStartImg? sometimes there are two
RedStartImg and it will appear a third one, some times there is None and
it will appear one, How can I wait for that RedStartImage in this case?
I know that RedStartImage takes to appear from 0.5 to 2 secs.

Thanks Advanced.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


[Sikuli-driver] [Question #267756]: Do sikuli identify minor differences in image

2015-06-04 Thread Mansi
New question #267756 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267756

Hi

I am using sikuli-script-jar with Selenium. Application i want to automate is 
basically a image editor.

My question is Can sikuli identify minor image difference. I edited an image 
 removed some spots. Can sikui identify these kind of minor differences

My sample code

public WorkflowValidation(WebDriver wd,String file)
   {
  Screen sc1 = new Screen();
 
  Common.sleep(2000);
  sc1.getLastScreenImage();
 
  sc1.capture();

  clipExist(sc1, file);
  Common.sleep(2000);
 
 
   }
  
   public static boolean clipExist(Screen screen, String clip )
{
   Match m = screen.exists(clip);
if(m != null)
{

  System.out.println(pass);
  return true;
   }
  else
  {
System.out.println(Fail);
return false;
  }
  }

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


[Sikuli-driver] [Bug 1459131] Re: [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed in 1.1.0

2015-06-04 Thread SL5
+++ running this Java
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar 
E:\fre\public\HtmlDevelop\Java\SikuliX\sikulix.jar -d 3 -c
[debug] RunTimeINIT: loadOptions: check: E:\fre\public\HtmlDevelop\Java\SikuliX
[debug] RunTimeINIT: loadOptions: check: C:\Users\lauffer
[debug] RunTimeINIT: loadOptions: check: 
C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: fSxBase: E:\fre\public\HtmlDevelop\Java\SikuliX
[debug] RunTimeINIT: runs as sikulix.jar in: 
E:\fre\public\HtmlDevelop\Java\SikuliX
[debug] RunTimeINIT: exists libs folder at: 
C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixLibs_201506040100
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixLibs_201506040100
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
* show environment for IDE (build 201506040100)
user.home: C:\Users\lauffer
user.dir (work dir): E:\fre\public\HtmlDevelop\Java\SikuliX
user.name: lauffer
java.io.tmpdir: C:\Users\lauffer\AppData\Local\Temp
running 64Bit on Windows (6.1) from a jar
java 8-64 version 1.8.0_45-b15 vm 25.45-b02 class 52.0 arch amd64
app data folder: C:\Users\lauffer\AppData\Roaming\Sikulix
libs folder: C:\Users\lauffer\AppData\Roaming\Sikulix\SikulixLibs_201506040100
executing jar: E:\fre\public\HtmlDevelop\Java\SikuliX\sikulix.jar
*** classpath dump sikulix
  0: /E:/fre/public/HtmlDevelop/Java/SikuliX/sikulix.jar
*** classpath dump end
* show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] init user preferences
[debug] IDE: running with Locale: de_DE
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[info] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[debug] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: * Jython sys.path
 0: E:\fre\public\HtmlDevelop\Java\SikuliX\Lib
 1: E:\fre\public\HtmlDevelop\Java\SikuliX\sikulix.jar\Lib
 2: __classpath__
 3: __pyclasspath__/
[debug] JythonSupport: * Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: VisionProxy.dll
[debug] Mouse: init
[debug] KeyBoard: init
[debug] Screen: initScreens: multi monitor mouse check
[debug] Screen: *** checking: S(0)[0,0 1600x900] center: (800, 450) --- OK
[debug] Screen: *** checking: S(1)[1600,0 1366x768] center: (2283, 384) --- OK
[debug] Screen: *** checking: S(2)[1600,0 1366x768] center: (2283, 384) --- OK
[debug] Screen: *** checking: S(3)[1600,0 1366x768] center: (2283, 384) --- OK
[debug] RunTimeIDE: loadLib: WinUtil.dll
[debug] Jython: requested to use as default region: R[0,0 1600x900]@S(0)
[debug] Jython: sikuli: Sikuli: ending init
[debug] JythonScriptRunner: running Jython 2.7.0 
[debug] ScriptingSupport: initScriptingSupport: added: jython
[debug] ScriptingSupport: initScriptingSupport: warning: 
org.sikuli.scriptrunner.IScriptRunner: Provider 
org.sikuli.scriptrunner.JRubyScriptRunner could not be instantiated
[debug] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython 
(py)
[debug] IDE: Adding components to window
[debug] [I18N] menuRecent
[debug] IDE: creating tabbed editor
[debug] IDE: creating message area
[debug] IDE: creating combined work window
[debug] IDE: Putting all together
[debug] restore session: 
E:\fre\private\HtmlDevelop\Sikuli\autoInstall_EAP_phpStorm.sikuli
[debug] IDE: doNew: create new tab at: -1
[debug] EditorPane: EditorPane: creating new pane (constructor)
[debug] EditorPane: loadfile: 
E:\fre\private\HtmlDevelop\Sikuli\autoInstall_EAP_phpStorm.sikuli
[debug] ImagePath: new BundlePath:
/E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/
[debug] EditorPane: initBeforeLoad: py
[debug] EditorPane: updateDocumentListeners from: initBeforeLoad
[debug] EditorPane: InitTab: (text/python)
[debug] SikuliEditorKit.read
[debug] Image: loaded: Release Notes Download.png 
(file:/E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/Release
 Notes Download.png)
[debug] Image: cached: Release Notes Download.png (24 KB) (# 1 KB 24 -- 0 % of 
64 MB)
[debug] Image: reused: Release Notes Download.png 
(file:/E:/fre/private/HtmlDevelop/Sikuli/autoInstall_EAP_phpStorm.sikuli/Release
 Notes Download.png)
[debug] EditorPane: updateDocumentListeners from: loadFile
[debug] restore session: C:\Users\lauffer\Documents\testWithSikuliX.sikuli
[debug] IDE: doNew: create new tab at: -1
[debug] EditorPane: EditorPane: 

[Sikuli-driver] [Bug 1459131] Re: [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed in 1.1.0

2015-06-04 Thread SL5
** Attachment added: compare to that
   
https://bugs.launchpad.net/sikuli/+bug/1459131/+attachment/4410200/+files/2015-06-05%2007_38_53-.png

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

Title:
  [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed
  in 1.1.0

Status in Sikuli:
  Fix Committed

Bug description:
  update: works with sikulix-1.1.0-20150524.231037-84 (update at
  15-05-27_09-56)

  hi all :) hug :)

  i work with 4 monitors with different resulutions.
  all works in java not in Jython.

  may is should try beta version is available: SikuliX-1.0.1 ?
  is use Sikuli 1.0.1

  highlight() draw red border for each monitor correct but shows only
  the default monitor inside.

  n = getNumberScreens()
  for ScreenId in range(n):
     reg.highlight(4) #  red frame around for seconds

  i tested with one image.
  my image was not found and clicked at monitor 1,2,3, was found only monitor 1.

  the java version works for me but the Jython version not. i would use
  the Jython version for webinar.

  some additional informations:

  ('- ScreenId = ', 0)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  [log] highlight S(0)[0,0 1600x900] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 1)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  [log] highlight S(1)[320,-720 1280x720] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 2)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  [log] highlight S(2)[1600,-1080 1920x1080] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 3)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  [log] highlight S(3)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs

  print (Env.getSikuliVersion() )
  n = getNumberScreens()
  for ScreenId in range(n):
  print(- ScreenId = , ScreenId)
  reg = Screen(ScreenId)
  print(reg: x, y, w, h = , reg.x , reg.y, reg.w, reg.h)
  x = reg.x
  y = reg.y
  topLeft = Location(x, y) # equivalent to
  topLeft = reg.getTopLeft()
  botRight = reg.getBottomRight()
  h = botRight.y - y
  w = botRight.x - x

  #reg.h = theWidth # equivalent to
  #reg.setH(h)
  #print( x, y, w, h = , x, y, w , h)
  reg.setH(h)
  reg.setY(y)
  #print()
  print(reg: x, y, w, h = , reg.x , reg.y, reg.w, reg.h)
  #reg.setAsScreen()
     # if ScreenId != 1:
  #continue
  reg.highlight(4) # dud red frame around for seconds
  #reg.hover(3)

     # reg.selectRegion(middle of region)

  # SCREEN = reg
  #Screen(0).setROI(reg)
  # setROI(reg)
  #mouse = new DesktopMouse()
     # reg.setAutoWaitTimeout(10)

  if reg.exists(1432671701727.png):
  print(found at ScreenId =  , ScreenId)
  reg.hover(1432671701727.png)
  sleep(1000)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1459131/+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 #267768]: IDE needs to be able to rerun the last line

2015-06-04 Thread Zeks
New question #267768 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267768

Having extensively worked with sikuli the last 2 weeks I think IDE lacks 2 very 
important features:
1) reload imported scripts
2) rerun last line

My workflow usually goes like that:
 -- some lengthy script executes but fails at some line in the middle
 -- I try commenting out lines before this one
-- this in itself is a feat as IDE does not highlight lines commented with 
'''
-- I fail as IDE fails to save script (see my previous bug) (not always)
-- If it does not fail to save I try to rerun the line to make sure there 
were no problems due to elements being slow to appear
-- if it is a legitimate error in imported script that I wrote, I fix it 
and HAVE TO RELAUNCH THE IDE
-- I relaunch and rerun the script
  -- the script has to do all the init stuff again before it can run the 
problematic line

There are a lot of unnecessary actions above. relaunching the IDE, 
reinitializing anchor points pre-script execution, having to comment out chunks 
of code so that I don't have to run the whole script up to this line again... 

Could we please have the ide that does not require all that?:)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267756]: Do sikuli identify minor differences in image

2015-06-04 Thread Zeks
Question #267756 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267756

Zeks posted a new comment:
you can set pattern similarity when you search the screen for an image.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


Re: [Sikuli-driver] [Question #267723]: How to distinguish two (or more) equal buttons in one image?

2015-06-04 Thread Zeks
Question #267723 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/267723

Zeks posted a new comment:
Normally if the buttons have the same image this means they are positioned at a 
different regions of the application.
My workflow is to split the window into regions based on some distinct anchor 
points when the script starts and later use these subregions to ensure correct 
buttons are clicked

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


[Sikuli-driver] [Question #267765]: Can't use App.open, openApp, App.focus (Mac 10.7, Sikuli 1.1 2015-06-04)

2015-06-04 Thread Linda
New question #267765 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267765

Updated to latest build of 1.1 today, and my scripts that previously worked 
fine on 1.0 have now stopped working.. 

Env:
Mac 10.7
Sikuli IDE 1.1 2015-06-04

I can't open any app with Sikuli, I have tried the following:
# Open the app if its not already open
openApp(Safari.app)
wait(2)
App.open(Safari.app)
wait(2)
App.focus(Safari.app)

It just blinks in the Dock, and then nothing happens (app not docked)

output:
[log] App.open [-1:Safari]
[log] App.open [-1:Safari]
[log] App.focus: [-1:Safari]

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

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


[Sikuli-driver] [Bug 1462037] [NEW] [1.1.0] Click event not performed on MAC

2015-06-04 Thread Jason
Public bug reported:

MAC version: 10.10.3
Sikuli version: sikulixsetup-1.1.0-20150602.231023-93-forsetup.jar

Issue: I used the generated API in my java program. The program is to
click a button on an application. Sikuli successfully identified the
location of the picture and moved there, but click is not performed.
Under some other circumstances, clicks worked.

There's no error reported.

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

Title:
  [1.1.0] Click event not performed on MAC

Status in Sikuli:
  New

Bug description:
  MAC version: 10.10.3
  Sikuli version: sikulixsetup-1.1.0-20150602.231023-93-forsetup.jar

  Issue: I used the generated API in my java program. The program is to
  click a button on an application. Sikuli successfully identified the
  location of the picture and moved there, but click is not performed.
  Under some other circumstances, clicks worked.

  There's no error reported.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1462037/+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 1461533] Re: [1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time

2015-06-04 Thread RaiMan
** Changed in: sikuli
   Status: Fix Released = In Progress

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

Title:
  [1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time

Status in Sikuli:
  In Progress

Bug description:
  Please help me.
  Here is my code:
  def open_shop(self):
  API.log('open_shop')

  # check if its already opened
  API.log(str(Pattern(Interface.Action['shop_slide']).similar(0.9)))
  shop_slide_match = 
self.GR.exists(Pattern(Interface.Action['shop_slide']).similar(0.9), 5)
  if shop_slide_match:
  API.log('-' + str(shop_slide_match))
  self.click(shop_slide_match.offset(Location(-25, 0)))

  here is my log:
  P(Game/Action/shop_slide.png) S: 0.9
  -M[1650,464 85x32]@S(S(0)[0,0 1920x1080]) S:0,71 C:1692,480 
[21/21 msec]

  how can this be? I say look for an image with similar (0.9) and I
  found it with (0.71)

  it happens when I call the method again

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1461533/+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 1459131] Re: [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed in 1.1.0

2015-06-04 Thread RaiMan
could you just start the IDE from command line with the parameters 
runsikulix.cmd -d 3 -c

and post the startup log.

No need to run anything.

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

Title:
  [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed
  in 1.1.0

Status in Sikuli:
  Fix Committed

Bug description:
  update: works with sikulix-1.1.0-20150524.231037-84 (update at
  15-05-27_09-56)

  hi all :) hug :)

  i work with 4 monitors with different resulutions.
  all works in java not in Jython.

  may is should try beta version is available: SikuliX-1.0.1 ?
  is use Sikuli 1.0.1

  highlight() draw red border for each monitor correct but shows only
  the default monitor inside.

  n = getNumberScreens()
  for ScreenId in range(n):
     reg.highlight(4) #  red frame around for seconds

  i tested with one image.
  my image was not found and clicked at monitor 1,2,3, was found only monitor 1.

  the java version works for me but the Jython version not. i would use
  the Jython version for webinar.

  some additional informations:

  ('- ScreenId = ', 0)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  [log] highlight S(0)[0,0 1600x900] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 1)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  [log] highlight S(1)[320,-720 1280x720] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 2)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  [log] highlight S(2)[1600,-1080 1920x1080] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 3)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  [log] highlight S(3)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs

  print (Env.getSikuliVersion() )
  n = getNumberScreens()
  for ScreenId in range(n):
  print(- ScreenId = , ScreenId)
  reg = Screen(ScreenId)
  print(reg: x, y, w, h = , reg.x , reg.y, reg.w, reg.h)
  x = reg.x
  y = reg.y
  topLeft = Location(x, y) # equivalent to
  topLeft = reg.getTopLeft()
  botRight = reg.getBottomRight()
  h = botRight.y - y
  w = botRight.x - x

  #reg.h = theWidth # equivalent to
  #reg.setH(h)
  #print( x, y, w, h = , x, y, w , h)
  reg.setH(h)
  reg.setY(y)
  #print()
  print(reg: x, y, w, h = , reg.x , reg.y, reg.w, reg.h)
  #reg.setAsScreen()
     # if ScreenId != 1:
  #continue
  reg.highlight(4) # dud red frame around for seconds
  #reg.hover(3)

     # reg.selectRegion(middle of region)

  # SCREEN = reg
  #Screen(0).setROI(reg)
  # setROI(reg)
  #mouse = new DesktopMouse()
     # reg.setAutoWaitTimeout(10)

  if reg.exists(1432671701727.png):
  print(found at ScreenId =  , ScreenId)
  reg.hover(1432671701727.png)
  sleep(1000)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1459131/+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 1459131] Re: [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed in 1.1.0

2015-06-04 Thread SL5
today i updated and checked ocr recognition.
and i stated the same script. bad results :-O 


SikuliX 1.1.0
('- ScreenId = ', 0)
('reg: x, y, w, h = ', 0, 0, 1600, 900)
('reg: x, y, w, h = ', 0, 0, 1600, 899)
[log] highlight S(0)[0,0 1600x900] E:Y, T:3,0 for 4.0 secs

('- ScreenId = ', 1)
('reg: x, y, w, h = ', 1600, 0, 1366, 768)
('reg: x, y, w, h = ', 1600, 0, 1366, 767)
[log] highlight S(1)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs

('- ScreenId = ', 2)
('reg: x, y, w, h = ', 1600, 0, 1366, 768)
('reg: x, y, w, h = ', 1600, 0, 1366, 767)
[log] highlight S(1)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs

('- ScreenId = ', 3)
('reg: x, y, w, h = ', 1600, 0, 1366, 768)
('reg: x, y, w, h = ', 1600, 0, 1366, 767)
[log] highlight S(1)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs


** Attachment added: testWithSikuliX.py
   
https://bugs.launchpad.net/sikuli/+bug/1459131/+attachment/4409650/+files/testWithSikuliX.py

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

Title:
  [1.0.1] multiMonitors jython dont find/click/... in screen --- fixed
  in 1.1.0

Status in Sikuli:
  Fix Committed

Bug description:
  update: works with sikulix-1.1.0-20150524.231037-84 (update at
  15-05-27_09-56)

  hi all :) hug :)

  i work with 4 monitors with different resulutions.
  all works in java not in Jython.

  may is should try beta version is available: SikuliX-1.0.1 ?
  is use Sikuli 1.0.1

  highlight() draw red border for each monitor correct but shows only
  the default monitor inside.

  n = getNumberScreens()
  for ScreenId in range(n):
     reg.highlight(4) #  red frame around for seconds

  i tested with one image.
  my image was not found and clicked at monitor 1,2,3, was found only monitor 1.

  the java version works for me but the Jython version not. i would use
  the Jython version for webinar.

  some additional informations:

  ('- ScreenId = ', 0)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  ('reg: x, y, w, h = ', 0, 0, 1600, 900)
  [log] highlight S(0)[0,0 1600x900] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 1)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  ('reg: x, y, w, h = ', 320, -720, 1280, 720)
  [log] highlight S(1)[320,-720 1280x720] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 2)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  ('reg: x, y, w, h = ', 1600, -1080, 1920, 1080)
  [log] highlight S(2)[1600,-1080 1920x1080] E:Y, T:3,0 for 4.0 secs

  ('- ScreenId = ', 3)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  ('reg: x, y, w, h = ', 1600, 0, 1366, 768)
  [log] highlight S(3)[1600,0 1366x768] E:Y, T:3,0 for 4.0 secs

  print (Env.getSikuliVersion() )
  n = getNumberScreens()
  for ScreenId in range(n):
  print(- ScreenId = , ScreenId)
  reg = Screen(ScreenId)
  print(reg: x, y, w, h = , reg.x , reg.y, reg.w, reg.h)
  x = reg.x
  y = reg.y
  topLeft = Location(x, y) # equivalent to
  topLeft = reg.getTopLeft()
  botRight = reg.getBottomRight()
  h = botRight.y - y
  w = botRight.x - x

  #reg.h = theWidth # equivalent to
  #reg.setH(h)
  #print( x, y, w, h = , x, y, w , h)
  reg.setH(h)
  reg.setY(y)
  #print()
  print(reg: x, y, w, h = , reg.x , reg.y, reg.w, reg.h)
  #reg.setAsScreen()
     # if ScreenId != 1:
  #continue
  reg.highlight(4) # dud red frame around for seconds
  #reg.hover(3)

     # reg.selectRegion(middle of region)

  # SCREEN = reg
  #Screen(0).setROI(reg)
  # setROI(reg)
  #mouse = new DesktopMouse()
     # reg.setAutoWaitTimeout(10)

  if reg.exists(1432671701727.png):
  print(found at ScreenId =  , ScreenId)
  reg.hover(1432671701727.png)
  sleep(1000)

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1459131/+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 1461533] Re: [1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time

2015-06-04 Thread Chp
RaiMan, I'm sorry, I have switched bug status to Fix released
accidentily

** Changed in: sikuli
   Status: In Progress = Fix Released

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

Title:
  [1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time

Status in Sikuli:
  Fix Released

Bug description:
  Please help me.
  Here is my code:
  def open_shop(self):
  API.log('open_shop')

  # check if its already opened
  API.log(str(Pattern(Interface.Action['shop_slide']).similar(0.9)))
  shop_slide_match = 
self.GR.exists(Pattern(Interface.Action['shop_slide']).similar(0.9), 5)
  if shop_slide_match:
  API.log('-' + str(shop_slide_match))
  self.click(shop_slide_match.offset(Location(-25, 0)))

  here is my log:
  P(Game/Action/shop_slide.png) S: 0.9
  -M[1650,464 85x32]@S(S(0)[0,0 1920x1080]) S:0,71 C:1692,480 
[21/21 msec]

  how can this be? I say look for an image with similar (0.9) and I
  found it with (0.71)

  it happens when I call the method again

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1461533/+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 1440175] Re: [1.1.0] IDE: Error when saving script containing a comment block

2015-06-04 Thread Linda
Hi, just FYI
I have the build from 2015-06-03 of Sikuli 1.1.0
And I am also experiencing this issue.
If I try to save any code that have a block comment that is more than 30 lines 
long I cannot save the file from the IDE.

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

Title:
  [1.1.0] IDE: Error when saving script containing a comment block

Status in Sikuli:
  In Progress

Bug description:
  Often, when I comment out large portions of my script using a comment
  block (), I'll receive an error when I save the file.

[error] IDE: Problem when trying to invoke menu action doSave
  Error: null

  This doesn't happen every time, but most of the time. The file still
  shows in unsaved mode (with the * in the tab) but the changes are
  saved. When I close/reopen the file, the script runs as expected.

  This has happened through 1.1.0, but I was just able to track it down.
  I'm not sure if it happened in 1.0.1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1440175/+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 1440175] Re: [1.1.0] IDE: Error when saving script containing a comment block

2015-06-04 Thread Linda
Update: it's not 30 lines of code, it is when the comment block contains
1085 or more characters.

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

Title:
  [1.1.0] IDE: Error when saving script containing a comment block

Status in Sikuli:
  In Progress

Bug description:
  Often, when I comment out large portions of my script using a comment
  block (), I'll receive an error when I save the file.

[error] IDE: Problem when trying to invoke menu action doSave
  Error: null

  This doesn't happen every time, but most of the time. The file still
  shows in unsaved mode (with the * in the tab) but the changes are
  saved. When I close/reopen the file, the script runs as expected.

  This has happened through 1.1.0, but I was just able to track it down.
  I'm not sure if it happened in 1.0.1.

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