Possible to change the command list to my own functions?

Asked by Calvin

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

Question information

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

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.

Revision history for this message
Calvin (calvin-v99) said :
#2

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

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

understood. thanks.

I will check, what would be the best approach, since a general alternative is an autocomplete function, which would not need a command bar to insert simple method calls.

Based on your idea, the command bar feature could be extended to a snippet service, that could contain some often used constructs that could contain more than one line of code.

As already mentioned: I have it on the list.
... but you have to wait a little.

Revision history for this message
Calvin (calvin-v99) said :
#4

Thanks Raiman. Looking forward to it!