Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

But what can you do with it? -- ubiquitous cry from Linux-user partner


devel / comp.lang.tcl / Re: find out if TLC is running on 64 bit Windows (to call on screen? keyboard ask.exe)

SubjectAuthor
* find out if TLC is running on 64 bit Windows (to call on screenHarald Oehlmann
+- Re: find out if TLC is running on 64 bit Windows (to call on screensaitology9
+* Re: find out if TLC is running on 64 bit Windows (to call on screenChristian Gollwitzer
|`* Re: find out if TLC is running on 64 bit Windows (to call on screen? keyboard asRobert Heller
| `* Re: find out if TLC is running on 64 bit Windows (to call on screen?Gerald Lester
|  `- Re: find out if TLC is running on 64 bit Windows (to call on screen?Christian Gollwitzer
+* Re: find out if TLC is running on 64 bit Windows (to call on screenet4
|`- Re: find out if TLC is running on 64 bit Windows (to call on screenet4
+- Re: find out if TLC is running on 64 bit Windows (to call on screenAshok
`* Re: find out if TLC is running on 64 bit Windows (to call on screenDave
 `* Re: find out if TLC is running on 64 bit Windows (to call on screenHarald Oehlmann
  `* Re: find out if TLC is running on 64 bit Windows (to call on screenHarald Oehlmann
   `* Re: find out if TLC is running on 64 bit Windows (to call on screenMike Griffiths
    +- Re: find out if TLC is running on 64 bit Windows (to call on screenHarald Oehlmann
    `- Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard askRalf Fassel

1
find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta1sqn$3ovgm$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: wortkarg2@yahoo.de (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Tue, 5 Jul 2022 19:36:23 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ta1sqn$3ovgm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 5 Jul 2022 17:36:23 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="486396984ecf241c146b23636c82d993";
logging-data="3964438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SGq2RPkQHcODeGRfSFEOP"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:+SlFeylQOMbjZ3zT7WFG/v1Q4Fw=
Content-Language: en-GB
 by: Harald Oehlmann - Tue, 5 Jul 2022 17:36 UTC

Dear TCL'ers,

how may I find out, if my 32 bit wish is running on a 64 or 32 bit
Windows OS?

What I found by tcl_platform and platform::identify is, that a 32 bit
system is presented.

Is there any trick ? TWAPI ?

If "C:\Program Files (x86)" exists -> 64 bit ?

Thanks for any idea, I feel quite dump.

Harald

P.S. The background is to open the on screen keyboard from a touch-only
application. The 64 bit version at an obscure path must be called on 64
bit versions. The 32 bit version exists but shows an error box:

https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp

Wiki entry for this will follow on solution...

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta1v8l$khs$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!a5rWVvs5S5ZXUwkNcVnRMw.user.46.165.242.91.POSTED!not-for-mail
From: saitology9@gmail.com
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Tue, 5 Jul 2022 14:17:56 -0400
Organization: Aioe.org NNTP Server
Message-ID: <ta1v8l$khs$1@gioia.aioe.org>
References: <ta1sqn$3ovgm$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="21052"; posting-host="a5rWVvs5S5ZXUwkNcVnRMw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.9.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: saitology9@gmail.com - Tue, 5 Jul 2022 18:17 UTC

On 7/5/22 1:36 PM, Harald Oehlmann wrote:
>
> Dear TCL'ers,
>
> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
> Windows OS?
>
> What I found by tcl_platform and platform::identify is, that a 32 bit
> system is presented.
>
> Is there any trick ? TWAPI ?
>
> If "C:\Program Files (x86)" exists -> 64 bit ?
>
> Thanks for any idea, I feel quite dump.
>

Hello,

Check out tcl_platform(wordSize). I believe it is 4 for 32-bit and
higher for 64-bit platforms.

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta2088$3pa83$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Tue, 5 Jul 2022 20:34:47 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ta2088$3pa83$1@dont-email.me>
References: <ta1sqn$3ovgm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 5 Jul 2022 18:34:48 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b7c6f3471e83e6ae0b2c305902f84762";
logging-data="3975427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ku4vVRu6/xJcLZQV5NfNxgVXFzhO3ayw="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.11.0
Cancel-Lock: sha1:3i+b/mbGMT1IwYHErtRBzZheTM4=
In-Reply-To: <ta1sqn$3ovgm$1@dont-email.me>
 by: Christian Gollwitzer - Tue, 5 Jul 2022 18:34 UTC

Am 05.07.22 um 19:36 schrieb Harald Oehlmann:
>
> Dear TCL'ers,
>
> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
> Windows OS?
>
> What I found by tcl_platform and platform::identify is, that a 32 bit
> system is presented.
>
> Is there any trick ? TWAPI ?
>
> If "C:\Program Files (x86)" exists -> 64 bit ?
>

This is IMHO not guaranteed to exist. But you can look for the WOW64
folder. My Windows is not running currently, but IIRC then you look into
C:\Windows (there is some %% magic thing for the correct path) and then
you'll see if the WOW-Folder exists

https://en.wikipedia.org/wiki/WoW64

If that doesn't work, you could compile a small program for 64bit (hello
World) and try to execute it.

Christian

Re: find out if TLC is running on 64 bit Windows (to call on screen? keyboard ask.exe)

<yOydnSJpN-iADVn_nZ2dnUU7-W_NnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 05 Jul 2022 14:25:17 -0500
MIME-Version: 1.0
From: heller@deepsoft.com (Robert Heller)
Organization: Deepwoods Software
X-Newsreader: TkNews 3.0 (1.2.13)
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen? keyboard ask.exe)
In-Reply-To: <ta2088$3pa83$1@dont-email.me>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2088$3pa83$1@dont-email.me>
Newsgroups: comp.lang.tcl
Content-Type: text/plain;
charset="us-ascii"
Originator: heller@sharky4.deepsoft.com
Message-ID: <yOydnSJpN-iADVn_nZ2dnUU7-W_NnZ2d@giganews.com>
Date: Tue, 05 Jul 2022 14:25:17 -0500
Lines: 43
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-7zO0egISEg2J9xU6idro8tw1WsRFNU2YoOmnwK2ngnmYDz9Yhz2FK4Er5EQClz7fGSTyEfmeWqwmxsh!oJCJsDXa8U2hjGEaPqApS7cSnYuEj4u5SHVUztiH4ZWI/2PyHeuMjycqtUsGiXqChAKuwWu1sN9I!TT8=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2625
X-Received-Bytes: 2747
 by: Robert Heller - Tue, 5 Jul 2022 19:25 UTC

At Tue, 5 Jul 2022 20:34:47 +0200 Christian Gollwitzer <auriocus@gmx.de> wrote:

>
> Am 05.07.22 um 19:36 schrieb Harald Oehlmann:
> >
> > Dear TCL'ers,
> >
> > how may I find out, if my 32 bit wish is running on a 64 or 32 bit
> > Windows OS?
> >
> > What I found by tcl_platform and platform::identify is, that a 32 bit
> > system is presented.
> >
> > Is there any trick ? TWAPI ?
> >
> > If "C:\Program Files (x86)" exists -> 64 bit ?
> >
>
> This is IMHO not guaranteed to exist. But you can look for the WOW64
> folder. My Windows is not running currently, but IIRC then you look into
> C:\Windows (there is some %% magic thing for the correct path) and then
> you'll see if the WOW-Folder exists
>
> https://en.wikipedia.org/wiki/WoW64
>
> If that doesn't work, you could compile a small program for 64bit (hello
> World) and try to execute it.
>
> Christian

I take it that there isn't a program like 'uname -m' available under
MS-Windows? That would be the goto command I would use under any flavor of
Linux (also works on MacOSX!).

>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services

Re: find out if TLC is running on 64 bit Windows (to call on screen? keyboard ask.exe)

<ta2467$1206$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!1Ys2zpkgJbaH40y7dBIPgQ.user.46.165.242.75.POSTED!not-for-mail
From: Gerald.Lester@KnG-Consulting.net (Gerald Lester)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen?
keyboard ask.exe)
Date: Tue, 5 Jul 2022 14:41:59 -0500
Organization: KnG Consulting, LLC
Message-ID: <ta2467$1206$1@gioia.aioe.org>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2088$3pa83$1@dont-email.me>
<yOydnSJpN-iADVn_nZ2dnUU7-W_NnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="34822"; posting-host="1Ys2zpkgJbaH40y7dBIPgQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Gerald Lester - Tue, 5 Jul 2022 19:41 UTC

On 7/5/22 14:25, Robert Heller wrote:
> At Tue, 5 Jul 2022 20:34:47 +0200 Christian Gollwitzer <auriocus@gmx.de> wrote:
>
>>
>> Am 05.07.22 um 19:36 schrieb Harald Oehlmann:
>>>
>>> Dear TCL'ers,
>>>
>>> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
>>> Windows OS?
>>>
>>> What I found by tcl_platform and platform::identify is, that a 32 bit
>>> system is presented.
>>>
>>> Is there any trick ? TWAPI ?
>>>
>>> If "C:\Program Files (x86)" exists -> 64 bit ?
>>>
>>
>> This is IMHO not guaranteed to exist. But you can look for the WOW64
>> folder. My Windows is not running currently, but IIRC then you look into
>> C:\Windows (there is some %% magic thing for the correct path) and then
>> you'll see if the WOW-Folder exists
>>
>> https://en.wikipedia.org/wiki/WoW64
>>
>> If that doesn't work, you could compile a small program for 64bit (hello
>> World) and try to execute it.
>>
>> Christian
>
> I take it that there isn't a program like 'uname -m' available under
> MS-Windows? That would be the goto command I would use under any flavor of
> Linux (also works on MacOSX!).

Look at the contents of ::tcl_platform !!!!!

--
+----------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC |
| Email: Gerald.Lester@kng-consulting.net |
+----------------------------------------------------------------------+

Re: find out if TLC is running on 64 bit Windows (to call on screen? keyboard ask.exe)

<ta24uo$3pp1i$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen?
keyboard ask.exe)
Date: Tue, 5 Jul 2022 21:55:04 +0200
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <ta24uo$3pp1i$1@dont-email.me>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2088$3pa83$1@dont-email.me>
<yOydnSJpN-iADVn_nZ2dnUU7-W_NnZ2d@giganews.com>
<ta2467$1206$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Jul 2022 19:55:04 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ac16b50e65f6003d067956884803678d";
logging-data="3990578"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ukzfgc9gNRPNmVseiwXq3Vd2WDWWAPg4="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.11.0
Cancel-Lock: sha1:G64mKtbRnc5WREdeT1bZepa9/2Q=
In-Reply-To: <ta2467$1206$1@gioia.aioe.org>
 by: Christian Gollwitzer - Tue, 5 Jul 2022 19:55 UTC

Am 05.07.22 um 21:41 schrieb Gerald Lester:
> On 7/5/22 14:25, Robert Heller wrote:
>> At Tue, 5 Jul 2022 20:34:47 +0200 Christian Gollwitzer
>> <auriocus@gmx.de> wrote:
>>
>>>
>>> Am 05.07.22 um 19:36 schrieb Harald Oehlmann:
>>>>
>>>> Dear TCL'ers,
>>>>
>>>> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
>>>> Windows OS?
>>>>
>>>> What I found by tcl_platform and platform::identify is, that a 32 bit
>>>> system is presented.
>>>>
>>>> Is there any trick ? TWAPI ?
>>>>
>>>> If "C:\Program Files (x86)" exists -> 64 bit ?
>>>>
>>>
>>> This is IMHO not guaranteed to exist. But you can look for the WOW64
>>> folder. My Windows is not running currently, but IIRC then you look into
>>> C:\Windows (there is some %% magic thing for the correct path) and then
>>> you'll see if the WOW-Folder exists
>>>
>>>     https://en.wikipedia.org/wiki/WoW64
>>>
>>> If that doesn't work, you could compile a small program for 64bit (hello
>>> World) and try to execute it.
>>>
>>>     Christian
>>
>> I take it that there isn't a program like 'uname -m' available under
>> MS-Windows? That would be the goto command I would use under any
>> flavor of
>> Linux (also works on MacOSX!).
>
> Look at the contents of ::tcl_platform !!!!!
>

I'm not sure this answers the question Harald has. When you compile a 32
bit Tclsh and run it under Win64, tcl_platform still shows everything
for 32 bit - or not? Harald wants to know if the 32bit binary runs on a
native 32 bit Windows or via WoW64 on Windows64.

Christian

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta26c2$3em$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!YN2ulY6LKp1eoOUw2OJ8ig.user.46.165.242.91.POSTED!not-for-mail
From: tclnews@rocketship1.me (et4)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Tue, 5 Jul 2022 13:19:14 -0700
Organization: Aioe.org NNTP Server
Message-ID: <ta26c2$3em$1@gioia.aioe.org>
References: <ta1sqn$3ovgm$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="3542"; posting-host="YN2ulY6LKp1eoOUw2OJ8ig.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: et4 - Tue, 5 Jul 2022 20:19 UTC

On 7/5/2022 10:36 AM, Harald Oehlmann wrote:
>
> Dear TCL'ers,
>
> how may I find out, if my 32 bit wish is running on a 64 or 32 bit Windows OS?
>
> What I found by tcl_platform and platform::identify is, that a 32 bit system is presented.
>
> Is there any trick ? TWAPI ?
>
> If "C:\Program Files (x86)" exists -> 64 bit ?
>
> Thanks for any idea, I feel quite dump.
>
> Harald
>
> P.S. The background is to open the on screen keyboard from a touch-only application. The 64 bit version at an obscure path must be called on 64 bit versions. The 32 bit version exists but shows an error box:
>
> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
>
> Wiki entry for this will follow on solution...

# 64 bit os
% package require registry
1.3.4
% catch [registry get {HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node} {}] val
0 % set val
%

# 32 bit os
% package require registry
1.3.3
% catch {registry get {HKEY_LOCAL_MACHINE\SOFTWARE} WOW6432Node} val
1 % set val
unable to get value "WOW6432Node" from key "HKEY_LOCAL_MACHINE\SOFTWARE": The system cannot find the file specified.
%

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta273s$i9i$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!YN2ulY6LKp1eoOUw2OJ8ig.user.46.165.242.91.POSTED!not-for-mail
From: tclnews@rocketship1.me (et4)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Tue, 5 Jul 2022 13:31:55 -0700
Organization: Aioe.org NNTP Server
Message-ID: <ta273s$i9i$1@gioia.aioe.org>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta26c2$3em$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="18738"; posting-host="YN2ulY6LKp1eoOUw2OJ8ig.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: et4 - Tue, 5 Jul 2022 20:31 UTC

On 7/5/2022 1:19 PM, et4 wrote:
> On 7/5/2022 10:36 AM, Harald Oehlmann wrote:
>>
>> Dear TCL'ers,
>>
>> how may I find out, if my 32 bit wish is running on a 64 or 32 bit Windows OS?
>>
>> What I found by tcl_platform and platform::identify is, that a 32 bit system is presented.
>>
>> Is there any trick ? TWAPI ?
>>
>> If "C:\Program Files (x86)" exists -> 64 bit ?
>>
>> Thanks for any idea, I feel quite dump.
>>
>> Harald
>>
>> P.S. The background is to open the on screen keyboard from a touch-only application. The 64 bit version at an obscure path must be called on 64 bit versions. The 32 bit version exists but shows an error box:
>>
>> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
>>
>> Wiki entry for this will follow on solution...
>
> # 64 bit os
> % package require registry
> 1.3.4
> % catch [registry get {HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node} {}] val
> 0
> % set val
> %
>
>
> # 32 bit os
> % package require registry
> 1.3.3
> % catch {registry get {HKEY_LOCAL_MACHINE\SOFTWARE} WOW6432Node} val
> 1
> % set val
> unable to get value "WOW6432Node" from key "HKEY_LOCAL_MACHINE\SOFTWARE": The system cannot find the file specified.
> %

Opps, should be this on either system:

%catch {registry get {HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node} {}} val
1 % set val
unable to open key: The system cannot find the file specified.
%

%catch {registry get {HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node} {}} val
0 % set val
%

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta2rj2$3udl3$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: palmtcl@yahoo.com (Ashok)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Wed, 6 Jul 2022 07:51:22 +0530
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <ta2rj2$3udl3$1@dont-email.me>
References: <ta1sqn$3ovgm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Jul 2022 02:21:22 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="a8dbf5365af5142ba65cabd6818f5513";
logging-data="4142755"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Mos6g641sRvCOLlJl5UsI"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Cancel-Lock: sha1:YsEjdp2gItvePNoeNZ+tmkkMKt0=
In-Reply-To: <ta1sqn$3ovgm$1@dont-email.me>
Content-Language: en-US
 by: Ashok - Wed, 6 Jul 2022 02:21 UTC

twapi::wow64_process -
https://twapi.magicsplat.com/v4.7/process.html#wow64_process

On 7/5/2022 11:06 PM, Harald Oehlmann wrote:
>
> Dear TCL'ers,
>
> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
> Windows OS?
>
> What I found by tcl_platform and platform::identify is, that a 32 bit
> system is presented.
>
> Is there any trick ? TWAPI ?
>
> If "C:\Program Files (x86)" exists -> 64 bit ?
>
> Thanks for any idea, I feel quite dump.
>
> Harald
>
> P.S. The background is to open the on screen keyboard from a touch-only
> application. The 64 bit version at an obscure path must be called on 64
> bit versions. The 32 bit version exists but shows an error box:
>
> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
>
>
> Wiki entry for this will follow on solution...

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta2vjt$obr$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!9mqibcuZ3IqbHui3f2bcQQ.user.46.165.242.75.POSTED!not-for-mail
From: noreply@nohost.com (Dave)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Tue, 5 Jul 2022 22:30:04 -0500
Organization: Aioe.org NNTP Server
Message-ID: <ta2vjt$obr$1@gioia.aioe.org>
References: <ta1sqn$3ovgm$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="24955"; posting-host="9mqibcuZ3IqbHui3f2bcQQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
Thunderbird/45.5.1
X-Notice: Filtered by postfilter v. 0.9.2
 by: Dave - Wed, 6 Jul 2022 03:30 UTC

# For 32- vs. 64-bit
# Technique from
https://blogs.msdn.microsoft.com/david.wang/2006/03/27/howto-detect-process-bitness/
if { [string equal $env(PROCESSOR_ARCHITECTURE) "x86"] && ! [info exists
env(PROCESSOR_ARCHITEW6432)] } {
set bitness 32
} else {
set bitness 64
}

On 7/5/2022 12:36 PM, Harald Oehlmann wrote:
>
> Dear TCL'ers,
>
> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
> Windows OS?
>
> What I found by tcl_platform and platform::identify is, that a 32 bit
> system is presented.
>
> Is there any trick ? TWAPI ?
>
> If "C:\Program Files (x86)" exists -> 64 bit ?
>
> Thanks for any idea, I feel quite dump.
>
> Harald
>
> P.S. The background is to open the on screen keyboard from a touch-only
> application. The 64 bit version at an obscure path must be called on 64
> bit versions. The 32 bit version exists but shows an error box:
>
> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
>
>
> Wiki entry for this will follow on solution...

--
computerjock AT mail DOT com

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta3cia$3vn9s$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: wortkarg2@yahoo.de (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Wed, 6 Jul 2022 09:11:07 +0200
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <ta3cia$3vn9s$1@dont-email.me>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2vjt$obr$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Jul 2022 07:11:06 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="8558b57bc698ad65980513402bb32e6a";
logging-data="4185404"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vrXQKcJcqtnq7p8cFskHx"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:BkScYjARDWPy27buzFzlKZ9BngU=
In-Reply-To: <ta2vjt$obr$1@gioia.aioe.org>
Content-Language: en-GB
 by: Harald Oehlmann - Wed, 6 Jul 2022 07:11 UTC

Am 06.07.2022 um 05:30 schrieb Dave:
> # For 32- vs. 64-bit
> # Technique from
> https://blogs.msdn.microsoft.com/david.wang/2006/03/27/howto-detect-process-bitness/
>
> if { [string equal $env(PROCESSOR_ARCHITECTURE) "x86"] && ! [info exists
> env(PROCESSOR_ARCHITEW6432)] } {
>   set bitness 32
> } else {
>   set bitness 64
> }
>
> On 7/5/2022 12:36 PM, Harald Oehlmann wrote:
>>
>> Dear TCL'ers,
>>
>> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
>> Windows OS?
>>
>> What I found by tcl_platform and platform::identify is, that a 32 bit
>> system is presented.
>>
>> Is there any trick ? TWAPI ?
>>
>> If "C:\Program Files (x86)" exists -> 64 bit ?
>>
>> Thanks for any idea, I feel quite dump.
>>
>> Harald
>>
>> P.S. The background is to open the on screen keyboard from a touch-only
>> application. The 64 bit version at an obscure path must be called on 64
>> bit versions. The 32 bit version exists but shows an error box:
>>
>> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
>>
>>
>>
>> Wiki entry for this will follow on solution...
>
>

Dear all,

thank you for all great propositions.

Yes, tcl_platform and ::platform::identify was my first point.
Unfortunately, they are identical for a 32bit wish running on 32 and 64
bit windows.

But thank you for all the other propositions.
I prefer the twapi solution, as twapi is anyway present.

And I was surprised that even magic Cristian Gollwitzer is caring about
Windows ;-).

Thank you and take care,
Harald

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta42gh$1p9l$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: wortkarg2@yahoo.de (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Wed, 6 Jul 2022 15:25:36 +0200
Organization: A noiseless patient Spider
Lines: 68
Message-ID: <ta42gh$1p9l$1@dont-email.me>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2vjt$obr$1@gioia.aioe.org>
<ta3cia$3vn9s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Jul 2022 13:25:37 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="8558b57bc698ad65980513402bb32e6a";
logging-data="58677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fU9xBiVuXf1wd11q6pZWl"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:1lubuL4wyehQlSBEXgv+lxAgsx4=
Content-Language: en-GB
In-Reply-To: <ta3cia$3vn9s$1@dont-email.me>
 by: Harald Oehlmann - Wed, 6 Jul 2022 13:25 UTC

Am 06.07.2022 um 09:11 schrieb Harald Oehlmann:
>
> Am 06.07.2022 um 05:30 schrieb Dave:
>> # For 32- vs. 64-bit
>> # Technique from
>> https://blogs.msdn.microsoft.com/david.wang/2006/03/27/howto-detect-process-bitness/
>>
>> if { [string equal $env(PROCESSOR_ARCHITECTURE) "x86"] && ! [info
>> exists env(PROCESSOR_ARCHITEW6432)] } {
>>    set bitness 32
>> } else {
>>    set bitness 64
>> }
>>
>> On 7/5/2022 12:36 PM, Harald Oehlmann wrote:
>>>
>>> Dear TCL'ers,
>>>
>>> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
>>> Windows OS?
>>>
>>> What I found by tcl_platform and platform::identify is, that a 32 bit
>>> system is presented.
>>>
>>> Is there any trick ? TWAPI ?
>>>
>>> If "C:\Program Files (x86)" exists -> 64 bit ?
>>>
>>> Thanks for any idea, I feel quite dump.
>>>
>>> Harald
>>>
>>> P.S. The background is to open the on screen keyboard from a touch-only
>>> application. The 64 bit version at an obscure path must be called on 64
>>> bit versions. The 32 bit version exists but shows an error box:
>>>
>>> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
>>>
>>>
>>>
>>> Wiki entry for this will follow on solution...
>>
>>
>
> Dear all,
>
> thank you for all great propositions.
>
> Yes, tcl_platform and ::platform::identify was my first point.
> Unfortunately, they are identical for a 32bit wish running on 32 and 64
> bit windows.
>
> But thank you for all the other propositions.
> I prefer the twapi solution, as twapi is anyway present.
>
> And I was surprised that even magic Cristian Gollwitzer is caring about
> Windows ;-).
>
> Thank you and take care,
> Harald

Thanks for all the help. Here is the final quite complex solution:

https://wiki.tcl-lang.org/page/Keyboard+widget?V=14

Thanks,
Harald

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<482fc188-cc5e-4286-b69b-92cdc196a265n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a0c:8108:0:b0:470:2d8c:2a2a with SMTP id 8-20020a0c8108000000b004702d8c2a2amr38328405qvc.4.1657140639680;
Wed, 06 Jul 2022 13:50:39 -0700 (PDT)
X-Received: by 2002:aca:a913:0:b0:335:1bd8:2d03 with SMTP id
s19-20020acaa913000000b003351bd82d03mr358092oie.56.1657140639405; Wed, 06 Jul
2022 13:50:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!feed1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!peer01.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: comp.lang.tcl
Date: Wed, 6 Jul 2022 13:50:39 -0700 (PDT)
In-Reply-To: <ta42gh$1p9l$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=81.99.101.178; posting-account=hbOuAgoAAACCTxHaAgRboJbA2XUYvKy2
NNTP-Posting-Host: 81.99.101.178
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2vjt$obr$1@gioia.aioe.org>
<ta3cia$3vn9s$1@dont-email.me> <ta42gh$1p9l$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <482fc188-cc5e-4286-b69b-92cdc196a265n@googlegroups.com>
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
From: mike@keyboardzombie.com (Mike Griffiths)
Injection-Date: Wed, 06 Jul 2022 20:50:39 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3551
 by: Mike Griffiths - Wed, 6 Jul 2022 20:50 UTC

On Wednesday, 6 July 2022 at 14:25:41 UTC+1, Harald Oehlmann wrote:
> Am 06.07.2022 um 09:11 schrieb Harald Oehlmann:
> >
> > Am 06.07.2022 um 05:30 schrieb Dave:
> >> # For 32- vs. 64-bit
> >> # Technique from
> >> https://blogs.msdn.microsoft.com/david.wang/2006/03/27/howto-detect-process-bitness/
> >>
> >> if { [string equal $env(PROCESSOR_ARCHITECTURE) "x86"] && ! [info
> >> exists env(PROCESSOR_ARCHITEW6432)] } {
> >> set bitness 32
> >> } else {
> >> set bitness 64
> >> }
> >>
> >> On 7/5/2022 12:36 PM, Harald Oehlmann wrote:
> >>>
> >>> Dear TCL'ers,
> >>>
> >>> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
> >>> Windows OS?
> >>>
> >>> What I found by tcl_platform and platform::identify is, that a 32 bit
> >>> system is presented.
> >>>
> >>> Is there any trick ? TWAPI ?
> >>>
> >>> If "C:\Program Files (x86)" exists -> 64 bit ?
> >>>
> >>> Thanks for any idea, I feel quite dump.
> >>>
> >>> Harald
> >>>
> >>> P.S. The background is to open the on screen keyboard from a touch-only
> >>> application. The 64 bit version at an obscure path must be called on 64
> >>> bit versions. The 32 bit version exists but shows an error box:
> >>>
> >>> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
> >>>
> >>>
> >>>
> >>> Wiki entry for this will follow on solution...
> >>
> >>
> >
> > Dear all,
> >
> > thank you for all great propositions.
> >
> > Yes, tcl_platform and ::platform::identify was my first point.
> > Unfortunately, they are identical for a 32bit wish running on 32 and 64
> > bit windows.
> >
> > But thank you for all the other propositions.
> > I prefer the twapi solution, as twapi is anyway present.
> >
> > And I was surprised that even magic Cristian Gollwitzer is caring about
> > Windows ;-).
> >
> > Thank you and take care,
> > Harald
> Thanks for all the help. Here is the final quite complex solution:
>
> https://wiki.tcl-lang.org/page/Keyboard+widget?V=14
>
> Thanks,
> Harald

Not an answer to your question, but potentially to your end goal - have you tried just using [auto_execok osk.exe] ? Not extensively tested by any means but returns a suitable result on my current (64-bit Win 7) system.

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ta5vre$agv7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: wortkarg2@yahoo.de (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen
keyboard ask.exe)
Date: Thu, 7 Jul 2022 08:52:29 +0200
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <ta5vre$agv7$1@dont-email.me>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2vjt$obr$1@gioia.aioe.org>
<ta3cia$3vn9s$1@dont-email.me> <ta42gh$1p9l$1@dont-email.me>
<482fc188-cc5e-4286-b69b-92cdc196a265n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 7 Jul 2022 06:52:30 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="3f863ea6a3ebcf8798d4f1b9ef78041c";
logging-data="345063"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Zq37UwEoLOFCIAk5IE45q"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:CilsG5HFLHMjsZFT0IkRbOL3AuE=
Content-Language: en-GB
In-Reply-To: <482fc188-cc5e-4286-b69b-92cdc196a265n@googlegroups.com>
 by: Harald Oehlmann - Thu, 7 Jul 2022 06:52 UTC

Am 06.07.2022 um 22:50 schrieb Mike Griffiths:
> On Wednesday, 6 July 2022 at 14:25:41 UTC+1, Harald Oehlmann wrote:
>> Am 06.07.2022 um 09:11 schrieb Harald Oehlmann:
>>>
>>> Am 06.07.2022 um 05:30 schrieb Dave:
>>>> # For 32- vs. 64-bit
>>>> # Technique from
>>>> https://blogs.msdn.microsoft.com/david.wang/2006/03/27/howto-detect-process-bitness/
>>>>
>>>> if { [string equal $env(PROCESSOR_ARCHITECTURE) "x86"] && ! [info
>>>> exists env(PROCESSOR_ARCHITEW6432)] } {
>>>> set bitness 32
>>>> } else {
>>>> set bitness 64
>>>> }
>>>>
>>>> On 7/5/2022 12:36 PM, Harald Oehlmann wrote:
>>>>>
>>>>> Dear TCL'ers,
>>>>>
>>>>> how may I find out, if my 32 bit wish is running on a 64 or 32 bit
>>>>> Windows OS?
>>>>>
>>>>> What I found by tcl_platform and platform::identify is, that a 32 bit
>>>>> system is presented.
>>>>>
>>>>> Is there any trick ? TWAPI ?
>>>>>
>>>>> If "C:\Program Files (x86)" exists -> 64 bit ?
>>>>>
>>>>> Thanks for any idea, I feel quite dump.
>>>>>
>>>>> Harald
>>>>>
>>>>> P.S. The background is to open the on screen keyboard from a touch-only
>>>>> application. The 64 bit version at an obscure path must be called on 64
>>>>> bit versions. The 32 bit version exists but shows an error box:
>>>>>
>>>>> https://stackoverflow.com/questions/8508935/getting-osk-exe-to-run-from-c-sharp
>>>>>
>>>>>
>>>>>
>>>>> Wiki entry for this will follow on solution...
>>>>
>>>>
>>>
>>> Dear all,
>>>
>>> thank you for all great propositions.
>>>
>>> Yes, tcl_platform and ::platform::identify was my first point.
>>> Unfortunately, they are identical for a 32bit wish running on 32 and 64
>>> bit windows.
>>>
>>> But thank you for all the other propositions.
>>> I prefer the twapi solution, as twapi is anyway present.
>>>
>>> And I was surprised that even magic Cristian Gollwitzer is caring about
>>> Windows ;-).
>>>
>>> Thank you and take care,
>>> Harald
>> Thanks for all the help. Here is the final quite complex solution:
>>
>> https://wiki.tcl-lang.org/page/Keyboard+widget?V=14
>>
>> Thanks,
>> Harald
>
> Not an answer to your question, but potentially to your end goal - have you tried just using [auto_execok osk.exe] ? Not extensively tested by any means but returns a suitable result on my current (64-bit Win 7) system.

Mike,
thank you for the suggestion.
Yes, this file is present. If you execute it, you get an error box.
"[autoexec_ok start] osk" does not find it and "file exist" returns 0,
even as I can see it in the file explorer.

This experience was the root of the my question.

Thank you all for caring,
Harald

Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)

<ygailo9xovo.fsf@akutech.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ralfixx@gmx.de (Ralf Fassel)
Newsgroups: comp.lang.tcl
Subject: Re: find out if TLC is running on 64 bit Windows (to call on screen keyboard ask.exe)
Date: Thu, 07 Jul 2022 11:18:03 +0200
Lines: 30
Message-ID: <ygailo9xovo.fsf@akutech.de>
References: <ta1sqn$3ovgm$1@dont-email.me> <ta2vjt$obr$1@gioia.aioe.org>
<ta3cia$3vn9s$1@dont-email.me> <ta42gh$1p9l$1@dont-email.me>
<482fc188-cc5e-4286-b69b-92cdc196a265n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net 6vLyi3tWlX8xpPP4S3BZvw7KjyBKCKNyJVJKuM+HPfYu2MErU=
Cancel-Lock: sha1:tmZBwORD1+mTzTKNE7v9xiuHAyo= sha1:rQqUtL6bFMAiMZO9akFDWDTPBZ0=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
 by: Ralf Fassel - Thu, 7 Jul 2022 09:18 UTC

* Mike Griffiths <mike@keyboardzombie.com>
| Not an answer to your question, but potentially to your end goal -
| have you tried just using [auto_execok osk.exe] ? Not extensively
| tested by any means but returns a suitable result on my current
| (64-bit Win 7) system.

As Harald pointed out, this doesn't work on Windows-10 64bit:

$ cat t.tcl
puts [auto_execok osk.exe]
exec [auto_execok osk.exe]

$ tclsh t.tcl
C:/Windows/system32/osk.exe
couldn't execute "C:\Windows\system32\osk.exe": invalid argument
while executing
"exec [auto_execok osk.exe]"
(file "t.tcl" line 2)

$ uname -a
MINGW64_NT-10.0-19044 serval 3.2.0-340.x86_64 2021-08-02 16:30 UTC x86_64 Msys

Typing 'osk' in a windows cmd shell however works, and

exec cmd /c osk

works, too from tclsh. However, I would bet this does not work on a
32-bit system :-)))

R'

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor