Article View: news.software.readers
Article #168936Re: [Dialog] Compact with one click and no backup?
From: MLC
Date: Fri, 08 Jul 2005 08:02
Date: Fri, 08 Jul 2005 08:02
27 lines
2026 bytes
2026 bytes
Il Fri, 8 Jul 2005 00:54:59 +0200, Bertel Lund Hansen ha scritto:
> Hi all
>
> Is there a way to compact the database without having to remove
> the checkmark at "Make a superfluous backup every time"?
>
> I can make a script that activates the compact, but that does the
> same. Can one simulate keypressing in a script (because Alt-K
> Alt-N would do the trick).
Yes, with PostKey. Be aware though that with PostKey you should use
ADoLater instead of ADo for the command in question.
(and the PostKey codes below work for the _English_ localization of Dialog)
So your script becomes:
Program Compact;
Begin
ADoLater('CompactDatabase');
PostKey(75, false, true, false, false, false, false, false, false); //Alt-K
PostKey(78, false, true, false, false, false, false, false, false); //Alt-N
End.
Ciao,
--
Maria L C - 08/07/2005 9.54.47
Technical Details
Message-ID:
<oa6d9s4in7v4.dlg@maluc.it>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mailReferences:
<1spdj3fpmw2f4.bn4igwto4e4e.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <oa6d9s4in7v4.dlg@maluc.it> Subject: Re: [Dialog] Compact with one click and no backup? Date: Fri, 08 Jul 2005 08:02:01 GMT From: MLC <marialuisac@gmail.com> References: <1spdj3fpmw2f4.bn4igwto4e4e.dlg@40tude.net> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail Newsgroups: news.software.readers User-Agent: 40tude_Dialog/2.0.15.1 (36db231f.128.346) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: marialuisac@gmail.com Lines: 27 NNTP-Posting-Host: 151.26.201.55 X-Complaints-To: abuse@libero.it X-Trace: twister2.libero.it 1120809721 151.26.201.55 (Fri, NNTP-Posting-Date: Fri, 08 Jul 2005 10:02:01 MET DST Organization: [Infostrada]