Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"I go on working for the same reason a hen goes on laying eggs." -- H. L. Mencken


devel / comp.lang.clipper.visual-objects / mouse

SubjectAuthor
* mouseaurora baccio
+* Re: mouseWolfgang Riedmann
|`- Re: mouseAlessandro Vacchiano
`- Re: mouseJamal

1
mouse

<ec3a3f73-2db7-448e-9a08-34ef89a09d35n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=976&group=comp.lang.clipper.visual-objects#976

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:6214:e47:: with SMTP id o7mr102447551qvc.61.1637586095395;
Mon, 22 Nov 2021 05:01:35 -0800 (PST)
X-Received: by 2002:a37:e40a:: with SMTP id y10mr47966529qkf.3.1637586095238;
Mon, 22 Nov 2021 05:01:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Mon, 22 Nov 2021 05:01:35 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=109.116.206.250; posting-account=mGyhkgoAAACGngz8cxCfTmITiU5OjECD
NNTP-Posting-Host: 109.116.206.250
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ec3a3f73-2db7-448e-9a08-34ef89a09d35n@googlegroups.com>
Subject: mouse
From: aurorabaccio@gmail.com (aurora baccio)
Injection-Date: Mon, 22 Nov 2021 13:01:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 13
 by: aurora baccio - Mon, 22 Nov 2021 13:01 UTC

Good morning,
I have a question and I explain why.
I am convinced that the episodic failure of a medical application depends on the fact that the secretaries continue to press the mouse button even though there is a warning of printing in progress or because they think that pressing the button will speed up the procedure. I have disabled the 'okay' keys for this very reason and re-enable them at the end of the printing procedure. But every now and then something happens. And always in the printing process. And there is no logical reason for the error. It simply freezes the pc.
Is there any way to disable the mouse and then re-enable it ?
If possible an example.
Thanks for the help.
Aurora Baccio

Re: mouse

<j03i75FeqroU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=977&group=comp.lang.clipper.visual-objects#977

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: wriedmann@gmail.com (Wolfgang Riedmann)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: mouse
Date: Tue, 23 Nov 2021 08:06:12 +0100
Lines: 27
Message-ID: <j03i75FeqroU1@mid.individual.net>
References: <ec3a3f73-2db7-448e-9a08-34ef89a09d35n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-Trace: individual.net Qrrg5LfrJOD2pcqEHAX5uwcNdDGhoKh4tB/hosMpu5GlySqBo=
Cancel-Lock: sha1:Eg/gtYnCu5ylRPQ4hyYl8zxmDbU=
User-Agent: XanaNews/1.18.1.6
 by: Wolfgang Riedmann - Tue, 23 Nov 2021 07:06 UTC

Hi Aurora,

IMHO this is not possible without administration rights, and even with
that you risk that the mouse does not return reponsive immediatly after
enabling it.

Wolfgang

aurora baccio wrote:

> Good morning,
> I have a question and I explain why.
> I am convinced that the episodic failure of a medical application
> depends on the fact that the secretaries continue to press the mouse
> button even though there is a warning of printing in progress or
> because they think that pressing the button will speed up the
> procedure. I have disabled the 'okay' keys for this very reason and
> re-enable them at the end of the printing procedure. But every now
> and then something happens. And always in the printing process. And
> there is no logical reason for the error. It simply freezes the pc.
> Is there any way to disable the mouse and then re-enable it ? If
> possible an example. Thanks for the help. Aurora Baccio

--

Re: mouse

<5dc571d6-8b4a-4dba-9cce-fbc5e58ac982n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=978&group=comp.lang.clipper.visual-objects#978

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:ac8:5f89:: with SMTP id j9mr6702151qta.391.1637677955774;
Tue, 23 Nov 2021 06:32:35 -0800 (PST)
X-Received: by 2002:a05:620a:2949:: with SMTP id n9mr3775359qkp.39.1637677955666;
Tue, 23 Nov 2021 06:32:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Tue, 23 Nov 2021 06:32:35 -0800 (PST)
In-Reply-To: <j03i75FeqroU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=93.41.183.196; posting-account=Jbnn9woAAADkd8GhkOL37fKF008Mv9tO
NNTP-Posting-Host: 93.41.183.196
References: <ec3a3f73-2db7-448e-9a08-34ef89a09d35n@googlegroups.com> <j03i75FeqroU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5dc571d6-8b4a-4dba-9cce-fbc5e58ac982n@googlegroups.com>
Subject: Re: mouse
From: alessandro.vacchiano@gmail.com (Alessandro Vacchiano)
Injection-Date: Tue, 23 Nov 2021 14:32:35 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: Alessandro Vacchiano - Tue, 23 Nov 2021 14:32 UTC

Try to use before start to print (first line) :

LockWindowUpdate(self:Handle()) // self is the window

<your code>

LockWindowUpdate(null_ptr)

look on win api documentation this stop any dispatch to the window

Bye Alessandro.

Re: mouse

<snm49v$5ca$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=979&group=comp.lang.clipper.visual-objects#979

  copy link   Newsgroups: comp.lang.clipper.visual-objects
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nospam@example.com (Jamal)
Newsgroups: comp.lang.clipper.visual-objects
Subject: Re: mouse
Date: Wed, 24 Nov 2021 14:37:35 -0500
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <snm49v$5ca$1@dont-email.me>
References: <ec3a3f73-2db7-448e-9a08-34ef89a09d35n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 24 Nov 2021 19:37:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c735f96d3b884c048985cc9102c706e9";
logging-data="5514"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FmRBq2xUI578XpyWud4kScpTfCTr9rM8="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:i4FIV2e/hMS2JL0hBlRcwuH0V7o=
In-Reply-To: <ec3a3f73-2db7-448e-9a08-34ef89a09d35n@googlegroups.com>
Content-Language: en-US
 by: Jamal - Wed, 24 Nov 2021 19:37 UTC

Aurora,

You cannot blame this on the user in a desktop application!

If it were was a web application, then I would say that it is possible
that a user clicks a button more than once, causing multiple execution
of same methods; even then there ways to prevent that.

Going back to your issue, you may add a flag variable to indicate that
printing is in progress:

For example:

In your print method,

IF !SELF:lPrinting
SELF:lPrinting := TRUE
ELSE
RETURN NIL //
ENDIF

// handle your printing

// Finished printing
SELF:lPrinting = FALSE

RETURN NIL

If after you implement something similar to the above and you still have
the same PC freeze issue, then you need to look deeper at your code
logic or other factors like networking.

Jamal

On 11/22/2021 8:01 AM, aurora baccio wrote:
> Good morning,
> I have a question and I explain why.
> I am convinced that the episodic failure of a medical application depends on the fact that the secretaries continue to press the mouse button even though there is a warning of printing in progress or because they think that pressing the button will speed up the procedure. I have disabled the 'okay' keys for this very reason and re-enable them at the end of the printing procedure. But every now and then something happens. And always in the printing process. And there is no logical reason for the error. It simply freezes the pc.
> Is there any way to disable the mouse and then re-enable it ?
> If possible an example.
> Thanks for the help.
> Aurora Baccio
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor