Multiple Actions for button in widget/quick action bar
Hello, unified remote is awesome, and I am right now programming some custom remotes for my htpc. One thing I am interested in: I am running kodi on the htpc and using yatse on the android tablet as a specific remote. I would like to have a custom button, which will trigger two actions:
- start kodi on the htpc (windows)
- open yatse on the tablet
Sure, I could do that with two buttons, but it would be more ergonomic to organize it in one step. I couldn`t find any existing feature for that - do you think this can be done?
Thx & cheers,
I haven't been able to put this together using UR alone. It's right there though haha, hopefully we can work it out.
Starting kodi from button is easy:
os.open("C:\\Program Files (x86)\\Kodi\\kodi.exe");
The only way I know how to open an app on device is with a widget.
Widget Property editor:
Change Action => Device Action => Open App => (choose app).
But I can't replicate that in code for the
remote.lua. There is no documentation here for a handful of the listed device actions, Open App being one of them.
I tried syntax similar to eg. Toast:
device.toast("Hello There");, and a hint from the summary screen from the Property Editor described above:
I have tried using Macrodroid, but can't work out how to call the event key from UR - there is no entry for Macrodroid under Device à la Tasker. Tried tasker, all the necessary steps fulfilled, but nothing happens when I hit the widget. Not to mention then trying to guess what the corresponding command syntax is for the remote.lua file. Frustrating.
Hi Nathan, thx for digging...
Yes, starting kodi is easy, but syntax didn't work this way for me (Windows 10), because of whitespaces in path - following syntax was successful:
os.open <square bracket><square bracket>"c:\\Program Files (x86)\\Kodi\\kodi.exe"<square bracket><square bracket>;
(having problems formatting)
But that's another topic. My last thought was "batch" should work with Tasker (but I don't have it), which gives me an additional possibility to get better looking shortcuts on the screen - the selection of possible icons for a widget in UR is really poor. I am surprised it didn't work for you, depending on the documentation and with the UR plugin for tasker I expected that it should run - what is your general experience with Tasker and UR?
I didn't tried including client action (Android) in the remote.lua on server side, I will have a look.
Any other ideas?