[request] rename an image or load an external image

Bug #676051 reported by SMercier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Undecided
Unassigned

Bug Description

Hi all,

     On the version 0.10.2 of the Sikuli IDE there is some restrictions like no possibility to rename the image when we take a screen shot or to use an external image of type <local_variable>+"image.png". I suggest the attached patch to fix these problems and improve the IDE. This patch adds a function to rename the name of a local image and another to edit a complex expression of type <local_variable>+"image.png". For the second function, the test is saved then reloaded to be able to analyse the content of the local_variable. These functions are available from a right click on an image in the IDE. There is also a refresh button in the menu bar to do a refresh of the current test when a lot of modifications are done (for example : update of local variables). Can you tell me if these imrpovment could be integrated in a new version of Sikuli maybe the 0.10.2.1 ?

Regards
Stephane

Revision history for this message
SMercier (smercier) wrote :
Revision history for this message
SMercier (smercier) wrote :

Maybe that the previous description is not very clear. Below you can see an easy sample:

Python script :

#Reference on a folder which contains common images
commonResources = "../commonImages/"

#Use an external image easily
find(commonResources+"myimages1.png")

#Use an external image with a pattern
click(Pattern(commonResources+"myimages2.png").similar(0.89).targetOffset(3,-1))

Regards
Stephane

description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [request IDE] Enhanced Support: rename an image or load an external image

target for Solution: Sikuli X

I have not seen it yet, but there will be some support for naming images and loading images from "libraries" of type .sikuli in the upcoming version Sikuli X (no release date yet). This comes together with the support of importing other Sikuli scripts.

So thanks for your ideas (and the patch, even if it may not be used ;-)

I personally have totally switched to NetBeans/Jython as IDE/RE using modules.py and image-libraries together with a naming convention. The forms .sikuli and .skl I only use, to carry things around or activate them on other systems (Mac or Windows).

tags: added: ide imageload imagenames sikulix
summary: - SikuliIDE : Impossible to rename an image or use an external image
+ [request IDE] Enhanced Support: rename an image or load an external
+ image
Changed in sikuli:
milestone: none → x1.0-rc1
status: In Progress → Fix Committed
RaiMan (raimund-hocke)
summary: - [request IDE] Enhanced Support: rename an image or load an external
- image
+ [request] Enhanced Support: rename an image or load an external image
summary: - [request] Enhanced Support: rename an image or load an external image
+ [request] rename an image or load an external image
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.