Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

How many chunks could checkchunk check if checkchunk could check chunks? -- Alan Cox


devel / comp.lang.rexx / Re: Question about usage of w32clipopen

SubjectAuthor
* Question about usage of w32clipopenArthur T.
`* Re: Question about usage of w32clipopenArthur T.
 `* Re: Question about usage of w32clipopenArthur T.
  `* Re: Question about usage of w32clipopenArthur T.
   `- Re: Question about usage of w32clipopenArthur T.

1
Question about usage of w32clipopen

<0di72htn5mmutd3a4c1ert0k6p758qdane@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=36&group=comp.lang.rexx#36

  copy link   Newsgroups: comp.lang.rexx
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx40.iad.POSTED!not-for-mail
From: arthur@munged.invalid (Arthur T.)
Newsgroups: comp.lang.rexx
Subject: Question about usage of w32clipopen
Message-ID: <0di72htn5mmutd3a4c1ert0k6p758qdane@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 16
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 05 Mar 2022 20:49:36 UTC
Date: Sat, 05 Mar 2022 15:49:38 -0500
X-Received-Bytes: 1117
 by: Arthur T. - Sat, 5 Mar 2022 20:49 UTC

System:
Win10
Regina REXX 3.8 (yes, I know I should update).

Situation:
In one command window, I issue w32clipopen and wait for a keystroke.
While that's waiting, I issue w32clipopen in a different command
window, and it gets return code 1 (i.e. successful).

Am I doing something wrong? Is this working as designed?

If the answers are "no" and "yes", I don't understand the usefulness
of w32clipopen and would appreciate an explanation.

--
Arthur T. - ar23hur "at" pobox "dot" com

Re: Question about usage of w32clipopen

<a9o72h95hnpk86d9hf6lrdmehjp45v6552@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=37&group=comp.lang.rexx#37

  copy link   Newsgroups: comp.lang.rexx
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx01.iad.POSTED!not-for-mail
From: arthur@munged.invalid (Arthur T.)
Newsgroups: comp.lang.rexx
Subject: Re: Question about usage of w32clipopen
Message-ID: <a9o72h95hnpk86d9hf6lrdmehjp45v6552@4ax.com>
References: <0di72htn5mmutd3a4c1ert0k6p758qdane@4ax.com> <uhk72htcg4rbt1b4q84vdh3cuuhf6c86vr@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 18
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sat, 05 Mar 2022 22:18:14 UTC
Date: Sat, 05 Mar 2022 17:18:14 -0500
X-Received-Bytes: 1389
 by: Arthur T. - Sat, 5 Mar 2022 22:18 UTC

In Message-ID:<uhk72htcg4rbt1b4q84vdh3cuuhf6c86vr@4ax.com>,
Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:

> I'm curious as to where this w32clipopen is coming from -- Google has
>NO HITS on that term, and I find nothing with that name in either ooREXX
>5.x, nor Regina 3.9.4 (ooREXX does have a clipboard class documented in its
>win32 extensions package).

Sorry. Regina REXX also has a w32funcs extension and that's where it
comes from. The first few lines of my test program are:

call rxfuncadd 'w32loadfuncs', 'w32util', 'w32loadfuncs'
call w32loadfuncs

y = w32clipopen()

--
Arthur T. - ar23hur "at" pobox "dot" com

Re: Question about usage of w32clipopen

<vi782h9slosvas723fc228ho2i4qmsb96b@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=38&group=comp.lang.rexx#38

  copy link   Newsgroups: comp.lang.rexx
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx99.iad.POSTED!not-for-mail
From: arthur@munged.invalid (Arthur T.)
Newsgroups: comp.lang.rexx
Subject: Re: Question about usage of w32clipopen
Message-ID: <vi782h9slosvas723fc228ho2i4qmsb96b@4ax.com>
References: <0di72htn5mmutd3a4c1ert0k6p758qdane@4ax.com> <uhk72htcg4rbt1b4q84vdh3cuuhf6c86vr@4ax.com> <a9o72h95hnpk86d9hf6lrdmehjp45v6552@4ax.com> <q7v72h9n9ir9ik8sijsuhro4qen1rr92e4@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 36
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 06 Mar 2022 02:45:41 UTC
Date: Sat, 05 Mar 2022 21:45:41 -0500
X-Received-Bytes: 2058
 by: Arthur T. - Sun, 6 Mar 2022 02:45 UTC

In Message-ID:<q7v72h9n9ir9ik8sijsuhro4qen1rr92e4@4ax.com>,
Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:

> I would suspect your second attempt to open the clipboard is returning
>with a fail status, as the first task has it locked. Your sample code above
>is never testing return codes from the calls, or from the functions
>themselves.

That's what I expected. I've now made as simple a program as I could
to test it. The invocation of w32clipopen is copy-and-pasted directly
from the manual (except I'm using actual single quotes):

<code>
call rxfuncadd 'w32loadfuncs', 'w32util', 'w32loadfuncs'
call w32loadfuncs

if \w32ClipOpen() then do
say 'Failed to open the clipboard'
exit 1
end

say "Hit <Enter> to end."
pull ans

x = w32clipClose()
</code>

I run it in one command prompt window. While it's waiting for me to
hit Enter, I run it on another command prompt window. I then have
both windows waiting for me to hit Enter, which means that neither
failed to open the clipboard. Hence my wondering if I'm doing
something wrong, if my reasoning is wrong, or if there's either a bug
or documentation problem.

--
Arthur T. - ar23hur "at" pobox "dot" com

Re: Question about usage of w32clipopen

<ko7a2hdejdi3sfggh7mdtun2pvqcc695tq@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=39&group=comp.lang.rexx#39

  copy link   Newsgroups: comp.lang.rexx
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
From: arthur@munged.invalid (Arthur T.)
Newsgroups: comp.lang.rexx
Subject: Re: Question about usage of w32clipopen
Message-ID: <ko7a2hdejdi3sfggh7mdtun2pvqcc695tq@4ax.com>
References: <0di72htn5mmutd3a4c1ert0k6p758qdane@4ax.com> <uhk72htcg4rbt1b4q84vdh3cuuhf6c86vr@4ax.com> <a9o72h95hnpk86d9hf6lrdmehjp45v6552@4ax.com> <q7v72h9n9ir9ik8sijsuhro4qen1rr92e4@4ax.com> <vi782h9slosvas723fc228ho2i4qmsb96b@4ax.com> <juo92hdc64o75mkltluaoeng4g9g7h1197@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 36
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 06 Mar 2022 21:22:25 UTC
Date: Sun, 06 Mar 2022 16:22:26 -0500
X-Received-Bytes: 2423
 by: Arthur T. - Sun, 6 Mar 2022 21:22 UTC

In Message-ID:<juo92hdc64o75mkltluaoeng4g9g7h1197@4ax.com>,
Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:

> At this point, I couldn't say... However,
>https://docs.microsoft.com/en-us/windows/win32/dataxchg/clipboard-operations#clipboard-ownership
>has an interesting (and confusing) comment:
>"""
>A window becomes the clipboard owner when it places data on the clipboard,
>specifically, when it calls the EmptyClipboard function.
>"""
>(apparently one has to empty anything some other application put into it to
>take ownership). Perhaps open alone is sort of a do-nothing?
>"""
<snip>
> Might I suggest attempting to put the library equivalent of the empty
>call between the open and your console read statement?

Thanks for finding that link, but it doesn't seem to be my problem.

I called the empty function between the open and the console read. No
difference. I then actually updated the clipboard after the empty,
and again no difference (but the clipboard was actually updated).

So, I'm leaning towards "bug". Before I report it, I'll have to get
the newest Regina and (if there's a newer one) newest W32Funcs and
try again.

It's going to be quite a while before I can justify the amount of
time needed to properly document a bug report, so that's not going to
happen soon. I take reporting bugs seriously, and try to make my
report terse, yet complete and correct.

But, again, thanks for your help.

--
Arthur T. - ar23hur "at" pobox "dot" com

Re: Question about usage of w32clipopen

<b0ia2hhqfumlpub9ugnvuuqk9ssnjj7kk8@4ax.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=40&group=comp.lang.rexx#40

  copy link   Newsgroups: comp.lang.rexx
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx35.iad.POSTED!not-for-mail
From: arthur@munged.invalid (Arthur T.)
Newsgroups: comp.lang.rexx
Subject: Re: Question about usage of w32clipopen
Message-ID: <b0ia2hhqfumlpub9ugnvuuqk9ssnjj7kk8@4ax.com>
References: <0di72htn5mmutd3a4c1ert0k6p758qdane@4ax.com> <uhk72htcg4rbt1b4q84vdh3cuuhf6c86vr@4ax.com> <a9o72h95hnpk86d9hf6lrdmehjp45v6552@4ax.com> <q7v72h9n9ir9ik8sijsuhro4qen1rr92e4@4ax.com> <vi782h9slosvas723fc228ho2i4qmsb96b@4ax.com> <juo92hdc64o75mkltluaoeng4g9g7h1197@4ax.com> <ko7a2hdejdi3sfggh7mdtun2pvqcc695tq@4ax.com> <0paa2hpicgannfbj55ufeaoh8vgrd0sahe@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
X-No-Archive: yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 24
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 06 Mar 2022 23:55:40 UTC
Date: Sun, 06 Mar 2022 18:55:41 -0500
X-Received-Bytes: 2060
 by: Arthur T. - Sun, 6 Mar 2022 23:55 UTC

In Message-ID:<0paa2hpicgannfbj55ufeaoh8vgrd0sahe@4ax.com>,
Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:

>>It's going to be quite a while before I can justify the amount of
>>time needed to properly document a bug report, so that's not going to
>>happen soon. I take reporting bugs seriously, and try to make my
>>report terse, yet complete and correct.
>>
>
> But is anyone working on those libraries <G> There doesn't seem to have
>been any work since 2004. The last activity by the author, in this
>newsgroup, was March 11 2008. (Now to work on killing the downloading of
>14K messages!)

There appears to be exactly one person (Mark Hessling) working on
Regina. I haven't seen any activity from Mr. McPhee for quite a
while, but that doesn't mean I'll give up hope.

But it does mean I'm not going to depend on clipboard locking any
time in the near future. (I'm also not going to try modifying the
source code, myself. I'm more likely to cause errors than fix them.)

--
Arthur T. - ar23hur "at" pobox "dot" com

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor