Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You can never do just one thing. -- Hardin


interests / rec.games.backgammon / Re: Generating dice with a DLL

SubjectAuthor
* Re: Here is how gnubg cheats.Thunderground Samurai
+- Re: Here is how gnubg cheats.Nasti Chestikov
`* Re: Here is how gnubg cheats.Frank Berger
 `* Re: Here is how gnubg cheats.Ricardo Costa
  +* Re: Here is how gnubg cheats.peps...@gmail.com
  |`* Re: Here is how gnubg cheats.MK
  | `* Generating dice with a DLL (was: Here is how gnubg cheats)Philippe Michel
  |  `* Re: Generating dice with a DLL (was: Here is how gnubg cheats)MK
  |   +* Re: Generating dice with a DLL (was: Here is how gnubg cheats)Philippe Michel
  |   |`* Re: Generating dice with a DLL (was: Here is how gnubg cheats)MK
  |   | `* Re: Generating dice with a DLLAxel Reichert
  |   |  `- Re: Generating dice with a DLLMK
  |   `* Re: Generating dice with a DLLAxel Reichert
  |    `* Re: Generating dice with a DLLMK
  |     `* Re: Generating dice with a DLLAxel Reichert
  |      `* Re: Generating dice with a DLLMK
  |       `* Re: Generating dice with a DLLMK
  |        `* Re: Generating dice with a DLLBenno Maul
  |         `- Re: Generating dice with a DLLMK
  +* Re: Here is how gnubg cheats.Frank Berger
  |`* Re: Here is how gnubg cheats.MK
  | +* Re: Here is how gnubg cheats.peps...@gmail.com
  | |`- Re: Here is how gnubg cheats.MK
  | `* Re: Here is how gnubg cheats.Axel Reichert
  |  `- Re: Here is how gnubg cheats.MK
  `* Re: Here is how gnubg cheats.Axel Reichert
   +* Re: Here is how gnubg cheats.Ricardo Costa
   |`* Re: Here is how gnubg cheats.Axel Reichert
   | `* Re: Here is how gnubg cheats.Ricardo Costa
   |  `- Re: Here is how gnubg cheats.Ricardo Costa
   `- Re: Here is how gnubg cheats.MK

Pages:12
Re: Generating dice with a DLL

<87ilbeaede.fsf@axel-reichert.de>

  copy mid

https://news.novabbs.com/interests/article-flat.php?id=12289&group=rec.games.backgammon#12289

  copy link   Newsgroups: rec.games.backgammon
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mai...@axel-reichert.de (Axel Reichert)
Newsgroups: rec.games.backgammon
Subject: Re: Generating dice with a DLL
Date: Fri, 23 Jun 2023 08:20:45 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <87ilbeaede.fsf@axel-reichert.de>
References: <7783dc37-c3af-4647-8465-065bde31c083@a8g2000pbe.googlegroups.com>
<20f07fc9-38a4-4077-8396-3e7f27b8c786@googlegroups.com>
<2a7e8a9e-eb0f-430a-a0c8-3ea3f1fa5cd3@googlegroups.com>
<10209ddb-5b39-457a-a52e-2d7018c52eban@googlegroups.com>
<deee93b1-02af-43dd-91d0-3c1e8601bc5dn@googlegroups.com>
<dc2c484b-15a6-403b-b6ce-fb3be1cf6551n@googlegroups.com>
<df541424-d5bf-44b3-b513-4db97d53bb8en@googlegroups.com>
<7a849cf0-392a-40c6-a724-f914f0b260c6n@googlegroups.com>
<1f7c7d26-169a-4a7f-981e-a52a90457242n@googlegroups.com>
<f41caf6c-498a-4adb-bd07-2a102c18feb1n@googlegroups.com>
<u6vquc$3150k$1@dont-email.me>
<aeca1f1d-2037-4f47-ad54-702574d93b81n@googlegroups.com>
<87zg4r9p3m.fsf@axel-reichert.de>
<e70264f0-c905-4008-a585-cf3d03e43e8bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="26228c356f1f4428408724a8dd588243";
logging-data="3843111"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XWHu35bQ5CuaFRIh1/s6G9M5mZtt2yJQ="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:5bkX2uIJjJ8UUOwzWtVOlVgy7WI=
sha1:usvjzmzrUhKR26ZyuTUoMK6uiZQ=
 by: Axel Reichert - Fri, 23 Jun 2023 06:20 UTC

MK <murat@compuplus.net> writes:

> On June 22, 2023 at 3:14:24 PM UTC-6, Axel Reichert wrote:
>
>> https://en.wikipedia.org/wiki/Anonymous_pipe
>
> Philippe was talking about "named pipes" and
> you give a link to "anonymous pipes". They are
> not the same.

Thanks. I know how pipes work. I was thinking about referring you to

https://en.wikipedia.org/wiki/Pipeline_(Unix)

instead, which covers the general case, but could already hear your
complaints: "I asked about Windows".

> Why do you always complicate the discussion with things that are
> not essential to the subject..? :(

It is not essential to your subject whether the pipes are named or
anonymous, so who is complicating the discussion?

Anyway, it is (again) time to temporarily lower your score for half a
year or so. rec.games.backgammon will be much more pleasant this way.

Axel

Re: Generating dice with a DLL

<e10fbb5e-e79b-4810-b80e-4c7d66c8814cn@googlegroups.com>

  copy mid

https://news.novabbs.com/interests/article-flat.php?id=12291&group=rec.games.backgammon#12291

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a37:5a46:0:b0:762:51f7:1f8d with SMTP id o67-20020a375a46000000b0076251f71f8dmr2334502qkb.15.1687512806590;
Fri, 23 Jun 2023 02:33:26 -0700 (PDT)
X-Received: by 2002:a25:d304:0:b0:be7:4104:9380 with SMTP id
e4-20020a25d304000000b00be741049380mr8622955ybf.7.1687512806428; Fri, 23 Jun
2023 02:33:26 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Fri, 23 Jun 2023 02:33:26 -0700 (PDT)
In-Reply-To: <87mt0qaet4.fsf@axel-reichert.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb91:7920:c06e:15e5:c795:9f25:5510;
posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 2607:fb91:7920:c06e:15e5:c795:9f25:5510
References: <7783dc37-c3af-4647-8465-065bde31c083@a8g2000pbe.googlegroups.com>
<20f07fc9-38a4-4077-8396-3e7f27b8c786@googlegroups.com> <2a7e8a9e-eb0f-430a-a0c8-3ea3f1fa5cd3@googlegroups.com>
<10209ddb-5b39-457a-a52e-2d7018c52eban@googlegroups.com> <deee93b1-02af-43dd-91d0-3c1e8601bc5dn@googlegroups.com>
<dc2c484b-15a6-403b-b6ce-fb3be1cf6551n@googlegroups.com> <df541424-d5bf-44b3-b513-4db97d53bb8en@googlegroups.com>
<7a849cf0-392a-40c6-a724-f914f0b260c6n@googlegroups.com> <1f7c7d26-169a-4a7f-981e-a52a90457242n@googlegroups.com>
<f41caf6c-498a-4adb-bd07-2a102c18feb1n@googlegroups.com> <u6vquc$3150k$1@dont-email.me>
<aeca1f1d-2037-4f47-ad54-702574d93b81n@googlegroups.com> <u72cdu$3dnbq$1@dont-email.me>
<91335c90-d2c2-4cd8-964f-5b0b34352a54n@googlegroups.com> <87mt0qaet4.fsf@axel-reichert.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e10fbb5e-e79b-4810-b80e-4c7d66c8814cn@googlegroups.com>
Subject: Re: Generating dice with a DLL
From: mur...@compuplus.net (MK)
Injection-Date: Fri, 23 Jun 2023 09:33:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2763
 by: MK - Fri, 23 Jun 2023 09:33 UTC

On June 23, 2023 at 12:11:25 AM UTC-6, Axel Reichert wrote:

> MK <mu...@compuplus.net> writes:

>> The idea was to prevent the bot from looking
>> at the upcoming dice rolls before it makes its
>> cube decision.

> See roll.c for whether this happens.

Don't you think Philippe was smart enough to
tell me this..!?

You seem to be too dense to follow what was
said for what reason during the discussion. :(

Go back to the beginning of the thread and read
slowly, carefully; making an effort to give the
other guy some credit for having a good reason
to have said what he has said.

>> idea is to give each dice roll to the bot after
>> it finishes its cube decision.

> The bot asks for the dice roll after its cube
> decision, see roll.c.

See my above advice to you. It will help you.

MK

Re: Generating dice with a DLL

<26d25081-4afb-44e2-8c1f-818e05937e72n@googlegroups.com>

  copy mid

https://news.novabbs.com/interests/article-flat.php?id=12292&group=rec.games.backgammon#12292

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:ad4:4e6f:0:b0:62d:eb9b:e65b with SMTP id ec15-20020ad44e6f000000b0062deb9be65bmr3094383qvb.5.1687513845671;
Fri, 23 Jun 2023 02:50:45 -0700 (PDT)
X-Received: by 2002:a05:622a:1987:b0:3f9:a852:3c31 with SMTP id
u7-20020a05622a198700b003f9a8523c31mr7796367qtc.10.1687513844797; Fri, 23 Jun
2023 02:50:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Fri, 23 Jun 2023 02:50:44 -0700 (PDT)
In-Reply-To: <87ilbeaede.fsf@axel-reichert.de>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb91:7920:c06e:15e5:c795:9f25:5510;
posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 2607:fb91:7920:c06e:15e5:c795:9f25:5510
References: <7783dc37-c3af-4647-8465-065bde31c083@a8g2000pbe.googlegroups.com>
<20f07fc9-38a4-4077-8396-3e7f27b8c786@googlegroups.com> <2a7e8a9e-eb0f-430a-a0c8-3ea3f1fa5cd3@googlegroups.com>
<10209ddb-5b39-457a-a52e-2d7018c52eban@googlegroups.com> <deee93b1-02af-43dd-91d0-3c1e8601bc5dn@googlegroups.com>
<dc2c484b-15a6-403b-b6ce-fb3be1cf6551n@googlegroups.com> <df541424-d5bf-44b3-b513-4db97d53bb8en@googlegroups.com>
<7a849cf0-392a-40c6-a724-f914f0b260c6n@googlegroups.com> <1f7c7d26-169a-4a7f-981e-a52a90457242n@googlegroups.com>
<f41caf6c-498a-4adb-bd07-2a102c18feb1n@googlegroups.com> <u6vquc$3150k$1@dont-email.me>
<aeca1f1d-2037-4f47-ad54-702574d93b81n@googlegroups.com> <87zg4r9p3m.fsf@axel-reichert.de>
<e70264f0-c905-4008-a585-cf3d03e43e8bn@googlegroups.com> <87ilbeaede.fsf@axel-reichert.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <26d25081-4afb-44e2-8c1f-818e05937e72n@googlegroups.com>
Subject: Re: Generating dice with a DLL
From: mur...@compuplus.net (MK)
Injection-Date: Fri, 23 Jun 2023 09:50:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4045
 by: MK - Fri, 23 Jun 2023 09:50 UTC

On June 23, 2023 at 12:20:47 AM UTC-6, Axel Reichert wrote:

> MK <mu...@compuplus.net> writes:

>> On June 22, 2023 at 3:14:24 PM UTC-6, Axel Reichert wrote:

>>> https://en.wikipedia.org/wiki/Anonymous_pipe

>> Philippe was talking about "named pipes" and
>> you give a link to "anonymous pipes". They are
>> not the same.

> Thanks. I know how pipes work. I was thinking
> about referring you to
> https://en.wikipedia.org/wiki/Pipeline_(Unix)

I couldn't read your mind to know what you had
intended. I can only go by what you wrote. But
this isn't even critical to show you don't know
how pipes work, neither in Unix nor Windows.

> instead, which covers the general case, but
> could already hear your complaints: "I asked
> about Windows".

The syntax may be different but I would guess
that the implementation if the same in both.

>> Why do you always complicate the discussion
>> with things that are not essential to the subject..? :(

> It is not essential to your subject whether the
> pipes are named or anonymous, so who is
> complicating the discussion?

Only anonymous pipes are blocked by nature,
because only their child processes can read
from them.

Named pipes can be blocked or not depending
on the parameters specified when opening and
writing/reading them. If they are not blocked,
then the reader can get an EOF as I had said in
my previous post.

I don't know how Noo-BG reads a pipe. I would
guess that in unblocked mode like a text dice
file. Phillip may know. Ask him. Also ask him
why he gave an exaample using named pipes.
You may lean something... You don't know
what you are talking about and still insist to
waste everyone's time with your Wikipedia
knowledge... :(

> Anyway, it is (again) time to temporarily
> lower your score for half a year or so.
> rec.games.backgammon will be much
> more pleasant this way.

I really don't know what you mean by this but
there is always the adage to take one's own
advice. Thus, I figure that I can't go too much
wrong by giving it to you...

MK

Re: Generating dice with a DLL

<896f8675-a3bc-4fb5-8849-d9421ae6bed5n@googlegroups.com>

  copy mid

https://news.novabbs.com/interests/article-flat.php?id=13141&group=rec.games.backgammon#13141

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a05:620a:201d:b0:77d:8969:1aa2 with SMTP id c29-20020a05620a201d00b0077d89691aa2mr131263qka.6.1700969990843;
Sat, 25 Nov 2023 19:39:50 -0800 (PST)
X-Received: by 2002:a63:6444:0:b0:5c1:7124:d9a9 with SMTP id
y65-20020a636444000000b005c17124d9a9mr1295177pgb.1.1700969990565; Sat, 25 Nov
2023 19:39:50 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Sat, 25 Nov 2023 19:39:49 -0800 (PST)
In-Reply-To: <e9fd8472-4cdd-4925-804a-00e5239c219cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:b7a6:8645:4c93:e563:3b88:9a1d;
posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 2607:fb90:b7a6:8645:4c93:e563:3b88:9a1d
References: <7783dc37-c3af-4647-8465-065bde31c083@a8g2000pbe.googlegroups.com>
<20f07fc9-38a4-4077-8396-3e7f27b8c786@googlegroups.com> <2a7e8a9e-eb0f-430a-a0c8-3ea3f1fa5cd3@googlegroups.com>
<10209ddb-5b39-457a-a52e-2d7018c52eban@googlegroups.com> <deee93b1-02af-43dd-91d0-3c1e8601bc5dn@googlegroups.com>
<dc2c484b-15a6-403b-b6ce-fb3be1cf6551n@googlegroups.com> <df541424-d5bf-44b3-b513-4db97d53bb8en@googlegroups.com>
<7a849cf0-392a-40c6-a724-f914f0b260c6n@googlegroups.com> <1f7c7d26-169a-4a7f-981e-a52a90457242n@googlegroups.com>
<f41caf6c-498a-4adb-bd07-2a102c18feb1n@googlegroups.com> <u6vquc$3150k$1@dont-email.me>
<aeca1f1d-2037-4f47-ad54-702574d93b81n@googlegroups.com> <87zg4r9p3m.fsf@axel-reichert.de>
<e70264f0-c905-4008-a585-cf3d03e43e8bn@googlegroups.com> <87ilbeaede.fsf@axel-reichert.de>
<26d25081-4afb-44e2-8c1f-818e05937e72n@googlegroups.com> <e9fd8472-4cdd-4925-804a-00e5239c219cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <896f8675-a3bc-4fb5-8849-d9421ae6bed5n@googlegroups.com>
Subject: Re: Generating dice with a DLL
From: mur...@compuplus.net (MK)
Injection-Date: Sun, 26 Nov 2023 03:39:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2951
 by: MK - Sun, 26 Nov 2023 03:39 UTC

On November 25, 2023 at 7:29:51 AM UTC-7, Benno Maul wrote:

> Just one idea if you want to use your "own" dice.
> You could use the manual dice and an AHK
> Autohotkey script to observe, when the dice
> input window opens then the script runs any
> random generator to determine the row and
> column to perform a mouseclick to choose
> the dice.

Thanks for the idea. I posted a few times about
this and I never said it couldn't be done sending
mouse clicks but only pointed out how sending
key strokes is so trivially easier, even compared
to sending a single mouse click anywhere on a
window.

Noo-BG windows, including the dice input dialog,
are resizable and/or relocatable which makes it
so much harder to determine the coordinates of
dice images.

Have you ever tried it yourself? Do you have a
working script that you can share?

MK

Re: Generating dice with a DLL

<3cb285bd-8c3f-49fc-9bc9-54721ec1cc63n@googlegroups.com>

  copy mid

https://news.novabbs.com/interests/article-flat.php?id=13146&group=rec.games.backgammon#13146

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a05:622a:a028:b0:423:a080:bdb2 with SMTP id jt40-20020a05622aa02800b00423a080bdb2mr229467qtb.2.1701021481930; Sun, 26 Nov 2023 09:58:01 -0800 (PST)
X-Received: by 2002:a63:1045:0:b0:5b9:aea9:17c2 with SMTP id 5-20020a631045000000b005b9aea917c2mr2208068pgq.4.1701021481588; Sun, 26 Nov 2023 09:58:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.14.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Sun, 26 Nov 2023 09:58:01 -0800 (PST)
In-Reply-To: <896f8675-a3bc-4fb5-8849-d9421ae6bed5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:a61:3b90:ab01:502a:f1c1:a89a:f85b; posting-account=Yb2EiAoAAACUKP_6CSBgn349A_4UJglN
NNTP-Posting-Host: 2001:a61:3b90:ab01:502a:f1c1:a89a:f85b
References: <7783dc37-c3af-4647-8465-065bde31c083@a8g2000pbe.googlegroups.com> <20f07fc9-38a4-4077-8396-3e7f27b8c786@googlegroups.com> <2a7e8a9e-eb0f-430a-a0c8-3ea3f1fa5cd3@googlegroups.com> <10209ddb-5b39-457a-a52e-2d7018c52eban@googlegroups.com> <deee93b1-02af-43dd-91d0-3c1e8601bc5dn@googlegroups.com> <dc2c484b-15a6-403b-b6ce-fb3be1cf6551n@googlegroups.com> <df541424-d5bf-44b3-b513-4db97d53bb8en@googlegroups.com> <7a849cf0-392a-40c6-a724-f914f0b260c6n@googlegroups.com> <1f7c7d26-169a-4a7f-981e-a52a90457242n@googlegroups.com> <f41caf6c-498a-4adb-bd07-2a102c18feb1n@googlegroups.com> <u6vquc$3150k$1@dont-email.me> <aeca1f1d-2037-4f47-ad54-702574d93b81n@googlegroups.com> <87zg4r9p3m.fsf@axel-reichert.de> <e70264f0-c905-4008-a585-cf3d03e43e8bn@googlegroups.com> <87ilbeaede.fsf@axel-reichert.de> <26d25081-4afb-44e2-8c1f-818e05937e72n@googlegroups.com> <e9fd8472-4cdd-4925-804a-00e5239c219cn@googlegroups.com> <896f8675-a3bc-4fb5-8849-d9421ae6bed5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3cb285bd-8c3f-49fc-9bc9-54721ec1cc63n@googlegroups.com>
Subject: Re: Generating dice with a DLL
From: benno.ma...@gmail.com (Benno Maul)
Injection-Date: Sun, 26 Nov 2023 17:58:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 49
 by: Benno Maul - Sun, 26 Nov 2023 17:58 UTC

MK schrieb am Sonntag, 26. November 2023 um 04:39:51 UTC+1:
> On November 25, 2023 at 7:29:51 AM UTC-7, Benno Maul wrote:
>
> > Just one idea if you want to use your "own" dice.
> > You could use the manual dice and an AHK
> > Autohotkey script to observe, when the dice
> > input window opens then the script runs any
> > random generator to determine the row and
> > column to perform a mouseclick to choose
> > the dice.
> Thanks for the idea. I posted a few times about
> this and I never said it couldn't be done sending
> mouse clicks but only pointed out how sending
> key strokes is so trivially easier, even compared
> to sending a single mouse click anywhere on a
> window.
>
> Noo-BG windows, including the dice input dialog,
> are resizable and/or relocatable which makes it
> so much harder to determine the coordinates of
> dice images.
>
> Have you ever tried it yourself? Do you have a
> working script that you can share?
>
> MK

Something like this. Hope this helps. You have to adjust the Rows and Columns to your screen and window size. The problem is, that the Dice window contains different text. For example the opening throw. But when you have set it to the center of the buttons it should work everytime.

#NoEnv
SendMode Input

#Persistent
Rows := [95,185,275,365,455,545]
Columns := [152,302,452,602,752,902]
SetTimer, ActiveDice, 500
return

ActiveDice:
if WinExist("GNU Backgammon - Dice")
{
Random, randX, 1, 6
Random, randY, 1, 6
MouseClick , Left , Columns[randX], Rows[randY]
Sleep 2000
}
return

Re: Generating dice with a DLL

<a72f2dc7-097b-45ae-8d95-1c62c6252c98n@googlegroups.com>

  copy mid

https://news.novabbs.com/interests/article-flat.php?id=13155&group=rec.games.backgammon#13155

  copy link   Newsgroups: rec.games.backgammon
X-Received: by 2002:a05:620a:611e:b0:77d:5852:8f9d with SMTP id oq30-20020a05620a611e00b0077d58528f9dmr297845qkn.1.1701043593517;
Sun, 26 Nov 2023 16:06:33 -0800 (PST)
X-Received: by 2002:a63:1466:0:b0:5be:297d:7932 with SMTP id
38-20020a631466000000b005be297d7932mr1691177pgu.0.1701043593233; Sun, 26 Nov
2023 16:06:33 -0800 (PST)
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!peer02.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.games.backgammon
Date: Sun, 26 Nov 2023 16:06:32 -0800 (PST)
In-Reply-To: <3cb285bd-8c3f-49fc-9bc9-54721ec1cc63n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:b7a6:8645:8ced:2511:81a0:ed17;
posting-account=ZoOzZggAAADKiZinXeenHF1SgY613agP
NNTP-Posting-Host: 2607:fb90:b7a6:8645:8ced:2511:81a0:ed17
References: <7783dc37-c3af-4647-8465-065bde31c083@a8g2000pbe.googlegroups.com>
<20f07fc9-38a4-4077-8396-3e7f27b8c786@googlegroups.com> <2a7e8a9e-eb0f-430a-a0c8-3ea3f1fa5cd3@googlegroups.com>
<10209ddb-5b39-457a-a52e-2d7018c52eban@googlegroups.com> <deee93b1-02af-43dd-91d0-3c1e8601bc5dn@googlegroups.com>
<dc2c484b-15a6-403b-b6ce-fb3be1cf6551n@googlegroups.com> <df541424-d5bf-44b3-b513-4db97d53bb8en@googlegroups.com>
<7a849cf0-392a-40c6-a724-f914f0b260c6n@googlegroups.com> <1f7c7d26-169a-4a7f-981e-a52a90457242n@googlegroups.com>
<f41caf6c-498a-4adb-bd07-2a102c18feb1n@googlegroups.com> <u6vquc$3150k$1@dont-email.me>
<aeca1f1d-2037-4f47-ad54-702574d93b81n@googlegroups.com> <87zg4r9p3m.fsf@axel-reichert.de>
<e70264f0-c905-4008-a585-cf3d03e43e8bn@googlegroups.com> <87ilbeaede.fsf@axel-reichert.de>
<26d25081-4afb-44e2-8c1f-818e05937e72n@googlegroups.com> <e9fd8472-4cdd-4925-804a-00e5239c219cn@googlegroups.com>
<896f8675-a3bc-4fb5-8849-d9421ae6bed5n@googlegroups.com> <3cb285bd-8c3f-49fc-9bc9-54721ec1cc63n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a72f2dc7-097b-45ae-8d95-1c62c6252c98n@googlegroups.com>
Subject: Re: Generating dice with a DLL
From: mur...@compuplus.net (MK)
Injection-Date: Mon, 27 Nov 2023 00:06:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5130
 by: MK - Mon, 27 Nov 2023 00:06 UTC

On November 26, 2023 at 10:58:02 AM UTC-7, Benno Maul wrote:

> MK schrieb am 26. November 2023 um 04:39:51 UTC+1:

>> Noo-BG windows, including the dice input dialog,
>> are resizable and/or relocatable which makes it
>> so much harder to determine the coordinates of
>> dice images.

>> Have you ever tried it yourself? Do you have a
>> working script that you can share?

> Something like this. Hope this helps.

"Something like this" is hardly a good enough effort.
Your sample script won't work as is. It will require a
lot more effort to make it work even if windows stay
static in location and size.

> You have to adjust the Rows and Columns to your
> screen and window size.

You probably found the rows/colums array constants
using a utility or script which is additional effort even
if your windows remain always static.

Also, I'm not sure if screen size matters but you need
to set the "CoordMode" relative to the active control,
(excluding the window title), instead of to the default
which is relative to screen, to begin with.

> The problem is, that the Dice window contains
> different text. For example the opening throw.

Yes, opening roll window is wider due to vertical text
added but things may still work since dice icons are
wide enough. Yet this is not the only nor the worst of
your problems that you would have discovered if you
had actually tried to come up with a "working" code.

> But when you have set it to the center of the buttons
> it should work everytime.

I don't know what you mean by this nor how you would
accomplish it, which obviously would require still more
effort, but it won't work anyway.

If everything in the dice dialog resized proportionately,
you could change your rows/colums array constants
to percentages of the window size, which you would
have to find using the ControlGetPos function that in
itself being yet additional effort; (and that in addition
to figuring out the incremental ratios from Noo-BG's
documentation or source code which may take quite
more time and effort also).

But what is worse is that, when you resize Noo-BG's
main window, the dice window resizes automatially
also yet the dice icons don't resize at the same rate
as the spaces and other items around them. (I could
but I won't bother to mention that the dice window
can be resized only vertically or only horizontally since
that would almost never happen and since the above
problems are already enough to make creating a AHK
script, (or any other script), an impossible task.

With all this said, it's beyond comprehension why the
mother-loving stubborn jerks of the Noo-BG team are
refusing to implement keyboard imput for dice rolls,
which would take adding a minimal and trivial code.

MK


interests / rec.games.backgammon / Re: Generating dice with a DLL

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor