🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #265140

Re: [dialog] Can I set dialog to edit in Notepad++

#265140
From: Bernd Rose
Date: Fri, 13 Aug 2021 18:54
45 lines
3546 bytes
On Fr, 13th Aug 2021 20:09:36 +0200, bill wrote:

>  FileExecute(0,'C:\program files\notepad++\notepad++.exe','open','"C:\temp\dialog.txt"','',1,50000);

FileExecute is a wrapper for ShellExecute. To understand the purpose of
each parameter you may look here:

https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea

Please note, that lpOperation and lpFile interchanged position and 
FileExecute has an additional wait timer (in milliseconds) as last
parameter.

>> You sure could add a return value of failure to this script, which would
>> bring you back to the editor.
[...] 
> No matter _where_ I put the return value of false it errors with:
> "Posting article failed: Posting canceled by "OnBeforeSendingMessage" script."

Correct behavior for "return:=false". It doesn't bring you back to the
Compose windows (what I meant with "editor"), but just doesn't send the
message and leaves it inside the Dialog Outbox.

>> Because 40tude assigns charsets on-the-fly, your saved intermediate
>> text file could have /any/ encoding. After loading the text inside
>> Notepad++, you may need to adjust the encoding to avoid the creation
>> of mixed-encoding texts. 
> 
> That's the entire reason why I use notepad++ in the first place!
> (Notepad++ has a macro to fix all inconsistent character encoding.)

Even /if/ you got this part right, you come back into 40tude Dialog at
a time, when it already decided, which charset/encoding it will announce
inside the headers. Therefore, you'd need to adjust them as well (suitable
to your text). Else the charset declaration of your message would most
likely be wrong sometimes or maybe even quite often or nearly always.

> I can't for the life of me figure out how to _combine_ two 
> OnBeforeSendingMessage scripts (I've tried every syntax guess 
> I could figure out and they all fail).

And we shall guess, what commands your second script contains? Or is this
just you muttering sth. in your boots?  ;-)

Bernd
Technical Details
Message-ID: <14putdxasapki$.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <sevelu$1qrk$1@gioia.aioe.org> <l01qbjvknuqe.dlg@v.nguard.lh> <sf0pg9$16vs$1@gioia.aioe.org> <20210811163605.abc503d2af7b32d36dd31e34@127.0.0.1> <sf12g8$1bn1$1@gioia.aioe.org> <aje23prjgwng.dlg@v.nguard.lh> <sf23af$18a9$1@gioia.aioe.org> <1qaeainv3x9gl$.dlg@b.rose.tmpbox.news.arcor.de> <sf3f6h$k0u$1@gioia.aioe.org> <86lyjunafj21$.dlg@b.rose.tmpbox.news.arcor.de> <70r516k5wr9t$.dlg@v.nguard.lh> <1lo779jiegvl3$.dlg@b.rose.tmpbox.news.arcor.de> <sf4ube$r5v$1@gioia.aioe.org> <an0k6nzbgcqh$.dlg@b.rose.tmpbox.news.arcor.de> <sf668m$408$1@gioia.aioe.org> <uci12ip228kn.dlg@b.rose.tmpbox.news.arcor.de> <sf6cgf$131m$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <14putdxasapki$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: [dialog] Can I set dialog to edit in Notepad++
Date: Fri, 13 Aug 2021 20:54:40 +0200
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <sevelu$1qrk$1@gioia.aioe.org> <l01qbjvknuqe.dlg@v.nguard.lh> <sf0pg9$16vs$1@gioia.aioe.org> <20210811163605.abc503d2af7b32d36dd31e34@127.0.0.1> <sf12g8$1bn1$1@gioia.aioe.org> <aje23prjgwng.dlg@v.nguard.lh> <sf23af$18a9$1@gioia.aioe.org> <1qaeainv3x9gl$.dlg@b.rose.tmpbox.news.arcor.de> <sf3f6h$k0u$1@gioia.aioe.org> <86lyjunafj21$.dlg@b.rose.tmpbox.news.arcor.de> <70r516k5wr9t$.dlg@v.nguard.lh> <1lo779jiegvl3$.dlg@b.rose.tmpbox.news.arcor.de> <sf4ube$r5v$1@gioia.aioe.org> <an0k6nzbgcqh$.dlg@b.rose.tmpbox.news.arcor.de> <sf668m$408$1@gioia.aioe.org> <uci12ip228kn.dlg@b.rose.tmpbox.news.arcor.de> <sf6cgf$131m$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.readers
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: solani.org; logging-data="32282"; mail-complaints-to="abuse@news.solani.org"
User-Agent: 40tude_Dialog/2.0.15.41 (653134d6.167.264)
Cancel-Lock: sha1:REsViuhu94hHQKvL+2A+tLT33CI=
X-User-Id: eJwFwYkBAzEIA7CVgMY84+BcvP8IlfBLz1snkQeCSlftzmAUO7qr0r7dizdPmYRvUtZ9tmuMC+5cuXpYVBRiTCmz7zn0B+QsGms=