Re: [Sikuli-driver] [Question #189054]: how to generate sequential numbers as my script saves screen grabs

2012-02-28 Thread RaiMan
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054

Status: Open = Answered

RaiMan proposed the following answer:
trying hard ;-) to identify the code block, that should be repeated, I
suggest the following:


click(READING-5.png)
for pnum in range(1,400): # see comment
click(1330391579704-3.png)
click(new-2.png)
wait(1)
dragDrop(READING-5.png, 1330385440306-2.png)
click(IIDDIS-2.png)
wait(1)
doubleClick(Filename-2.png)
type(%03d%pnum)
click(Cancel-2.png)
wait(1)
doubleClick(1330388006782-2.png)

--- comment: when testing, you should put 3 or 4 instead of 400

After copying it to the IDE (you need to copy it into your current
script and delete the old stuff, so the pictures are found), take care,
that the indentation (blanks at the beginning of the line following the
line for )

If you get any indentation errors, look faq 1800

BTW: Seems to be on a Mac. Might be, that there are easier ways to
accomplish your target. If you want to know, talk about it in detail,
what you are clicking and dragging there.

-- 
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 #189054]: how to generate sequential numbers as my script saves screen grabs

2012-02-28 Thread RaiMan
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054

RaiMan proposed the following answer:
Forgot to mention:
The above loop starts with 1 and counts to the given second value -1 (in this 
case 399)

-- 
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 #189075]: screen.usercapture method is taking long time

2012-02-28 Thread Naveen
New question #189075 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189075

Hi ,
The following is the issue I am facing :


I am calling screen.userCapture() method from my java code .
I have written code to take a screen shot upon clicking a button .
It works fine for the first time , the moment the screen shot is captured and 
the image is saved , my tomcat server is

getting stopped .

I am using apache tomcat 7.0.14 version .

Please let me know what could possibly gone wrong .

Your swift response is always appreciated !!

Thanks in Advance !




-- 
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 #189075]: screen.usercapture method is taking long time

2012-02-28 Thread RaiMan
Question #189075 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189075

Status: Open = Needs information

RaiMan requested more information:
any error messages, that could be helpful?

paste the relevant part of your Java code.

-- 
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 #189054]: how to generate sequential numbers as my script saves screen grabs

2012-02-28 Thread grey grey
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054

Status: Answered = Open

grey grey is still having a problem:
hi, thanks ...I seem to not quite get your help...

the whole 23 lines I sent you is supposed to run and then all 23 repeat.
What I have the script doing is this

clicking to the next page in an adobe reader, it then uses the windows 7
screen capture(it is a Dell by the way) it saves the screen cap, numbers
it(193) , then clicks to scroll to the bottom of the page( I have it
showing in large type so it takes 2 screen caps ...top and bottom to get
the whole of one page...then it screen caps this bottom part then saves
this, numbers it (194) closes the screen cap window...this is the end of
one whole loop(that is if you can help me make it loop)

thanks,, GG

-- 
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 #189054]: how to generate sequential numbers as my script saves screen grabs

2012-02-28 Thread RaiMan
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054

Status: Open = Answered

RaiMan proposed the following answer:
ok, thanks for the info.

Then put the following line in the first line of your script (this
counts from 1 and steps by 2):

for pnum in range(1, 400, 2):

then select all your current script lines below this first line and
press tab (this indents your code one level, to make it the body of the
loop).

the first type statement has to be:
type(%03d%pnum)

and the second type statement has to be:
type(%03d%(pnum+1))

All the other comments above (#3, #4) still apply.

-- 
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 #189093]: Loop doesnt work

2012-02-28 Thread shankar ganesh
New question #189093 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189093

Hi,

Some one please help on the below code.
I am testing a application screen of POS device via emulator. the screen has 10 
radio buttons which i am trying to automate through the following code.the loop 
runs correctly for 3 times from top to button by clicking the radio button one 
by one.But when it reaches the 4 th time it doesnt click on the next radi 
button instead it starting from bottom and clicking randomly on the radio 
button.
for n in range(1,11):
 if n == 1:
   click(L.png)
   click(Zupture.png)
   wait(25)
 else:
 find(1330343286137.png)
 m = getLastMatch().below()
 click(1330343332028.png)
 click(Zupture.png)
 wait(25)
 waitVanish(Processing.png)
 wait(5)
If the above code is correct or i need to make some changes to make it click 
one by one radio button in the screen.

Awaiting for your valuable response.

-- 
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 #189092]: A Simple Region.onChange request

2012-02-28 Thread RaiMan
Question #189092 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189092

Status: Open = Answered

RaiMan proposed the following answer:
this should work.

def test_exampleTest(self):
nav = Region(Region(569,809,144,36))
def changeHandler(event):printwork ya bastard
nav.onChange(5,changeHandler)
nav.observe()
type(Key.DOWN)
wait(1)
type(Key.RIGHT)
wait(1)
type(Key.RIGHT)
wait(1)
type(Key.RIGHT)
wait(1)

The onXXX() add an attribute to the region, that should be observed. This has 
to be done only one time. The region knows this stuff as long as it lives.
Saying observe() switches the observation on (in your case for about 3 seconds) 
and then stops it. If something changed in the region meanwhile the handler is 
called every time something changes.
Therefor, one usually stops the observation in the handler with the first event 
and gives the observation some time to wait.

So the above part would be e.g.

def changeHandler(event):
printwork ya bastard
event.region.somethingChanged = True
event.region.stopObserver()
nav.onChange(5,changeHandler)
nav.somethingChanged = False
nav.observe(10)
if not nav.somethingChanged:
print nab, did not change within observation time
exit(1)

I have added some coding, to check, wether the handler was visited
(something changed) in the code following the observe.

-- 
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 #189092]: A Simple Region.onChange request

2012-02-28 Thread Tim Brayne
New question #189092 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189092

Firstly still somewhat a beginner with sikuli and python so please bear with me.
I am writing automation tests for a flash app and i simple want to print a 
message every time i navigate a menu and the menu icon differs from the one 
before, this is what i have and have tried a few different things but they 
either tell me that what i am trying to call isn't defined or it just observes 
and doesn't perform the rest of the script, the example below runs and passes 
the test but it does not seem to call my defined event as nothing is printed to 
the test results...please help

def test_exampleTest(self):
nav = Region(Region(569,809,144,36))
nav.observe() 
def changeHandler(event):printwork ya bastard
nav.onChange(5,changeHandler)
type(Key.DOWN)
wait(1)
type(Key.RIGHT)
wait(1)
type(Key.RIGHT)
wait(1)
type(Key.RIGHT)
wait(1)



-- 
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 #189093]: Loop doesnt work

2012-02-28 Thread RaiMan
Question #189093 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189093

Status: Open = Answered

RaiMan proposed the following answer:
Without having a screenshot and knowing the captures, it is hard to
know, what your script does.

But I can say the following: 
If you do not specify a region, where you expect Sikuli to find something, that 
exists more than once on the screen, you will get the one you expect only by 
accident.
So this is exactly the case with your example.

It might be, that you think, that   m = getLastMatch().below()  does
something, but it only stores the region below the last match into the
variable m (which is not used further in the snippet).

You have 2 possibilities:

--1: use Pattern with target offset
b1 = 
Pattern(capture-of-the-whole-region-with-all-buttons.png).targetOffset(10, 20)
b2 = 
Pattern(capture-of-the-whole-region-with-all-buttons.png).targetOffset(10, 40)
b3 = .

You can produce these line by line by copying the line and evaluating
the next target offset with Preview.

now you could do a loop like this:

for n in range(1,11):
 click(eval(b+str(n)))
 wait(25) 
 # and more coding with each button

--2: use findAll()

btns = buttonRegion.findAll(button-image.png)

btns now contains all matches in arbitrary order, that where found in
buttonRegion.

You have to copy these matches into a list and sort it according to
there position.

now you can walk through the list:

for btn in sortedBtns:
click(btn)
# ...

for the specifics of findAll see docs.

-- 
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 #189092]: A Simple Region.onChange request

2012-02-28 Thread Tim Brayne
Question #189092 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189092

Status: Answered = Solved

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

-- 
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 #189121]: How to use Sikuli in Visual studio 2010 with C# and selenium?

2012-02-28 Thread Andrew Tayler
New question #189121 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189121

Our Selenium tests are written in C# in visual studio 2010 and I have not found 
a way to get it to work with Sikuli. Any help on this would be great and much 
appreciated.  

Thanks,
Andrew

-- 
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 #189121]: How to use Sikuli in Visual studio 2010 with C# and selenium?

2012-02-28 Thread RaiMan
Question #189121 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189121

Status: Open = Answered

RaiMan proposed the following answer:
since the relevant API is written in Java, no way, to use it directly.

You might have a look at the Java Access Bridge from Oracle.

The other possibility is to setup a Python or Java XML-RPC server and
run your Sikuli snippets this way (XML-RPC client in your c#
environment).

-- 
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 #189054]: how to generate sequential numbers as my script saves screen grabs

2012-02-28 Thread grey grey
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054

Status: Answered = Open

grey grey is still having a problem:
Once again, many thanks!,

I have done as you described and it now works perfectly.

here is a slightly different question.

Since I am, as I described before, scanning and capturing 2 times for
each page of text(top and bottom of page) it would be great if you could
help me with a more accurate way of numberingsomething like ...when
I capture the top of page 37 the script names it 37 and then the next
capture being the bottom of page 37, the script names it 37a. Then upon
repeat of the loop it calls the next capture 38(since the actual page
being captured is number 38), then the next is 38a...I am sure you can
explain this to me, but I have tried a few variations on the working
loop you helped me fix, but I cant figure it outlike I said, I am no
programmer.

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 #189128]: Check if exists() by smaller photo

2012-02-28 Thread Pepper Girl
New question #189128 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189128

Hi,

I am thinking to use exists() function to check if a photo in my HD exists on 
the screen. However, the photo size I have in the HD is smaller than the one on 
the screen. Taking for an exmaple, the photo size on the screen is 400*400, but 
the photo in my HD is with size by 200*200. They are exactly the same except 
for size variance. Do I have any way to make Skuli be aware that the screen 
does exist identical photo to a smaller-size one in HD? Thank you very much!

-- 
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 #186195]: Using Region.text() to get text in dragDrop selection

2012-02-28 Thread Pepper Girl
Question #186195 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/186195

Status: Answered = Solved

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

-- 
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 #189137]: How do I create a swipe in a mobile app simulator

2012-02-28 Thread Steve Brown
New question #189137 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189137

  I need to create  both vertical swipe  and horizontal swipe  in a mobile app 
simulator.

 I have tried the various answers I found on the site but none worked for me. 

-- 
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 940086] Re: Sikuli close automatically when try to capture screenshot

2012-02-28 Thread Meikel Brandmeyer
I suffer from the same bug. Same system, same sikuli version.

Java Info:
java version 1.7.0
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

Trace:
% java -Dsikuli.console=false -jar D:\Brandmeyer\Applications\Sikuli X
\sikuli-ide.jar
[info] locale: de_DE
[info] Windows utilities loaded.
Exception in thread capture java.lang.StackOverflowError
   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(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(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)
... and so on

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

Title:
  Sikuli close automatically when try to capture screenshot

Status in Sikuli:
  New

Bug description:
  Version:Sikuli-X-1.0rc3 (r905)
  OS: Windows XP x32
  JRE 6

  This is the first time i use Sikuli, so maybe that my issues

  But i just want to know why

  I can write sample function ,like--popup()..

  Steps to reproduce :
  1.open Sikuli
  2.Click 'Take Screenshot'

  result: Sikuli closed itself

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/940086/+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 #189121]: How to use Sikuli in Visual studio 2010 with C# and selenium?

2012-02-28 Thread Andrew Tayler
Question #189121 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189121

Status: Answered = Solved

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

-- 
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 567303] Re: Use of __file__ gives NameError

2012-02-28 Thread Brentmeister
Hi RaiMain,

I am not sure this is a valid fix.

__file__ is also set by the import statement.
This is from python.org's reference: 
http://docs.python.org/reference/simple_stmts.html
The loader must set several attributes on the module. __name__ is to be set to 
the name of the module. __file__ is to be the “path” to the file unless the 
module is built-in (and thus listed in sys.builtin_module_names) in which case 
the attribute is not set.

Basically this does solve this problem.


python C:\MyScripts\Script.py

Script.py:
sys.path.append(C:\MyModules\)
import Module
print Script Path:  + sys.argv[0]


Module.py:
print Module Path:  + sys.argv[0]


Output:
Module Path: C:\MyScripts\Script.py
Script Path: C:\MyScripts\Script.py


If __file__ worked properly and you used that instead of sys.argv[0] you would 
get the expected output!

Output:
Module Path: C:\MyModules\Module.py
Script Path: C:\MyScripts\Script.py

__file__ not being set actually prevents me from structuring my scripts
in a reasonable way currently.

Thoughts?
My structure should look like this:
sikuli
  |
  --- lib
   ||
   |--- Lib1, Lib2, Lib3.sikuli
   |
   --- ScriptFolder1
|
--- Script1, Script2, Script3.sikuli
   |
   --- ScriptFolder2
|
--- Script1, Script2, Script3.sikuli

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

Title:
  Use of __file__ gives NameError

Status in Sikuli:
  Fix Released

Bug description:
  Trying to use __file__ python functionality results in Sikuli throwing
  a NameError exception.

  Example Code:
  script_name = __file__

  
  I think I might get why this happens.  It's the same behavior as if using 
__file__ in a python command line interpreter session.

  But, it would be nice for this to work inside of Sikuli the same as if
  running command python testfile.py from command line.

  So, I am requesting that Sikuli is modified to recognize __file__ as
  valid python code that gives the current script name.  Or,
  alternatively to implement a new Sikuli specific command to get the
  name of the current running file.

  Thanks!

  Current Setup:
  Sikuli 0.9.9
  Windows XP, 32-bit

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/567303/+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 514100] Re: IllegalThreadStateException - Executable not working correctly

2012-02-28 Thread Bob Stucky
Seeing this error in Python threads. When this exception is thrown, all
finds executed on that thread return positive regardless of the actual
state

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

Title:
  IllegalThreadStateException - Executable not working correctly

Status in Sikuli:
  New

Bug description:
  Sikuli version 0.9.7
  OS X 10.6.2

  The attached executable does not run properly and generates the
  following error:

  Message:

  Traceback (innermost last):
File 
/var/folders/G5/G5yhMN5LEtqH2xRl8QY6zk+++TI/-Tmp-/tmp--8303954.sikuli/petrie_to_central.sikuli/petrie_to_central.py,
 line 3, in ?
File 
/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/python/edu/mit/csail/uid/Sikuli.py,
 line 520, in type
at java.awt.Robot.checkNotDispatchThread(Robot.java:465)
at java.awt.Robot.waitForIdle(Robot.java:444)
at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:612)
at edu.mit.csail.uid.SikuliScript.type(SikuliScript.java:442)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

  java.lang.IllegalThreadStateException:
  java.lang.IllegalThreadStateException: Cannot call method from the
  event dispatcher thread

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/514100/+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 #186002]: Extracting from text file and writing the same in to the application filelds

2012-02-28 Thread shankar ganesh
Question #186002 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/186002

Status: Answered = Solved

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

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