Article View: news.software.readers
Article #225051Re: [Dialog] Scripting help
From: Sqwertz
Date: Sun, 24 Aug 2008 04:11
Date: Sun, 24 Aug 2008 04:11
35 lines
2677 bytes
2677 bytes
"Ted S." <fedya@hughes.spam> wrote: > On Sat, 23 Aug 2008 12:15:20 -0500, Sqwertz wrote: > >> You're missing the 'begin' and 'end;' block, at the least. > > I didn't make it entirely clear, but the few lines I quoted in my post > were what I added to what was already there, which included a 'begin' > and 'end' block. > >> Take a >> look at the Dialog script library to get some examples of how other >> people have implemented the OnBeforeSendingMessage event. Scripts >> such and changing headers will all rely on OnBeforeSendingMessage. >> >> http://dialog.datalist.org/scripts/script_library.html >> >> Of particular interest would be: >> http://dialog.datalist.org/scripts/CustomizeUserAgent.html > > Oh, dear. This code is way above my head. :-( Object Pascal is not a pretty language. You can at least see that you're missing the begin/end within your 'if' block. It's not like C where you can have a single command following an 'if' without blocking it. Also, function declarations liek you're trying to use should probably happen outside of any nested blocks of code (not within an 'if' statment). But I'm no expert in the language. That's just usually how it works. -sw
Technical Details
Message-ID:
<230808.231102nsr82.644@sqwertz.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nlpi057.nbdc.sbc.com!prodigy.net!nlpi062.nbdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi061.nbdc.sbc.com.POSTED!666d6152!not-for-mailReferences:
<yb8v1163a8fo$.dlg@justacineast.motzarella.org> <230808.121520nsr80.75@sqwertz.com> <145dsywt4nk2e$.dlg@justacineast.motzarella.org>Show Full Headers
Complete Article Headers
Message-ID: <230808.231102nsr82.644@sqwertz.com> Subject: Re: [Dialog] Scripting help Date: Sat, 23 Aug 2008 23:11:02 -0500 From: Sqwertz <swertz@cluemail.compost> References: <yb8v1163a8fo$.dlg@justacineast.motzarella.org> <230808.121520nsr80.75@sqwertz.com> <145dsywt4nk2e$.dlg@justacineast.motzarella.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nlpi057.nbdc.sbc.com!prodigy.net!nlpi062.nbdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi061.nbdc.sbc.com.POSTED!666d6152!not-for-mail Newsgroups: news.software.readers MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-No-Archive: banter X-WebTV-Stationery: Standard; BGColor=red; Background="http://i26.tinypic.com/25polj9.gif"; TextColor=red Lines: 35 NNTP-Posting-Host: 75.34.101.135 X-Complaints-To: abuse@prodigy.net X-Trace: nlpi061.nbdc.sbc.com 1219551059 ST000 75.34.101.135 (Sun, NNTP-Posting-Date: Sun, 24 Aug 2008 00:10:59 EDT Organization: at&t http://my.att.net/ X-UserInfo1: FKPO@MC@@S@US^T[KROLN[TDFZ\@@FXLM@TDOCQDJ@_@FNTBLNTC@AWZWDXZXQ[K\FFSKCVM@F_N_DOBWVWG__LG@VVOIPLIGX\\BU_B@\P\PFX\B[APHTWAHDCKJF^NHD[YJAZMCY_CWG[SX\Y]^KC\HSZRWSWKGAY_PC[BQ[BXAS\F\\@DMTLFZFUE@\VL