PDA

View Full Version : Girder 4 Lua Help



Discodom
August 24th, 2006, 01:34 PM
I am in the process of moving over from Girder 3 to Girder 4

I had a lua script that checked the pld1 value given by DVD spy to check if Winamp had entered the Stoped state, and if it had to trigger a girder event.
I can not get this to work in girder 4 & am sure it is probably down to lua changing to version 5

anyway, here is the old script, please can someone tell me where i am going wrong.

Status = (pld1)
if Status == "STOP"
then TriggerEvent ("Pics",18)
end

Not very long is it!
Plus for some reason I don'r seam to be able to open the help file on this machine, so I have to keep running upstairs. Will keep me fit at least!

Discodom
August 24th, 2006, 01:41 PM
Oops, found it
Had to jump on my upstairs PC though
just incase anyone else is as daft as me the TriggerEvent is now Gir.triggerevent

easy when you know how.

Rob H
August 24th, 2006, 03:34 PM
Actually, it's gir.TriggerEvent (Lua is case sensitive)