This is my first time trying to write a script (or even use one), so I'm sorry if it sounds stupid, but here it goes.
I'm trying to write a simple script that alerts me whenever the topic of then current channel I'm in changes. I want it to make a sound (got this part done), and then in a custom window make show the channel name, and the topic it was changed to, and have it focus to the channel when I doubleclick it.
Right now I've gotten as far as making a custom window that alerts me whenever the topic changes, but I cant figure out how to even add items in the list of the custom window.
Here is where I'm at right now:
on 1:TOPIC:*:{
{ window -dg[2]k[0]lR @Topic-Alerts [ -1 -1 [ 900 500 ] { /iline 3 1 @Topic_$chan $1 } }
{ flash @Topic-Alerts }
{ beep 1 1 }
}
I don't know where I'm going wrong, and what to do now...