Re: [Sikuli-driver] [Question #215864]: SwitchApp on Latest FireFox window without unique PageTitle

2012-12-04 Thread anish
Question #215864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215864

Status: Needs information = Open

anish gave more information on the question:
Windows 7

FF version 4.0(cant upgrade it becasue of automation limitation)

I have a window opened which launches a new window

I want to switchApp on the new window .

PageTitle of main window is unique but PageTitle of the new window is
not present it just shows Mozilla Firefox  in title bar.

-- 
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 #215933]: Possible to change the command list to my own functions?

2012-12-04 Thread Calvin
New question #215933 on Sikuli:
https://answers.launchpad.net/sikuli/+question/215933

I like to create a command list to my own customized function. Is there any way 
in doing this?

-- 
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 #215933]: Possible to change the command list to my own functions?

2012-12-04 Thread RaiMan
Question #215933 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215933

Status: Open = Needs information

RaiMan requested more information:
This feature is hard coded in the Sikuli IDE Java sources. 
It is up to you, to step into the adventure of modifying the IDE sources ;-)

But that is really a good idea, to make this configurable using e.g. a JSON 
config file.
I put it on the list for the new version.

Could you just give me an idea, what you would like to customize and
how.

-- 
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 #215864]: SwitchApp on Latest FireFox window without unique PageTitle

2012-12-04 Thread RaiMan
Question #215864 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215864

Status: Open = Answered

RaiMan proposed the following answer:
I am just working with a similar problem on Win/ with FF 14 (but should
not make any difference).

App(Mozilla Firefox).focus()

does not work at all for me. Firefox has some invisible windows open
(some with coordinates outside the screen and some with no size). The
focus selects one of these windows, which does not help.

I have no solution for that.

Since I open new Firefox windows from my script using ctrl-N, I have no
problems, since the new window has the focus after that.

A possible solution in your case (I use it, to close all open FF windows using 
alt-F4)
- click besides the orange FF menu in the top left of the window
should work, if only for the newly opened window this is fully visible

-- 
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 #215940]: One display in pattern setting - matching preview

2012-12-04 Thread dinev
New question #215940 on Sikuli:
https://answers.launchpad.net/sikuli/+question/215940

Can I somehow configure sikuli IDE to show/search only on my primary screen.  
It will be more convenient then to explore the result. 

Or is there any way to zoom in into Matching preview

Thanks

-- 
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 #215944]: (Russian) How I can do several low-level mouse action simultaneously

2012-12-04 Thread Alexandr
A question was asked in a language (Russian) spoken by
none of the registered Sikuli answer contacts.

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

Hello.

In my project I need to do several (two) low-level mouse action simultaneously. 
This is mouseDown(Button.RIGHT) and mouseMove(PSRML).  

When I write: mouseDown(Button.RIGHT) mouseMove(i.png) or  
mouseDown(Button.RIGHT)|mouseMove(F.png) ,  I get required result, but 
program stopping and throw out exception TypeError: unsupported operand 
type(s) for  : 'NoneType' and 'int'. 

How i can do this operation in sikuli X?

-- 
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 #215940]: One display in pattern setting - matching preview

2012-12-04 Thread RaiMan
Question #215940 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215940

Status: Open = Answered

RaiMan proposed the following answer:
Preview currently does not have a feature to select the monitor to
search nor can the preview be zoomed in (like the target offset setting
support).

I have it on the list for the next version.

-- 
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 #215944]: How I can do several low-level mouse action simultaneously

2012-12-04 Thread RaiMan
Question #215944 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215944

Status: Open = Answered

RaiMan proposed the following answer:
In no case, mouse actions are done simultaneously. Every action is
done, one after the other.

mouseDown() holds the specified buttons down until a mouseUp() is
encountered later in the script.

so the correct usage is:

mouseDown(Button.RIGHT)
wait(0.3) # optional
mouseMove(i.png)
wait(0.3) # optional
mouseUp()

-- 
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 #215944]: How I can do several low-level mouse action simultaneously

2012-12-04 Thread Alexandr
Question #215944 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215944

Status: Answered = Solved

Alexandr confirmed that the question is solved:
Thanks!

-- 
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] [Bug 1086238] Re: Sikuli throws StackOverflowError when capturing a screenshot on a webpage already has opacity

2012-12-04 Thread Joe Bartlett
I have Java 7 installed, but I also have Java 6 (update 37) installed
because Sikuli wouldn't let me install without it. Is the Java Path
hardcoded in the program or is it picking-up the location from an
environment variable? The only place I could find where any locations
were set is in the Sikuli-IDE.bat file but I was not launching using
that; I was using the .exe instead.

However, when I did launch using the batch file, I could capture the screenshot 
with no problems. I suppose Java 7 really was the problem!
Thanks!

Joe

 Date: Tue, 4 Dec 2012 06:42:18 +
 From: rmhdeve...@me.com
 To: jbartlet...@hotmail.com
 Subject: [Bug 1086238] Re: Sikuli throws StackOverflowError when capturing a  
 screenshot on a webpage already has opacity
 
 Using Java 7?
 
 -- 
 You received this bug notification because you are subscribed to the bug
 report.
 https://bugs.launchpad.net/bugs/1086238
 
 Title:
   Sikuli throws StackOverflowError when capturing a screenshot on a
   webpage already has opacity
 
 Status in Sikuli:
   New
 
 Bug description:
   Sikuli r930 for Windows 7 SP1 64-bit.
 
   When on a page which has a layer of opacity set around a particular
   window (to draw attention to it and prevent focus to other parts of
   the page), Sikuli`s capture screenshot gesture throws a huge
   StackOverflowError:
 
   Exception in thread capture java.lang.StackOverflowError
   at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
   at java.awt.Window$1.setOpacity(Unknown Source)
   at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
   at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
   at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
   at java.awt.Window$1.setOpacity(Unknown Source)
   at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
   at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
   at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
   at java.awt.Window$1.setOpacity(Unknown Source)
   at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
   at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
   at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
   at java.awt.Window$1.setOpacity(Unknown Source)
   at com.sun.awt.AWTUtilities.setWindowOpacity(Unknow
   n Source)
   ... and repeated the same stack dozens of times.
 
   In my case, I was logged-into a browser-based game and attempted to
   try capturing part of the screen in Sikuli and it failed. This is
   reproducible every time. The full stack and a screenshot of the
   webpage are attached.
 
 To manage notifications about this bug go to:
 https://bugs.launchpad.net/sikuli/+bug/1086238/+subscriptions

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

Title:
  Sikuli throws StackOverflowError when capturing a screenshot on a
  webpage already has opacity

Status in Sikuli:
  New

Bug description:
  Sikuli r930 for Windows 7 SP1 64-bit.

  When on a page which has a layer of opacity set around a particular
  window (to draw attention to it and prevent focus to other parts of
  the page), Sikuli`s capture screenshot gesture throws a huge
  StackOverflowError:

  Exception in thread capture java.lang.StackOverflowError
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
  at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
  at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
  at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)
  at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
  at java.awt.Window$1.setOpacity(Unknown Source)
  at com.sun.awt.AWTUtilities.setWindowOpacity(Unknow
  n Source)
  ... and repeated the same stack dozens of times.

  In my case, I was logged-into a browser-based game and attempted to
  try capturing part of the screen in Sikuli and it failed. This is
  reproducible every time. The full stack and a screenshot of the
  webpage are attached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1086238/+subscriptions

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

Re: [Sikuli-driver] [Question #215980]: having trouble with targetOffset

2012-12-04 Thread vignesh
Question #215980 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215980

Description changed to:
I have a flash/flex window which gets launched when i click a button(i
am coming via a different application to the flash app)

1.I am maximizing my flash page and when i record the starticon via sikuli ide 
and play back it play backs nicely with out any problem when playback via 
sikuli IDE,But now i am trying to keep the start_icon.png in my img directory 
and i try to access the same and it is not able to identify the actual object 
(I am performing the same via the Java code). Is there a way to identify what 
is the exact value we need to give for targetoffset's X and Y Values.
Or it is always a guess and try and try...(i mean no defined method for 
that)

static Screen s1 = new Screen();
Pattern startIcon = new Pattern(path + \\ + start_icon.png);
startIcon = startIcon.targetOffset(0, 10)
s1.click(startIcon);

i am using windows 7 OS

-- 
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 #215980]: having trouble with targetOffset

2012-12-04 Thread vignesh
Question #215980 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215980

Description changed to:
I have a flash/flex window which gets launched when i click a button(i
am coming via a different application to the flash app)

1.I am maximizing my flash page and when i record the starticon via sikuli ide 
and play back it play backs nicely with out any problem,But now i am trying to 
keep the start_icon.png in my img directory and i try to access the same and 
it is not able to identify the actual object. Is there a way to identify what 
is the exact value we need to give for targetoffset's X and Y Values.
Or it is always a guess and try and try...(i mean no defined method for 
that)

static Screen s1 = new Screen();
Pattern startIcon = new Pattern(path + \\ + start_icon.png);
startIcon = startIcon.targetOffset(0, 10)
s1.click(startIcon);

i am using windows 7 OS

-- 
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 #215933]: Possible to change the command list to my own functions?

2012-12-04 Thread Calvin
Question #215933 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/215933

Status: Needs information = Open

Calvin gave more information on the question:
I had created a mouse move function that utilizes the image recognition.
I used it many times in my scripts through copy and paste (which is
quite nuisance since the sikuli script editor sometimes wouldn't
highlight the sentence).

By putting it on the command line, perhaps i could just simply click my
customized function and it will auto prompt capture of screenshot (Same
like click() basically).

-- 
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 #216003]: How to issue tab command in sikuli

2012-12-04 Thread unet
New question #216003 on Sikuli:
https://answers.launchpad.net/sikuli/+question/216003

I am using sikuli + java. I want to jus do a TAB keypress. How do i do this in 
java. I tried s.type doesnt work for me.. Any ideas?

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