Utility to record a macro

asked 2016-03-17 22:06:06 +0300

pedrox gravatar image

Would it be possible to introduce a simple sailfish utility to enable a user to "record" a "macro", (or batch file) that could then be saved as a shortcut and replayed whenever desired?

As an example, I would like to record the steps I take to switch on bluetooth, pair with my nokia music receiver and launch cutespot. Then save this as a shortcut. (I imagine that other users might have very different examples of processes that they would like to be able to reduce to a single tap or swipe.)

If you could also edit the code produced by the recording, this could also provide a neat way in to learning more about coding.

Of course, it would be each user's own responsibility to maintain and update their personal macros, and adapt them to any future OS changes.

edit retag flag offensive close delete

Comments

1

Sounds like script to me. Enable the Developer mode and take a look at some web resources on how to do your own shell-scripts.

avhakola ( 2016-03-18 00:03:55 +0300 )edit
2

@avhakola A script, yes. Except for actions that can't be triggered via the command line. (Like, I don't know, switch on/off an option in a third party application that cannot be controlled via the command line.)

ossi1967 ( 2016-03-18 12:40:05 +0300 )edit

maybe situations is the app you will like to try. It does not record actions, but you can set up situations. Whenn connected to my local wifi, start bluetooth, cutespot, ...

Moo-Crumpus ( 2016-03-18 14:27:43 +0300 )edit
1

Triggering touch inputs like tapping and swipes from a shell script would be really awesome for automating (and testing stuff), I agree. Sadly I haven't got the slightest idea how to accomplish this. With an X server, I'd try xdotool, but wayland/lipstick/…? No clue at all.

velox ( 2016-03-18 17:11:30 +0300 )edit

No idea on how to do touching stuff, but at least the example of enabling BT, pairing it with other device and launching program sounds something that could be done from command line?

avhakola ( 2016-03-19 01:03:31 +0300 )edit