🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #126734

Re: [dialog] X-Now-Playing script :)

#126734
From: matija
Date: Sat, 21 Jun 2003 13:58
33 lines
2478 bytes
matija, completely geschtonkenflapped, wrote:
> i've written a nice little script that will add an "X-Now-Playing: song"
> header to your posts or at the end of them.

     and i've found a "bug". if winamp is not running, you get
     X-Now-Playing: "nothing", which looks weird. here's a portion
     of the script to fix it. of course, there's still the issue
     when the song's name is actually "nothing" ;))


-----

      // get the song name
      tempSong := winampSong (findWinampHWND);
      
      if tempSong <> 'nothing' then tempSong := '"' + tempSong + '"';

      // uncomment the line below to get a messagebox asking you if you wish
      // to include the X-Now-Playing header in your post
      // if (MessageBox(null, 'Insert X-Now-Playing: ' + tempSong + '?', 'Insert X-Header?', MB_YESNO) = IDYES) then

      // insert the x-header at the beginning of the message, dialog (or perhaps
      // the news server) will sort it out as necessary.
      message.insert (1, 'X-Now-Playing: ' + tempSong);

-----


-- 
there is a cheer. the gnomes have learned a new way to say hooray.   [-shpongle]

address is scrambled - remove SPAMISEVIL to reply
Technical Details
Message-ID: <9d9ui1b1zjky.dlg@shpongle.604>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!CARNet.hr!not-for-mail
References: <1m063ufypbf7v.dlg@shpongle.604>

Show Full Headers
Complete Article Headers
Message-ID: <9d9ui1b1zjky.dlg@shpongle.604>
Subject: Re: [dialog] X-Now-Playing script :)
Date: Sat, 21 Jun 2003 15:58:04 +0200
From: matija <mSkPrAnMic@jaIgSor.srEcVe.IhLr>
References: <1m063ufypbf7v.dlg@shpongle.604>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!CARNet.hr!not-for-mail
Newsgroups: news.software.readers
Organization: 604
Lines: 32
NNTP-Posting-Host: cmung3217.cmu.carnet.hr
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: bagan.srce.hr 1056203884 24505 193.198.140.169 (21 Jun 2003 13:58:04 GMT)
X-Complaints-To: abuse@carnet.hr
NNTP-Posting-Date: Sat, 21 Jun 2003 13:58:04 +0000 (UTC)
X-Now-Playing: nothing
X-Face: "7>Vm?rO.@qh|TIsbG@X7>asBJ8BSLKs%T@Wd+qgN<P?}[3`e1(M~;NT:f=hn#iN:nyAWyT fR9pPzc9ON|MqY_5Fvk)9[+7Lu!%Ihw.GS]KBQF6K_Vn1J2sB{Ne@3Fa5G-z
X-Afraid-Of: spiders
X-Searching-For: GMT soundtrack (guy sigsworth)
X-Mastered: the art of pizza making
User-Agent: 40tude_Dialog/2.0.5.53hr (945704c7.471.111)