Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
altered variable contents
#1
I have two macros on two different computers. One of them controls the other. The first computer passes on one or more mp3's to another computer. The second computer only seems to be processing every other file, starting with the first one, regardless of how many I select.

The first computer macro:
Code:
Copy      Help
;This macro accepts one or more mp3 filenames from
;the system to be played or enqueued on a remote computer

function $mp3 $action

str m=mp3
m.findreplace("\\zeners\music" "e:" 2)
;action is Play or Enqueue
str a=action

int p=net("zeners" "" "Play in Winamp" 0 a m)

The second computer macro:
Code:
Copy      Help
;This macro accepts input from remote computer to play or enqueue mp3's

function $operation $mp3

str a="/ADD "
str o=operation
str m=mp3
str q="''"
str ply.from(q m q)
str enq.from(a q m q)
str winamp="C:\Program Files\Winamp\winamp.exe"

if o = "Play"
,run winamp ply
else if o = "Enqueue"
,run winamp enq

My test would seem to indicate that the concatenation operation is striping the extra songs out of the mp3 variable.

Thanks for the help...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)