IDE: thumbnail shows extra white space around captured image --- this is only an effect - not part of image

Asked by abhilashpujari

hi,
i am using find and click function in my script (find (image.png) ) and (click (image.png) ) to search image and click on it.
the problem is when i insert the image, i observed that there is a extra space before and after the image.where as if i open the same image through paint then i observed there is no extra white space. it means extra space is added automatically when i insert the image..so please suggest on this issue.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

This is only an effect, when the thumbnail is shown in the code in the IDE.
This is not part of the image itself. So just ignore it.

Just click on the image and you can see it correctly in the preview.

Revision history for this message
abhilashpujari (abhilashpujari) said :
#2

still i am not able to find the image and click on it. the same code work on defferent windows machine not getting the exact issue.please suggest.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
abhilashpujari (abhilashpujari) said :
#4

Please suggest on this issue..i am still unable to click on any image

Revision history for this message
RaiMan (raimund-hocke) said :
#5

could you post some shots (e.g as zip on Dropbox)?

What system? What app do you want to click?

Revision history for this message
abhilashpujari (abhilashpujari) said :
#6

Hi

below are the steps i followed :

1 ) installed sikuli
2 ) installed java 1.6
3 ) set path for both sikuli and java 6
4 ) tried the command java -jar "%SIKULI_HOME%"sikuli-script.jar" -i
5 ) got the error as above when i tried find() and click() sikuli script.

please suggest , how to proceed.

regards
Abhilash

On 2/5/13, RaiMan <email address hidden> wrote:
> Your question #216725 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/216725
>
> Status: Open => Needs information
>
> RaiMan requested more information:
> could you post some shots (e.g as zip on Dropbox)?
>
> What system? What app do you want to click?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/sikuli/+question/216725
>
> You received this question notification because you asked the question.
>

Revision history for this message
RaiMan (raimund-hocke) said :
#7

--- ... got the error as above ...
what error? post message.

Revision history for this message
abhilashpujari (abhilashpujari) said :
#8

ERROR Report :
-----------------------------------------

info] Sikuli vision engine loaded.

[info] Windows utilities loaded.

[info] VDictProxy loaded.

[error] Stopped

[error] An error occurs at line 1

[error] Error message: Traceback (most recent call last):

File "", line 1, in

 File "C:\users\abhilash\Automation\sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\__init__.py",
line 3, in

 File "C:\users\abhilash\Automation\sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\Sikuli.py",
line 212, in

 File "C:\users\abhilash\Automation\sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\Sikuli.py",
line 207, in initSikuli

File "C:\users\abhilash\Automation\sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\Screen.py",
line 19, in __init__

at org.sikuli.script.Win32Util.setWindowOpaque(Win32Util.java:84)

at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:180)

at org.sikuli.script.ScreenHighlighter.(ScreenHighlighter.java:293)

at org.sikuli.script.Screen.initBounds(Screen.java:105)

at org.sikuli.script.Screen.(Screen.java:117)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:210)

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError:
com/sun/awt/AWTUtilities

Revision history for this message
abhilashpujari (abhilashpujari) said :
#9

Hi ALL,

My issue is fixed...
the main problem is becoz of older java version 1.6

i installed the java 1.7 then the issue is fixed....

C:\Documents and Settings\temp123>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing

C:\Documents and Settings\temp123>java -version
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

Thanks for the support.....

Revision history for this message
RaiMan (raimund-hocke) said :
#10

It will not work with Java 7.

You need Java 6 latest version.

See faq 2005 and faq 2220

Can you help with this problem?

Provide an answer of your own, or ask abhilashpujari for more information if necessary.

To post a message you must log in.