Noob question - how to launch a Windows app from Android remote?
I use Unified Remote on my Android phone for basic mouse and keyboard actions on my HTPC (Windows 10). What I'd like to do is quickly open a specific Windows program on the HTPC using my phone. I'm guessing that this will involve some sort of scripting, which I haven't explored before in Unified Remote, but can't find a beginner's guide anywhere. Could anyone point me to some basic instructions for how to set up Unified Remote to launch an application on a remote Windows machine?
You need to look at (in order) "concepts" "controls" and "libs".
If you have an XML editor it can be easier (it will highlight any mistakes you make).
Look inside the remotes included with the Unified Remote server to see some examples.
Not so easy maybe, but worth the effort.
Come back to the forum with any questions...... someone will always help..!
Or even build it for you if you give some more details?
Thanks for the pointers. So I've created a subfolder: C:\ProgramData\Unified Remote\Remotes\Custom\MyRemote
I've created the following files in that folder:
The files look like this:
meta.name: MyRemote meta.author: Me meta.description: Run my programs. meta.tags: My remote
<?xml version="1.0" encoding="utf-8"?> <layout> <row> <button text="Squeezeplayer" ontap="command1" /> </row> <row> <button text="Kodi" ontap="command2" /> </row> <row> <button text="Command 3" ontap="command3" /> </row> </layout> <button text="Command 3" ontap="command3" /> </row> </layout>
[email protected] Squeezeplay actions.command1 = function () os.start("C:\Program Files (x86)\SqueezePlay\squeezeplay.exe"); end [email protected] Command 2 actions.command2 = function () os.start(""C:\Program Files (x86)\Kodi\kodi.exe""); end [email protected] Command 3 actions.command3 = function () os.start("ipconfig", "/all"); end
I then restarted the Unified Remote Server. I opened the Android app and added "Custom Run" to my visible remotes. When I tap that option I get three command buttons labelled COMMAND 1/2/3. If I tap COMMAND 1 it opens the calculator app on the PC.
I'm guessing that I need to add my own custom remote to my list, but I don't see it as an option when I tap the "+" button to add a remote to my menu.
Ah I just spotted the problem - the log showed that it wasn't loading my remote due to a syntax error - I needed to double-up the backslash characters (and remove the excess double quotes in the 2nd command definition)