Normally I am busy with my computer and can't look at ICC and I don't want to miss the tells I received..I also hear no voices from Jin as I am listening to the music all the time.So I wrote a plugin which pops up when I receive a tell.You can modify it so that it can pop-up on other actions too..
1 . Linux ( windows is for losers)
2 . python( %99 of linux boxes have it no worries)
3 . wxpython ( a python extension to create sweet guis . apt-get install python-wxgtk2.6 if you have a debian based distro)otherwise search and see www.wxpython.org
4 . Allright you can make this work on windoze too what you need is python (www.python.org) and wxpython(www.wxpython.org)
here is what you have to do to make it work:
Create a Beanshell script with whatever name,choose Chat(all types of tells) as event type choose personal tells and write
exec("python popup.py " + sender + " " +message);
Then open your favourite editor ( vim if you ask me :p ) write the code below and save as popup.py
for k in message:
if len(str(b))==1: hour="0"+str(b)
if len(str(b))==1: minute="0"+str(b)
if len(str(b))==1: second="0"+str(b)
app = wx.PySimpleApp()
frame = wx.Frame(None, -1, "Tell received from ICC",size=(500,200))
k=wx.StaticText(frame, -1, "Message received\nFrom: %s\nMessage: '%s'" %(sender,mes),wx.Point(0, 0))
k.SetFont(wx.Font(20, wx.SWISS,False,False, 0, 'Arial'))
l=wx.StaticText(frame, -1, "Date : %s"% (TIME),wx.Point(0,100))
here is how it looks like
note: this is the most basic way to integrate python with jin. If you have any other suggestions or wishes just post I'll have a look...
forgot to say : you have to save popup.py in jin's folder and do 'chmod a+x popup.py'
It's a script, not a plugin :-)
Log in to post a comment.