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?
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()
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.
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.
At this point, I couldn't say... However,<snip>
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?
"""
Might I suggest attempting to put the library equivalent of the empty
call between the open and your console read statement?
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.
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!)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 224:07:15 |
Calls: | 6,623 |
Calls today: | 5 |
Files: | 12,171 |
Messages: | 5,318,477 |