In which version of sikuli we can perform record/playback?? --- in no version including 1.1.0 --- see related question

Asked by Chinmay Pawar

---------- related question tracking the request bugs
https://answers.launchpad.net/sikuli/+question/136146

-------------------------------------------------------

I am using windows 7 (32 bit). Is it possible to start recoding of sikuli using java code?? And after i stop recording is sikuli script wiil be generated automatically?? In which version of sikuli i can start & stop recoding of script??

Because In source code of sikuli, record.png image is given in icons folder in org.sikuli.ide package.

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

Did never work and is completely purged in current version 1.0.1

Might come back in a future version. Is on the list with low priority.

Do you know any recorder, that is available on Windows, Mac and Linux?

Revision history for this message
Chinmay Pawar (chinmay-pawar17) said :
#2

No sir.. Is there any other alternative way to achieve it??
Can we do record/playback in sikuli rc3??
If it is possible then what is procedure for that??

Will u please guide me..

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

as mentioned:
no way with Sikuli up to current and next version.

I have no experience with any recording tools.

Revision history for this message
obiwan-92 (obiwan-92) said :
#4

@RaiMan
Take a look at https://code.google.com/p/jnativehook/
It's not a recorder, but a OS listener, with it, you can detect a mouse or key event.
With it you can do whatever you want in your java.
However I find the floating bar more usefull (see Bug #1273683).
With it you can select some function who be never used whith just a recorder like findAll, hover, wait,...
But it's look like a very long debate.

@Chinmay Pawar
Like RaiMan said, there is no recorder in Sikuli.
On windows, you can use AutoIT to automated some script.
It works with the windows Alias.
But I won't said anything else, just it have a recorder.
http://www.autoitscript.com/site/autoit/

Regards.

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

@obiwan
Woooooow, really great finding.
I will have a look at it. If it works, it could close a big gap in Sikuli's features, that was always complained about by many people: can I detect, that a key was pressed and that the mouse was really clicked?

I guess, that only people, who do not have very much experience with Sikuli are simply talking about a recorder, but in the end are talking about something like the floating bar you are talking about, which on the other hand in the basic usage (just some wait()'s and click()'s in a row) is just something like a recorder.

With the above mentioned library, we will get a step nearer to that.
So I think the <But it's look like a very long debate.> might be coming to an end this way ;-)

Revision history for this message
obiwan-92 (obiwan-92) said :
#6

@RaiMan
I never test it, but apparently, yes.
If you want, I can test it and report to you this week end.

For the bar versus recorder, you could add the two and include in the settings the ability to disable one of them. ;-)

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

@obiwan
yes, would be great, to get your input.
I would be more interested in the development version on GitHub, but also the stable version would be sufficient to start with.
Thanks a lot.

Revision history for this message
DenisD (denis-work-acc) said :
#8

Hi guys!

@obiwan thanks for the links, based on jnativehook I almost complete a tool for script recording. I believe next week I can share it.

@RaiMan, could you kindly advise me if you have done a script recording tool? If you haven't, would you be interested in my one? It some kind of floating panel with two buttons Record and Stop, that can capture pictures and write your typing. Output is simply set of commands, for example:

s.click("c:\\tmp\\myimgs\\PREF_20150320130001.PNG");
s.type("H");
s.type("e");
s.type("l");
s.type("l");
s.type("o");
s.type(" ");
s.type("g");
s.type("u");
s.type("y");
s.type("s");
s.type("!");
s.type(Key.ENTER);

You can copy them and past to your code. Probably, I or someone else could develop a plugin for eclipse in the future that will input the commands directly to your code. By now, it will be an AWT application. I'll also make an youtube video. So, let me know if you need so.

Thanks!

Revision history for this message
Wykleph (real-wykleph) said :
#9

@DenisD I wrote a script for converting basic AHK scripts to sikuli so I can use the AHK recorder. Would you mind sharing your recorder though? Mine only works off of locations provided by the AHK script in order to do everything, so it's not ideal for sikulix, but it works if you absolutely need to record some interactions without worrying about image recognition.

Here is mine https://gist.github.com/Wykleph/aad5b6b9b1eccd962caf3ca39399d525

Would love to try your version out, as it's probably better than interpreting AHK scripts...

Can you help with this problem?

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

To post a message you must log in.