Custom:Util Actions

From Unified Remote

Jump to: navigation, search

Contents

Wait, Pause, Sleep

Waits the specified amount of time before continuing.

Extras:

  • Time (ms): integer

Example (Wait 1 second):

    <Action Name="foo">
      <ActionRef Name="Wait" Target="Util">
        <Extra Name="Time">1000</Extra>
      </ActionRef>
    </Action>

Msg, Alert

Show a message box on computer.

Extras:

  • Text: text
  • Caption (optional): text
  • Icon (optional): None, Error, Hand, Stop, Question, Exclamation, Warning, Information, Asterisk

Example (Open Alert):

    <Action Name="foo">
      <ActionRef Name="Msg" Target="Util">
        <Extra Name="Text">Time end</Extra>
        <Extra Name="Caption">Time</Extra>
        <Extra Name="Icon">Exclamation</Extra>
      </ActionRef>
    </Action>

Not (2.2)

Inverts Boolean variable

Extras:

  • Var: boolean

Returns:

  • $res : boolean

Example:

    <Action Name="foo">
      <ActionRef Name="Not" Target="Util">
        <Extra Name="Not">true</Extra>
      </ActionRef>
    </Action>

Split (2.2)

Splits string into several strings and make it ready for List control.

Extras:

  • String: string
  • Char: char (the char to split on)

Returns:

  • $res : string

Example:

    <Action Name="foo">
      <ActionRef Name="Split" Target="Util">
        <Extra Name="String">a*b*c</Extra>
        <Extra Name="Char">*</Extra>
      </ActionRef>
    </Action>

Join (2.2)

Joins variables to string

Extras: Multiple strings no name.

Returns:

  • $res : string

Example:

    <Action Name="foo">
      <ActionRef Name="Join" Target="Util">
        <Extra>$var1</Extra>
        <Extra>:</Extra>
        <Extra>$var</Extra>
        .
        .
        .
      </ActionRef>
    </Action>

Time (2.2)

Return current time in optional format Information about available formats:[1]

Extras:

  • Format: string

Returns:

  • $res : string

Example:

    <Action Name="foo">
      <ActionRef Name="Time" Target="Util">
        <Extra Name="Format">dd/MM/yyyy</Extra>
      </ActionRef>
    </Action>

Date (2.2)

Return current Date in standard format of your computer region

Returns:

  • $res : string

Example:

    <Action Name="foo">
      <ActionRef Name="Date" Target="Util"/>
    </Action>
Personal tools