A very simple Amip controller

Moderator: GeekShed.Net Staff

A very simple Amip controller

Postby GrimReaper » Mon Sep 06, 2010 6:47 pm

Code: Select all
on *:START: {
  $iif($dialog(amip_ctrl),dialog -v,dialog -m amip_ctrl) amip_ctrl
}
alias amip { $iif($dialog(amip_ctrl),dialog -v,dialog -m amip_ctrl) amip_ctrl }
dialog amip_ctrl {
  title "Amip Controller by Danneh"
  size -1 -1 106 18
  option dbu
  button "Play", 1, 3 3 16 12
  button "Stop", 2, 21 3 16 12
  button "Next", 3, 39 3 16 12
  button "Prev", 4, 57 3 16 12
  button "Announce", 5, 75 3 28 12
}

on *:DIALOG:amip_ctrl:sclick:1-5: {
  if ($did == 1) { dde mplug control play }
  if ($did == 2) { dde mplug control stop }
  if ($did == 3) { dde mplug control > }
  if ($did == 4) { dde mplug control < }
  if ($did == 5) { dde mplug announce }
}


Image

It will load on start up.. there is also an alias "/amip" to load it up if you close it.
GrimReaper
 
Posts: 73
Joined: Wed Oct 28, 2009 4:34 pm
Location: In your router, Resetting your connection.

Return to Script help

Who is online

Users browsing this forum: No registered users and 12 guests

cron