Re: [Sikuli-driver] [Question #203958]: Sikuli is stuck finding one image that no longer exists

2012-07-24 Thread RaiMan
Question #203958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203958

Status: Open = Answered

RaiMan proposed the following answer:
--1. debugging
to debug such problems, it is better to either use highlight(), to see, what 
Sikuli finds.

--2. waitVanish()
is nothing better, than while exists(), but even more flexible ;-)

This would be my script variant

def estoyListo():
if exists(img_readyNow): 
click(getLastMatch())
while exists(img_dontPanic):
getLastMatch().highlight(2) # for debugging only
wait(1)
if exists(img_repairDamage): 
click(getLastMatch())
while exists(img_close):
click(getLastMatch())
wait(1)

So you now cans see, what Sikuli thinks dontPanic might be on your screen.
If it is a false positive, you might either:
- make a better screenshot (minimum background)
- restrict the search region ( some-Region.exists() )
- raise the similarity ( exists(Pattern(img_repairDamage).similar(0.95)) )

BTW: The last loop does not really make sense, since it clicks as long
as the image is visible. Usually one click is enough.

-- 
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 #203942]: Unable to automate File menu

2012-07-24 Thread RaiMan
Question #203942 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203942

Status: Open = Answered

RaiMan proposed the following answer:
Sorry for being unclear:

If you want to snapshot some GUI elements, that might not be accessible
from the IDE, then you have the snapshot-key:

- have the IDE open and the cursor at the position, that you want the image to 
be inserted
- go to your app and open what is needed
- press the hotkey (see preferences and above)

You will be able now to snapshot and the image will be inserted into
your script.

The example from above was only to recommend: try to use app specific
shortcut keys as often as possible instead of searching and clicking
images.

-- 
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 #203999]: Sikuli Crashes and shows the error

2012-07-24 Thread Anup Apasangi
New question #203999 on Sikuli:
https://answers.launchpad.net/sikuli/+question/203999

Hi,

I just installed sikuli on Windows-7 operstong system and performed the 
following:
1.Opened the sikuli 
2.Typed Click (*inserted and image)
3.Clicked on Run.
4.Sikuli Closes automatically 
5.When i open another session of sikuli i got the following error 
java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: C:\Program 
Files\Sikuli X\libs\Win32Util.dll: Can't find dependent libraries.

I have the Java 6 installed.

Please let me know, how to truble shoot.

Regards,
Anup Apasangi

-- 
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 #203999]: Sikuli Crashes and shows the error

2012-07-24 Thread RaiMan
Question #203999 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203999

Status: Open = Answered

RaiMan proposed the following answer:
look faq 2005

-- 
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 #203942]: Unable to automate File menu

2012-07-24 Thread Sathyamoorthy
Question #203942 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203942

Status: Answered = Open

Sathyamoorthy is still having a problem:
Thanks for the detalied explanation.

yeap. i have still have problem with my Virual macine creation wizard.
Colud you please help me to sort it out.

See in Vsphere client application,  I want to create New Virtual
Machine, when I am runing through wizard , there is option to select
Operating system.

i used IDE preference like ctrl-shift-2 capture snapshot to select OS
option, but script was not selecting that one. Please guide me to select
OS based on input value fro the drop down menu

Thanks, Much appriciated your effort

-- 
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 #203942]: Unable to automate File menu

2012-07-24 Thread Sathyamoorthy
Question #203942 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203942

Status: Open = Solved

Sathyamoorthy confirmed that the question is solved:
Hi,

Thanks For your help. I am able to do it.


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 #203999]: Sikuli Crashes and shows the error

2012-07-24 Thread Anup Apasangi
Question #203999 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203999

Status: Answered = Solved

Anup Apasangi confirmed that the question is solved:
Now its working fine...Thanks a lot

Regards,
Anup Apasangi

-- 
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 #204013]: Clicking UAC dialogs

2012-07-24 Thread ane remmers
New question #204013 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204013

I am trying to create an install script and am having issues with UAC.

I'm able to capture the UAC screenshot (I'm running the install on a VM, and 
Sikuli is running on my local machine)
but when i run the script from the VM itself, when it gets to the UAC dialog, 
Sikuli doesnt click the Yes button like i'm telling it to!
If the script is run via my local machine, it clicks the UAC dialog on the VM- 
no problem.

The thing is, that I do need UAC to be turned on, so there's no bypassing that. 
(The product that I'm testing is Windows 7 compatible- this means that it must 
be able to run with UAC ON.)

What I need to know is, can Sikuli actually confirm UAC prompts??

-- 
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 #204013]: Clicking UAC dialogs

2012-07-24 Thread RaiMan
Question #204013 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204013

Status: Open = Answered

RaiMan proposed the following answer:
You must run the script as admin.

-- 
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 #204017]: .Bat file not being executed when run from Sikuli.skl

2012-07-24 Thread Chan Kok Lum
New question #204017 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204017

Hi all, 

I'm encountering a strange problem. If i run Sikuli script by clicking the 
Play button, the command below works fine. 

switchApp(c:\\temp\\kill-session.bat)
App.open(c:\\temp\\kill-session.bat)
openApp(c:\\temp\\kill-session.bat)

But when i export to executable and run it from there, the scripts run fine but 
no effect on these 3 lines. The reason i know it didn't run is

1. There is no black DOS screen pop-up.
2. The residue is not being cleaned-up as they were designed to be doing.

I am using Sikuli X.

Please advice.

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 #204013]: Clicking UAC dialogs

2012-07-24 Thread Annie
Question #204013 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204013

Annie posted a new comment:
OK, what I'm doing is the following.
I created the script on my local machine, then copied it to the VM

I then right click on Sikuli and run as admin.
I open said script and run it.

did i miss anything? it's still not working.
i've put in a Wait for the UAC dialog and that's where it's failing. so im 
assuming Sikuli is not even able to see the dialog!

or am i being stupid?

-- 
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 #204013]: Clicking UAC dialogs

2012-07-24 Thread RaiMan
Question #204013 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204013

RaiMan proposed the following answer:
Any differences with the image on local machine and VM?

Try to use an image captured in VM.

-- 
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 #204013]: Clicking UAC dialogs

2012-07-24 Thread Annie
Question #204013 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204013

Annie posted a new comment:
I don't see where the difference could be. 
I've even captured the Yes/No buttons on the UAC dialog, and told it to wait 
for that. but it still doesn't pick it up.

I also can't seem to capture UAC dialogues.
I tried pressing ctrl+shift+2 as well as alt+PrtScr. No joy.

it's like nothing can be done in the background while the UAC popup is
active.

I'm thinking that this is probably something Microsoft is doing on
purpose to thwart malware

Please have a go at this on your side and let me know if you are able to 
capture/click UAC dialogues?
If we cant, there's no use in me pursuing this any further

:)

-- 
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 #204013]: Clicking UAC dialogs

2012-07-24 Thread RaiMan
Question #204013 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204013

RaiMan requested more information:
What is the easiest way, to produce such a dialog?

-- 
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 #204013]: Clicking UAC dialogs

2012-07-24 Thread Annie
Question #204013 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204013

Annie posted a new comment:
click on Start and type in UAC
It will come up with Change user account control settings
click it.

Set the slider to the second from top- Default-Notify me only when programs try 
to make changes to my computer.
Click OK and restart the computer.

run any exe that will attempt to make a registry change.
(most installs will do this)

you will get a UAC prompt.

-- 
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 #158246]: UAC window capture

2012-07-24 Thread Annie
Question #158246 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/158246

Annie posted a new comment:
I am having similar issues. only, the product I'm testing is Windows 7
compatible, which means that it must be able to run with UAC set to the
Default setting.

This means that i cannot turn it off during testing.

Now, i am unable to make the screen grabs.

Does anyone know if this is possible at all? I highly doubt it, but
would like some confirmation...

-- 
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 #204013]: Clicking UAC dialogs

2012-07-24 Thread Annie
Question #204013 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204013

Annie posted a new comment:
This is most probably not a bug, but one of those annoying Microsoft
features...

-- 
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 #204031]: How to press Control and A key in key board at a time to select all

2012-07-24 Thread manas
New question #204031 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204031

How to press Control and A key in key board at a time to select all

-- 
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 #204031]: How to press Control and A key in key board at a time to select all

2012-07-24 Thread RaiMan
Question #204031 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204031

Status: Open = Answered

RaiMan proposed the following answer:
look docs http://sikuli.org/docx/keys.html#key-constants

-- 
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 #204038]: need simple lock code to keep event handler in line

2012-07-24 Thread Rosie Bell
New question #204038 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204038

Hi guys,

This relates to a previous question raised by Josh 183655. 

I have an event handler to click an OK button on an error messagebox that pops 
up.
It seems to always happen in the middle of an activity where I swipe a field 
and read its contents into the clipboard.
The result is that I end up with the error pop up message on the clipboard 
rather than the value I want to be captured by my Cntl C action.

Do you have any simple lock code that I could put around my swipe function to 
make it atomic or my event handler?
I have tried using import threading and using the  threadlock.acquire() and 
threadlock.release() functions. Am I on the right track??

My rogue functions are.

def swipe(begin,end):
# acquire lock needed here?
print in swipe
dragDrop(begin,end)
type(c,KEY_CTRL) 
   #release lock here?

def ClickOK(event): 
   # get lock here?
print In handler
event.region.click(Error.png) # clicks the ok button on the pop up
# release lock here?

Many thanks for any help,
Rosie



-- 
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 #204038]: need simple lock code to keep event handler in line

2012-07-24 Thread RaiMan
Question #204038 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204038

Status: Open = Answered

RaiMan proposed the following answer:
I think, this is not the whole story, since this does not prevent the
popup to arise in parallel with the swipe action, which is the real
problem: it gets to foreground and accepts the swipe action and the
content goes to the clipboard.

I think you have to check, wether the popup arises during this sequence
and decide to reset and repeat the swipe action.

Your current locking prevents the swiping, if the handler is already
active. But if the swipe has locked and started, the shit might happen
any way and on top blocks the handler to do its job.

I would not use the locking feature, but something like this:

first the handler:

def ClickOK(event):
Settings.myInHandler = True
event.region.click(Error.png) # clicks the ok button on the pop up
wait(0.5)
Settings.myInHandler = False

def swipe(begin,end):
while True:
while Settings.myInHandler: wait(0.5)
mouseDown(begin, Button.LEFT)
if Settings.myInHandler: continue
mouseMove(end)
if Settings.myInHandler: continue
mouseUp()
if Settings.myInHandler: continue
type(c,KEY_CTRL)
wait(0.5)
if Settings.myInHandler: continue
break   # if we finally come here, it should have worked.

I have broken the dragDrop into the 3 mouse actions to get more
checkpoints in between.

Somewhere at the beginning you have to say:
Settings.myInHandler = False

the 2 wait()'s have to be adjusted accordingly, to get some overlapping
for robustness.

-- 
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 #204038]: need simple lock code to keep event handler in line

2012-07-24 Thread RaiMan
Question #204038 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204038

RaiMan proposed the following answer:
Just realized the possible orphaned mouseDown():

def swipe(begin,end):
while True:
while Settings.myInHandler: wait(0.5)
mouseDown(begin, Button.LEFT)
if Settings.myInHandler: mouseUp(); continue
mouseMove(end)
if Settings.myInHandler: mouseUp(); continue
mouseUp()
if Settings.myInHandler: continue
type(c,KEY_CTRL)
wait(0.5)
if Settings.myInHandler: continue
break # if we finally come here, it should have worked.

-- 
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 #203958]: Sikuli is stuck finding one image that no longer exists

2012-07-24 Thread Deses
Question #203958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203958

Deses posted a new comment:
Thank you for the response. I'm going to try your variant and see if I
can't debug everything with highlight... thats a nifty method, I'm sure
I'm going to use it a lot. :D

And that last loop does make sense, because it could appear more than
once. The game makes me close a lot of popups. :P

-- 
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 #204056]: Problem With For loop

2012-07-24 Thread Sathyamoorthy
New question #204056 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204056

Hello,

I am trying to do some several step [Adding VM disk continously] using for 
loop. But the loop is not iterating at all. 
Here i am pasting the code 
if (ndisk  1):
ndisk = int(ndisk) - 1
for i in range(int(ndisk)):
switchApp(New Virtual Machine - Virtual Machine properties)
click(1343153484832.png)
switchApp(Add Hardware)
wait(1.5)
click(HardDisk.png)
click(1343145523513.png)
click(Pattern(7Createanewv.png).targetOffset(-67,-2))
click(Next-4.png)
doubleClick(Pattern(IFDiskSize.png).targetOffset(28,0))
type(d[i+1])
click(Next-5.png)
click(Next-6.png)
click(Finish.png)

Please someone help me to do comeout of this problem

Thanks,
V.Sathyamoorthy

-- 
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 #203958]: Sikuli is stuck finding one image that no longer exists

2012-07-24 Thread Deses
Question #203958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203958

Status: Answered = Solved

Deses 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


Re: [Sikuli-driver] [Question #204056]: Problem With For loop

2012-07-24 Thread Sathyamoorthy
Question #204056 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204056

Status: Open = Solved

Sathyamoorthy confirmed that the question is solved:
Copying the error message...

[log] App.focus New Virtual Machine - Virtual Machine properties(0) #0
[error] App.focus failed: New Virtual Machine - Virtual Machine properties not 
found

[error] Stopped
[error] An error occurs at line 53
[error] Error message: Traceback (most recent call last):
 File C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp2265980759870165025.py, 
line 53, in 
 click(1343153484832.png)
 Line 67, in file 
C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp2265980759870165025.py

 at org.sikuli.script.Region.handleFindFailed(Region.java:420) 
at org.sikuli.script.Region.wait(Region.java:511) 
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source) 
at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 

org.sikuli.script.FindFailed: FindFailed: can not find 1343153484832.png on the 
screen.
 Line 67, in file 
C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp2265980759870165025.py

-- 
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 #204056]: Problem With For loop

2012-07-24 Thread Sathyamoorthy
Question #204056 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204056

Sathyamoorthy posted a new comment:
Copying the error message...

[log] App.focus New Virtual Machine - Virtual Machine properties(0) #0
[error] App.focus failed: New Virtual Machine - Virtual Machine properties not 
found

[error] Stopped
[error] An error occurs at line 53
[error] Error message: Traceback (most recent call last):
 File C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp2265980759870165025.py, 
line 53, in 
 click(1343153484832.png)
 Line 67, in file 
C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp2265980759870165025.py

 at org.sikuli.script.Region.handleFindFailed(Region.java:420) 
at org.sikuli.script.Region.wait(Region.java:511) 
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source) 
at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 

org.sikuli.script.FindFailed: FindFailed: can not find 1343153484832.png on the 
screen.
 Line 67, in file 
C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp2265980759870165025.py

-- 
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 #203958]: Sikuli is stuck finding one image that no longer exists

2012-07-24 Thread Deses
Question #203958 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203958

Deses posted a new comment:
Yep, that torally was it. Using highlight it was outlining a totally
random area, that was not showing in the patterm settings.

Thanks a lot RainMan!

-- 
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 #204056]: Problem With For loop

2012-07-24 Thread Sathyamoorthy
Question #204056 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204056

Status: Solved = Open

Sathyamoorthy is still having a problem:
Sorry i unfortunately clsoed Opening the issue

-- 
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 #204031]: How to press Control and A key in key board at a time to select all

2012-07-24 Thread manas
Question #204031 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204031

Status: Answered = Open

manas is still having a problem:
But there is no alphabet key to enter. or can i use type(A) for
alphabet key like A or not?

-- 
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 1028612] [NEW] Sikuli for Java 7 throws exception when launched in Java 7 on OS X

2012-07-24 Thread Jason Lunn
Public bug reported:

When run with Java 6, sikuli-script.jar executes without issue. When
same jar is executed with Java 7, exception similar to stacktrace below
is emitted. Note that this is replicable with the jar found in sikuli-
script-java7.zip posted to drop box, with the caveat that the latter
does not work under Java 6 (as expected).

OS X 10.7.4 (Build 11E53)

java version 1.7.0_04
Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)


java -jar ~/Downloads/sikuli-script-java7/sikuli-script.jar -i
java.io.IOException: Unable to find library META-INF/lib/libVisionProxy.dylib 
on classpath
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:127)
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:110)
at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
at org.sikuli.script.Finder.clinit(Finder.java:33)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.python.core.Py.loadAndInitClass(Py.java:895)
at org.python.core.Py.findClassInternal(Py.java:830)
at org.python.core.Py.findClassEx(Py.java:881)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)
at 
org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)
at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
at org.python.core.PyObject.__findattr__(PyObject.java:863)
at org.python.core.imp.import_name(imp.java:849)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
[...]

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

Title:
  Sikuli for Java 7 throws exception when launched in Java 7 on OS X

Status in Sikuli:
  New

Bug description:
  When run with Java 6, sikuli-script.jar executes without issue. When
  same jar is executed with Java 7, exception similar to stacktrace
  below is emitted. Note that this is replicable with the jar found in
  sikuli-script-java7.zip posted to drop box, with the caveat that the
  latter does not work under Java 6 (as expected).

  OS X 10.7.4 (Build 11E53)

  java version 1.7.0_04
  Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
  Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

  
  java -jar ~/Downloads/sikuli-script-java7/sikuli-script.jar -i
  java.io.IOException: Unable to find library META-INF/lib/libVisionProxy.dylib 
on classpath
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:127)
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:110)
at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
at org.sikuli.script.Finder.clinit(Finder.java:33)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.python.core.Py.loadAndInitClass(Py.java:895)
at org.python.core.Py.findClassInternal(Py.java:830)
at org.python.core.Py.findClassEx(Py.java:881)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)
at 
org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)
at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
at org.python.core.PyObject.__findattr__(PyObject.java:863)
at org.python.core.imp.import_name(imp.java:849)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
  [...]

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

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

[Sikuli-driver] [Question #204066]: Builing a GUI with Sikuli

2012-07-24 Thread Deses
New question #204066 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204066

I want to do a GUI for my script in order to let the user input some options...

I'm want to export from javax.swing and build a very basic gui, but I don't 
know if it's possible... and I don't want to build everything to then realize 
that it doesn't work that way.

Or do you suggest something different?

-- 
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 #204056]: Problem With For loop

2012-07-24 Thread Sathyamoorthy
Question #204056 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204056

Sathyamoorthy gave more information on the question:
Hi Guys,

The forloop goes first time and when comes to second iteration, the
following message i am getting ,

[error] Stopped
[error] An error occurs at line 52
[error] Error message: Traceback (most recent call last):
 File C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp4695093255318112514.py, 
line 52, in 
 click(1343153484832.png)
 Line 65, in file 
C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp4695093255318112514.py

 at org.sikuli.script.Region.handleFindFailed(Region.java:420) 
at org.sikuli.script.Region.wait(Region.java:511) 
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source) 
at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 

org.sikuli.script.FindFailed: FindFailed: can not find 1343153484832.png on the 
screen.
 Line 65, in file 
C:\DOCUME~1\viswas6\LOCALS~1\Temp\sikuli-tmp4695093255318112514.py


The line number 52 is loop starting point. 

please help me to sort otu this probelm

-- 
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 #204056]: Problem With For loop

2012-07-24 Thread Sathyamoorthy
Question #204056 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204056

Sathyamoorthy gave more information on the question:
I am also pasting my complete code here

popup(... NW_OSSR Automation process ...)
name = input(Enter ESX IP \n [Where to create VM for OSSR])
vname = input(Enter the VM name \n [Which is not exists in ESX host])
ndisk = input(Enter No.of Disk needed)
d = [ ]
for i in range(int(ndisk)): # Disk size info
d.append(input(Enter the Size of Disk))   
#d[i] = input(Enter the value of Disk)
vram = input(Enter the memory value)
popup(please note value for specific OS \n A - Win2012 \n B - W2K8R2 \n C - 
W2K8 X64)
myApp = App(VpxClient.exe)
App.open(C:\\Program Files\\VMware\\Infrastructure\\Virtual Infrastructure 
Client\\Launcher\\VpxClient.exe)
wait(2)
App.focus(VMware vSphere Client)
popup(Default credential is root \ emclegato)
click(IPaddressnga.png)
type(name)
click(Username.png)
paste(root)
click(Password.png)
paste(emclegato)
click(1343136521911.png)
wait(2)
switchApp(Security Warning)
click(1343136671740.png)
wait(20)
wait(10)
type(n,KEY_CTRL)
wait(15)
switchApp(Create New Virtual Machine)
wait(3)
click(1343140495548.png)
rightClick(EewVirtualMa.png)
wait(1)
type(d)
type(vname)
wait(1)
click(Next-1.png)
click(Next-2.png)
click(Pattern(7MicrosoftWi-1.png).targetOffset(-48,-4))
click(il.png)
click(MicrosoftWin-3.png)
click(1343141758169.png)
doubleClick(40.png)
paste(d[0])
click(Next-3.png)
click(l.png)
click(Continue.png)
if (int(ndisk)  1):
ndisk = int(ndisk) - 1
for i in range(ndisk):
click(1343153484832.png)
wait(1.5)
click(HardDisk.png)
click(1343145523513.png)
click(Pattern(7Createanewv.png).targetOffset(-67,-2))
click(Next-4.png)
doubleClick(Pattern(IFDiskSize.png).targetOffset(28,0))
type(d[i+1])
click(Next-5.png)
click(Next-6.png)
click(Finish.png)

else:
click(Finish-1.png)

-- 
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 #204098]: Meet OutOfMemoryError with JAVA

2012-07-24 Thread Bob
New question #204098 on Sikuli:
https://answers.launchpad.net/sikuli/+question/204098

When we try to prepare the test case script with java through the 
sikuli-script.jar, we found that we may meet java.lang.OutOfMemoryError 
sometimes. If we run the test case one by one in just one static main function, 
it always occurs this error around the 8th test case. Here is the detail error 
message as below:
Exception in thread main java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.init(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at 
java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at java.awt.image.BufferedImage.init(Unknown Source)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Unknown Source)
at sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
at sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
at sun.java2d.pipe.ValidatePipe.copyImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at 
org.sikuli.script.OpenCV.convertBufferedImageToByteArray(OpenCV.java:35)
at org.sikuli.script.OpenCV.convertBufferedImageToMat(OpenCV.java:41)
at org.sikuli.script.Finder.init(Finder.java:70)
at org.sikuli.script.Region.doFind(Region.java:1029)
at org.sikuli.script.Region$RepeatableFind.run(Region.java:1232)
at org.sikuli.script.Region$Repeatable.repeat(Region.java:1203)
at org.sikuli.script.Region.wait(Region.java:497)
We think it is caused by the image resource which is used in the previous test 
cases. I just wonder that if the sikuli API has prepared some methods so that 
we can use them to release  the image resource used before. Or could you please 
kindly geive us some other suggestions? Thank you very much for your help.

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