Custom:Device Actions

From Unified Remote

Jump to: navigation, search

There are two types of Actions that can be triggered in a custom remote. Typically you use Server Actions (which are invoked on the computer). However, there are also some Client Actions (which are invoked on the device). All device actions begin with "@" and do not require a Target.

Contents

Wake On Lan

The wake on lan action is of course a client action. The wake on lan message is sent from your device to your network (computer). To send a wake on lan message, use the "@wol" action.

<Action Name="OnWolButtonPressed">
   <ActionRef Name="@wol" />
</Action>

Keyboard

You can launch the device keyboard using the "@keyboard" action. You may want to use this if a certain action in a remote expects user input (for example for searching).

<Action Name="OnSearchButtonPressed">
   <ActionRef Name="Stroke" Target="Input">
      <Extra>LCONTROL</Extra>
      <Extra>VK_F</Extra>
   </ActionRef>
   <ActionRef Name="@keyboard" />
</Action>

Mouse

You can launch the mouse remote using the "@mouse" action. You may want to use this if a certain action in a remote expects user mouse input.

<Action Name="OnLaunchMouseButtonPressed">
   <ActionRef Name="@mouse" />
</Action>

Switch

The "@switch" action allows you to switch to a different remote on the device. You may want to use this if you are certain a custom "menu" remote, or shortcuts to other remotes.

<Action Name="OnSpotifyPressed">
   <ActionRef Name="@switch" Extra="Relmtech.Spotify" />
</Action>
<Action Name="OnMenuPressed">
   <ActionRef Name="@switch" Extra="MyCustomRemotes.Menu" />
</Action>

Toast (in 2.1.2+)

The "@toast" action lets you show a toast on the device.

<Action Name="ShowToast">
   <ActionRef Name="@toast" Extra="This is a toast!" />
</Action>
Personal tools