Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Do not use the blue keys on this terminal.


devel / comp.lang.tcl / MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

SubjectAuthor
* MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann
`* Re: MS-Windows: Send keys to login/unlock page/Asisstive Technologyet99
 `* Re: MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann
  `* Re: MS-Windows: Send keys to login/unlock page/Asisstive Technologyet99
   `* Re: MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann
    `* Re: MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann
     `* Re: MS-Windows: Send keys to login/unlock page/Asisstive Technologyet99
      `* Re: MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann
       `* Re: MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann
        `* Re: MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann
         `* Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology ApplicationYuriy Kovalenko
          `- Re: MS-Windows: Send keys to login/unlock page/Asisstive TechnologyHarald Oehlmann

1
MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u5q1re$14rfv$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Wed, 7 Jun 2023 15:48:30 +0200
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <u5q1re$14rfv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Jun 2023 13:48:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="94deffb32c8854fdbb1d3b58a9c33a88";
logging-data="1207807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UB+QPMhyDMnBxXFGVN+uM"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.2
Cancel-Lock: sha1:2J8gDODu2kmPZkXvhZY5b4qmfR8=
Content-Language: en-GB
 by: Harald Oehlmann - Wed, 7 Jun 2023 13:48 UTC

Dear TCL/Tk MS-Windows experts,

we are in Windows 10/11 login or locked screen.

Application: send password by emulated keystrokes from a TCL
application. A barcode scanner is attached to the application. A login
code is scanned by the barcode reader and the password is extracted (it
is stored encrypted).

The application sends virtual keyboard data via Windows function
"keybd_event" or TWAPI. It is wrapped into a starkit.

I started the app as administrator -> data came not through to lock
screen password field
I started the app as a service as user "system" -> did not come through

This page
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput
states:
"This function is subject to UIPI. Applications are permitted to inject
input only into applications that are at an equal or lesser integrity
level.".

Now, how to set the integrity level, probably "system" is required?
https://learn.microsoft.com/en-us/windows/win32/secauthz/mandatory-integrity-control

I did not find really anything. Any comments on that?

But I found this:
https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-securityoverview

So, such an application may interact with any other.
Requirements are:

1) Be signed with a certificate to interact with applications running at
a higher privilege level.
2) Be trusted by the system. The application must be installed in a
secure location that requires a user account control (UAC) prompt for
access. For example, the Program Files folder.
3) Be built with a manifest file that includes the uiAccess flag.

Question about 1) signed exe:
- thanks to Paul, here is a howto for self signed certificates:
https://wiki.tcl-lang.org/page/SDX+under+Windows
This also works with the starkits compiled by Ashok, I tested it, great!
I suppose, a self signed certificate is not sufficient. So, I may buy
one here:
https://www.globalsign.com/de-de/code-signing/microsoft-authenticode
Is that a good idea ? Which of the proposed keys, expensive or more
expensive ? On hardware tolken or on TPM module (no Asure, please).

Question about 3) manifest
How may I change or view the manifest of the starkit file ?

Thanks for any answer,
Harald

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u5qomt$17km2$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Wed, 7 Jun 2023 13:18:35 -0700
Organization: A noiseless patient Spider
Lines: 85
Message-ID: <u5qomt$17km2$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Jun 2023 20:18:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="08a315f9f27e9d61c7e661165c5a8956";
logging-data="1299138"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KU/H5ONB7u1IcCo/WClx8"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:jDWHf0ZftkqIyq8FZVi3WLvOto4=
In-Reply-To: <u5q1re$14rfv$1@dont-email.me>
Content-Language: en-US
 by: et99 - Wed, 7 Jun 2023 20:18 UTC

On 6/7/2023 6:48 AM, Harald Oehlmann wrote:
> Dear TCL/Tk MS-Windows experts,
>
> we are in Windows 10/11 login or locked screen.
>
> Application: send password by emulated keystrokes from a TCL application. A barcode scanner is attached to the application. A login code is scanned by the barcode reader and the password is extracted (it is stored encrypted).
>
> The application sends virtual keyboard data via Windows function "keybd_event" or TWAPI. It is wrapped into a starkit.
>
> I started the app as administrator -> data came not through to lock screen password field
> I started the app as a service as user "system" -> did not come through
>
> This page https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput
> states:
> "This function is subject to UIPI. Applications are permitted to inject input only into applications that are at an equal or lesser integrity level.".
>
> Now, how to set the integrity level, probably "system" is required?
> https://learn.microsoft.com/en-us/windows/win32/secauthz/mandatory-integrity-control
>
> I did not find really anything. Any comments on that?
>
> But I found this:
> https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-securityoverview
>
> So, such an application may interact with any other.
> Requirements are:
>
> 1) Be signed with a certificate to interact with applications running at a higher privilege level.
> 2) Be trusted by the system. The application must be installed in a secure location that requires a user account control (UAC) prompt for access. For example, the Program Files folder.
> 3) Be built with a manifest file that includes the uiAccess flag.
>
> Question about 1) signed exe:
> - thanks to Paul, here is a howto for self signed certificates:
> https://wiki.tcl-lang.org/page/SDX+under+Windows
> This also works with the starkits compiled by Ashok, I tested it, great!
> I suppose, a self signed certificate is not sufficient. So, I may buy one here:
> https://www.globalsign.com/de-de/code-signing/microsoft-authenticode
> Is that a good idea ? Which of the proposed keys, expensive or more expensive ? On hardware tolken or on TPM module (no Asure, please).
>
> Question about 3) manifest
> How may I change or view the manifest of the starkit file ?
>
> Thanks for any answer,
> Harald
>
>
>
>
>
>
>
>

It sounds like you need to run this before the user is
logged in. I'm not sure if this would work before
you're even logged in, however,

https://windowsloop.com/how-to-run-a-program-as-administrator-without-prompt/

I've used this described procedure with the task
scheduler to run a tcl script at admin privs to run a
program w/o the prompt and then using twapi find its
window and send it mouse clicks.

In the task scheduler, I see one can set in the
general tab, "run whether user is logged on or not"
And there's also a checkbox "run with *highest*
privileges". Not sure how high that really is though.

Then in the triggers tab, with new... (to create a new
trigger) at the top it says "begin the task", one can
choose "at logon" or even "at startup".

I've not tried this, as the above page only discusses
how to setup a task that you run from a shortcut using
the schtasks.exe program.

But perhaps you can adapt it to run prior to logon.
Then maybe you don't need to use the schtasks.exe
directly, but have it run for you at logon or startup.
If it runs with highest privs, maybe that's good enough.

I've only used this on win 10 however, not win 11.

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u5s9u5$1g163$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Thu, 8 Jun 2023 12:18:45 +0200
Organization: A noiseless patient Spider
Lines: 68
Message-ID: <u5s9u5$1g163$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Jun 2023 10:18:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f89662e82dc2fc109bc63c5f06cbcb0a";
logging-data="1574083"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kvgaloD3k521LEbgqZkPk"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:jh6FsgC1wqm6DZh1SmLF2ePqbaw=
Content-Language: en-GB
In-Reply-To: <u5qomt$17km2$1@dont-email.me>
 by: Harald Oehlmann - Thu, 8 Jun 2023 10:18 UTC

Am 07.06.2023 um 22:18 schrieb et99:
>
> It sounds like you need to run this before the user is
> logged in. I'm not sure if this would work before
> you're even logged in, however,
>
> https://windowsloop.com/how-to-run-a-program-as-administrator-without-prompt/
>
> I've used this described procedure with the task
> scheduler to run a tcl script at admin privs to run a
> program w/o the prompt and then using twapi find its
> window and send it mouse clicks.
>
> In the task scheduler, I see one can set in the
> general tab, "run whether user is logged on or not"
> And there's also a checkbox "run with  *highest*
> privileges". Not sure how high that really is though.
>
> Then in the triggers tab, with new... (to create a new
> trigger) at the top it says "begin the task", one can
> choose "at logon" or even "at startup".
>
> I've not tried this, as the above page only discusses
> how to setup a task that you run from a shortcut using
> the schtasks.exe program.
>
> But perhaps you can adapt it to run prior to logon.
> Then maybe you don't need to use the schtasks.exe
> directly, but have it run for you at logon or startup.
> If it runs with highest privs, maybe that's good enough.
>
> I've only used this on win 10 however, not win 11.

Thanks a lot for this valuable contribution.
I appreciate, that you read this long post and thinks on it.

Did you do mouse-clicks on the unlock login screen (if the user has
locked the screen)? Did that work? If YES, I am interested, how the
application is done. Is the exe signed? Is it at c:\program files..?
What is the manifest?

What I tested:
- desktop starkit with user privileges -> can send keypresses to any
other program of the user. If the user locks the screen and activates
the password entry, it can not send to this entry.
- desktop starkit with admin privileges -> can send keypresses to other
admin programs and to user programs. If the user locks the screen and
activates the password entry, it can not send to this entry.
- Windows service starkit with system user: can send keypress to any
other program, but not to initial login password field, nor to unlock
screen password field.

The corresponding system calls succeed when keystrokes are sent to the
login screen, but there is no output. I suppose, the following phrase
from the SendInput function help page gives insight to that:
"This function fails when it is blocked by UIPI. Note that neither
GetLastError nor the return value will indicate the failure was caused
by UIPI blocking."

So, I suppose, your proposition was already tested.

Do you agree with this analysis ?

Thank you again, I appreciate !

Take care,
Harald

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u5ta6v$1jqem$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Thu, 8 Jun 2023 12:29:35 -0700
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <u5ta6v$1jqem$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Jun 2023 19:29:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9739844259509bd9a62185514ecf1e2b";
logging-data="1698262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OsDq4NO3UIhoF6M7Ciz8B"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:9GyqGwnmVSkuKupdFWzKiyTVRCE=
In-Reply-To: <u5s9u5$1g163$1@dont-email.me>
Content-Language: en-US
 by: et99 - Thu, 8 Jun 2023 19:29 UTC

On 6/8/2023 3:18 AM, Harald Oehlmann wrote:
> Am 07.06.2023 um 22:18 schrieb et99:
>>
>> It sounds like you need to run this before the user is
>> logged in. I'm not sure if this would work before
>> you're even logged in, however,
>>
>> https://windowsloop.com/how-to-run-a-program-as-administrator-without-prompt/
>>
>> I've used this described procedure with the task
>> scheduler to run a tcl script at admin privs to run a
>> program w/o the prompt and then using twapi find its
>> window and send it mouse clicks.
>>
>> In the task scheduler, I see one can set in the
>> general tab, "run whether user is logged on or not"
>> And there's also a checkbox "run with  *highest*
>> privileges". Not sure how high that really is though.
>>
>> Then in the triggers tab, with new... (to create a new
>> trigger) at the top it says "begin the task", one can
>> choose "at logon" or even "at startup".
>>
>> I've not tried this, as the above page only discusses
>> how to setup a task that you run from a shortcut using
>> the schtasks.exe program.
>>
>> But perhaps you can adapt it to run prior to logon.
>> Then maybe you don't need to use the schtasks.exe
>> directly, but have it run for you at logon or startup.
>> If it runs with highest privs, maybe that's good enough.
>>
>> I've only used this on win 10 however, not win 11.
>
> Thanks a lot for this valuable contribution.
> I appreciate, that you read this long post and thinks on it.
>
> Did you do mouse-clicks on the unlock login screen (if the user has locked the screen)? Did that work? If YES, I am interested, how the application is done. Is the exe signed? Is it at c:\program files..? What is the manifest?
>
> What I tested:
> - desktop starkit with user privileges -> can send keypresses to any other program of the user. If the user locks the screen and activates the password entry, it can not send to this entry.
> - desktop starkit with admin privileges -> can send keypresses to other admin programs and to user programs. If the user locks the screen and activates the password entry, it can not send to this entry.
> - Windows service starkit with system user: can send keypress to any other program, but not to initial login password field, nor to unlock screen password field.
>
> The corresponding system calls succeed when keystrokes are sent to the login screen, but there is no output. I suppose, the following phrase from the SendInput function help page gives insight to that:
> "This function fails when it is blocked by UIPI. Note that neither GetLastError nor the return value will indicate the failure was caused by UIPI blocking."
>
> So, I suppose, your proposition was already tested.
>
> Do you agree with this analysis ?
>
> Thank you again, I appreciate !
>
> Take care,
> Harald
>

In your description you didn't mention if you can move the mouse pointer over the login screen and see it move to the password entry field, followed by a left click. Are you able to do that?

I never log out nor use the login screen on my computer, but as I recall, you have to left click on the password text entry to get anything going.

I don't know if my use of the task scheduler is anything more than what you are already doing, I just know it lets me avoid the user account control screen, which I couldn't otherwise do.

I don't use an .exe signature, I'm just launching a tclkit.exe with a script, which exec's my backup program, finds its main window and sends it some mouse clicks all using twapi.

The procedure on that page I mentioned is fairly straight forward, it even shows you pictures of the dialogs you need to fill out to create a task (just scroll down past the ads).

Good Luck

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u5tbgd$1k062$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Thu, 8 Jun 2023 21:51:42 +0200
Organization: A noiseless patient Spider
Lines: 99
Message-ID: <u5tbgd$1k062$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Jun 2023 19:51:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f89662e82dc2fc109bc63c5f06cbcb0a";
logging-data="1704130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RSL5fytXfAp9H9opP5bBB"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:oZKj7sHg1bI12N67oiLGl9jO83w=
In-Reply-To: <u5ta6v$1jqem$1@dont-email.me>
Content-Language: en-GB
 by: Harald Oehlmann - Thu, 8 Jun 2023 19:51 UTC

Am 08.06.2023 um 21:29 schrieb et99:
> On 6/8/2023 3:18 AM, Harald Oehlmann wrote:
>> Am 07.06.2023 um 22:18 schrieb et99:
>>>
>>> It sounds like you need to run this before the user is
>>> logged in. I'm not sure if this would work before
>>> you're even logged in, however,
>>>
>>> https://windowsloop.com/how-to-run-a-program-as-administrator-without-prompt/
>>>
>>> I've used this described procedure with the task
>>> scheduler to run a tcl script at admin privs to run a
>>> program w/o the prompt and then using twapi find its
>>> window and send it mouse clicks.
>>>
>>> In the task scheduler, I see one can set in the
>>> general tab, "run whether user is logged on or not"
>>> And there's also a checkbox "run with  *highest*
>>> privileges". Not sure how high that really is though.
>>>
>>> Then in the triggers tab, with new... (to create a new
>>> trigger) at the top it says "begin the task", one can
>>> choose "at logon" or even "at startup".
>>>
>>> I've not tried this, as the above page only discusses
>>> how to setup a task that you run from a shortcut using
>>> the schtasks.exe program.
>>>
>>> But perhaps you can adapt it to run prior to logon.
>>> Then maybe you don't need to use the schtasks.exe
>>> directly, but have it run for you at logon or startup.
>>> If it runs with highest privs, maybe that's good enough.
>>>
>>> I've only used this on win 10 however, not win 11.
>>
>> Thanks a lot for this valuable contribution.
>> I appreciate, that you read this long post and thinks on it.
>>
>> Did you do mouse-clicks on the unlock login screen (if the user has
>> locked the screen)? Did that work? If YES, I am interested, how the
>> application is done. Is the exe signed? Is it at c:\program files..?
>> What is the manifest?
>>
>> What I tested:
>> - desktop starkit with user privileges -> can send keypresses to any
>> other program of the user. If the user locks the screen and activates
>> the password entry, it can not send to this entry.
>> - desktop starkit with admin privileges -> can send keypresses to
>> other admin programs and to user programs. If the user locks the
>> screen and activates the password entry, it can not send to this entry.
>> - Windows service starkit with system user: can send keypress to any
>> other program, but not to initial login password field, nor to unlock
>> screen password field.
>>
>> The corresponding system calls succeed when keystrokes are sent to the
>> login screen, but there is no output. I suppose, the following phrase
>> from the SendInput function help page gives insight to that:
>> "This function fails when it is blocked by UIPI. Note that neither
>> GetLastError nor the return value will indicate the failure was caused
>> by UIPI blocking."
>>
>> So, I suppose, your proposition was already tested.
>>
>> Do you agree with this analysis ?
>>
>> Thank you again, I appreciate !
>>
>> Take care,
>> Harald
>>
>
>
> In your description you didn't mention if you can move the mouse pointer
> over the login screen and see it move to the password entry field,
> followed by a left click. Are you able to do that?
>
> I never log out nor use the login screen on my computer, but as I
> recall, you have to left click on the password text entry to get
> anything going.
>
> I don't know if my use of the task scheduler is anything more than what
> you are already doing, I just know it lets me avoid the user account
> control screen, which I couldn't otherwise do.
>
> I don't use an .exe signature, I'm just launching a tclkit.exe with a
> script, which exec's my backup program, finds its main window and sends
> it some mouse clicks all using twapi.
>
> The procedure on that page I mentioned is fairly straight forward, it
> even shows you pictures of the dialogs you need to fill out to create a
> task (just scroll down past the ads).
>
> Good Luck
>
Thanks for the clarification, I appreciate.
I will test, if this works for me.

Thank you and take care,
Harald

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u6epk2$cn1n$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Thu, 15 Jun 2023 12:36:50 +0200
Organization: A noiseless patient Spider
Lines: 146
Message-ID: <u6epk2$cn1n$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
<u5tbgd$1k062$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 15 Jun 2023 10:36:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c502fcc32aad51f20c8df2312108e5ec";
logging-data="416823"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jeG9x8gr9U0v7rSyMmgBr"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:nwHhWMRWcIMdhw6QlL207mR2YAs=
Content-Language: en-GB
In-Reply-To: <u5tbgd$1k062$1@dont-email.me>
 by: Harald Oehlmann - Thu, 15 Jun 2023 10:36 UTC

Am 08.06.2023 um 21:51 schrieb Harald Oehlmann:
> Am 08.06.2023 um 21:29 schrieb et99:
>> On 6/8/2023 3:18 AM, Harald Oehlmann wrote:
>>> Am 07.06.2023 um 22:18 schrieb et99:
>>>>
>>>> It sounds like you need to run this before the user is
>>>> logged in. I'm not sure if this would work before
>>>> you're even logged in, however,
>>>>
>>>> https://windowsloop.com/how-to-run-a-program-as-administrator-without-prompt/
>>>>
>>>> I've used this described procedure with the task
>>>> scheduler to run a tcl script at admin privs to run a
>>>> program w/o the prompt and then using twapi find its
>>>> window and send it mouse clicks.
>>>>
>>>> In the task scheduler, I see one can set in the
>>>> general tab, "run whether user is logged on or not"
>>>> And there's also a checkbox "run with  *highest*
>>>> privileges". Not sure how high that really is though.
>>>>
>>>> Then in the triggers tab, with new... (to create a new
>>>> trigger) at the top it says "begin the task", one can
>>>> choose "at logon" or even "at startup".
>>>>
>>>> I've not tried this, as the above page only discusses
>>>> how to setup a task that you run from a shortcut using
>>>> the schtasks.exe program.
>>>>
>>>> But perhaps you can adapt it to run prior to logon.
>>>> Then maybe you don't need to use the schtasks.exe
>>>> directly, but have it run for you at logon or startup.
>>>> If it runs with highest privs, maybe that's good enough.
>>>>
>>>> I've only used this on win 10 however, not win 11.
>>>
>>> Thanks a lot for this valuable contribution.
>>> I appreciate, that you read this long post and thinks on it.
>>>
>>> Did you do mouse-clicks on the unlock login screen (if the user has
>>> locked the screen)? Did that work? If YES, I am interested, how the
>>> application is done. Is the exe signed? Is it at c:\program files..?
>>> What is the manifest?
>>>
>>> What I tested:
>>> - desktop starkit with user privileges -> can send keypresses to any
>>> other program of the user. If the user locks the screen and activates
>>> the password entry, it can not send to this entry.
>>> - desktop starkit with admin privileges -> can send keypresses to
>>> other admin programs and to user programs. If the user locks the
>>> screen and activates the password entry, it can not send to this entry.
>>> - Windows service starkit with system user: can send keypress to any
>>> other program, but not to initial login password field, nor to unlock
>>> screen password field.
>>>
>>> The corresponding system calls succeed when keystrokes are sent to
>>> the login screen, but there is no output. I suppose, the following
>>> phrase from the SendInput function help page gives insight to that:
>>> "This function fails when it is blocked by UIPI. Note that neither
>>> GetLastError nor the return value will indicate the failure was
>>> caused by UIPI blocking."
>>>
>>> So, I suppose, your proposition was already tested.
>>>
>>> Do you agree with this analysis ?
>>>
>>> Thank you again, I appreciate !
>>>
>>> Take care,
>>> Harald
>>>
>>
>>
>> In your description you didn't mention if you can move the mouse
>> pointer over the login screen and see it move to the password entry
>> field, followed by a left click. Are you able to do that?
>>
>> I never log out nor use the login screen on my computer, but as I
>> recall, you have to left click on the password text entry to get
>> anything going.
>>
>> I don't know if my use of the task scheduler is anything more than
>> what you are already doing, I just know it lets me avoid the user
>> account control screen, which I couldn't otherwise do.
>>
>> I don't use an .exe signature, I'm just launching a tclkit.exe with a
>> script, which exec's my backup program, finds its main window and
>> sends it some mouse clicks all using twapi.
>>
>> The procedure on that page I mentioned is fairly straight forward, it
>> even shows you pictures of the dialogs you need to fill out to create
>> a task (just scroll down past the ads).
>>
>> Good Luck
>>
> Thanks for the clarification, I appreciate.
> I will test, if this works for me.
>
> Thank you and take care,
> Harald

Dear ET99,

I have made additional tests.

The following script was wrapped into a starkit (by Ashok, tcl8.6.12,
TWAPI 4.7.2, 32bit) on WIndows 10 64bit GER and started as administrator:
<SCRIPT>
package require Tk
console show
wm withdraw .
update
package require twapi
proc s {} {
twapi::send_input [list [list key 65 0x1e]]
puts -nonewline a
after 10000 s
} after 10000 s

proc m {} {
puts "[catch {twapi::move_mouse 100 100} e] $e"
after 10000 m
} </SCRIPT>

Wrap command:
tclkit-cli-8_6_12-twapi-4_7_2-x86-max.exe sdx.kit wrap twapisend.exe
-runtime tclkit-gui-8_6_12-twapi-4_7_2-x86-max.exe

Then, the lock screen was activated.
The mouse move and key press is active in the lock screen.
The keypress changes to the password screen.
The mouse moves to the upper-right corner.
But when changing (by the keypress) to the password entry screen, nor
mouse move, nor keypress are recognized.

The mouse move returns an error:
1 Wrong parameter
The keypress just does not appear.

Is this also what you see, or are you able to move the mouse in the
password part of the lock screen ?

Thank you and take care,
Harald

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u6g4k2$i4uc$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Thu, 15 Jun 2023 15:50:41 -0700
Organization: A noiseless patient Spider
Lines: 137
Message-ID: <u6g4k2$i4uc$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
<u5tbgd$1k062$1@dont-email.me> <u6epk2$cn1n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 15 Jun 2023 22:50:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="65b194c9eb4a48549bbe6f9e2a2e4fcf";
logging-data="594892"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192bkPk5ZtDpKfUSg6zpSHd"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:mK/VjISpOTbHehuigezuyy8ZxSo=
Content-Language: en-US
In-Reply-To: <u6epk2$cn1n$1@dont-email.me>
 by: et99 - Thu, 15 Jun 2023 22:50 UTC

On 6/15/2023 3:36 AM, Harald Oehlmann wrote:
> Am 08.06.2023 um 21:51 schrieb Harald Oehlmann:
>> Am 08.06.2023 um 21:29 schrieb et99:
>>> On 6/8/2023 3:18 AM, Harald Oehlmann wrote:
>>>> Am 07.06.2023 um 22:18 schrieb et99:
>>>>>
>>>>> It sounds like you need to run this before the user is
>>>>> logged in. I'm not sure if this would work before
>>>>> you're even logged in, however,
>>>>>
>>>>> https://windowsloop.com/how-to-run-a-program-as-administrator-without-prompt/
>>>>>
>>>>> I've used this described procedure with the task
>>>>> scheduler to run a tcl script at admin privs to run a
>>>>> program w/o the prompt and then using twapi find its
>>>>> window and send it mouse clicks.
>>>>>
>>>>> In the task scheduler, I see one can set in the
>>>>> general tab, "run whether user is logged on or not"
>>>>> And there's also a checkbox "run with  *highest*
>>>>> privileges". Not sure how high that really is though.
>>>>>
>>>>> Then in the triggers tab, with new... (to create a new
>>>>> trigger) at the top it says "begin the task", one can
>>>>> choose "at logon" or even "at startup".
>>>>>
>>>>> I've not tried this, as the above page only discusses
>>>>> how to setup a task that you run from a shortcut using
>>>>> the schtasks.exe program.
>>>>>
>>>>> But perhaps you can adapt it to run prior to logon.
>>>>> Then maybe you don't need to use the schtasks.exe
>>>>> directly, but have it run for you at logon or startup.
>>>>> If it runs with highest privs, maybe that's good enough.
>>>>>
>>>>> I've only used this on win 10 however, not win 11.
>>>>
>>>> Thanks a lot for this valuable contribution.
>>>> I appreciate, that you read this long post and thinks on it.
>>>>
>>>> Did you do mouse-clicks on the unlock login screen (if the user has locked the screen)? Did that work? If YES, I am interested, how the application is done. Is the exe signed? Is it at c:\program files..? What is the manifest?
>>>>
>>>> What I tested:
>>>> - desktop starkit with user privileges -> can send keypresses to any other program of the user. If the user locks the screen and activates the password entry, it can not send to this entry.
>>>> - desktop starkit with admin privileges -> can send keypresses to other admin programs and to user programs. If the user locks the screen and activates the password entry, it can not send to this entry.
>>>> - Windows service starkit with system user: can send keypress to any other program, but not to initial login password field, nor to unlock screen password field.
>>>>
>>>> The corresponding system calls succeed when keystrokes are sent to the login screen, but there is no output. I suppose, the following phrase from the SendInput function help page gives insight to that:
>>>> "This function fails when it is blocked by UIPI. Note that neither GetLastError nor the return value will indicate the failure was caused by UIPI blocking."
>>>>
>>>> So, I suppose, your proposition was already tested.
>>>>
>>>> Do you agree with this analysis ?
>>>>
>>>> Thank you again, I appreciate !
>>>>
>>>> Take care,
>>>> Harald
>>>>
>>>
>>>
>>> In your description you didn't mention if you can move the mouse pointer over the login screen and see it move to the password entry field, followed by a left click. Are you able to do that?
>>>
>>> I never log out nor use the login screen on my computer, but as I recall, you have to left click on the password text entry to get anything going.
>>>
>>> I don't know if my use of the task scheduler is anything more than what you are already doing, I just know it lets me avoid the user account control screen, which I couldn't otherwise do.
>>>
>>> I don't use an .exe signature, I'm just launching a tclkit.exe with a script, which exec's my backup program, finds its main window and sends it some mouse clicks all using twapi.
>>>
>>> The procedure on that page I mentioned is fairly straight forward, it even shows you pictures of the dialogs you need to fill out to create a task (just scroll down past the ads).
>>>
>>> Good Luck
>>>
>> Thanks for the clarification, I appreciate.
>> I will test, if this works for me.
>>
>> Thank you and take care,
>> Harald
>
> Dear ET99,
>
> I have made additional tests.
>
> The following script was wrapped into a starkit (by Ashok, tcl8.6.12, TWAPI 4.7.2, 32bit) on WIndows 10 64bit GER and started as administrator:
> <SCRIPT>
> package require Tk
> console show
> wm withdraw .
> update
> package require twapi
> proc s {} {
>     twapi::send_input [list [list key 65 0x1e]]
>     puts -nonewline a
>     after 10000 s
> }
> after 10000 s
>
> proc m {} {
>     puts "[catch {twapi::move_mouse 100 100} e] $e"
>     after 10000 m
> }
> </SCRIPT>
>
> Wrap command:
> tclkit-cli-8_6_12-twapi-4_7_2-x86-max.exe sdx.kit wrap twapisend.exe -runtime tclkit-gui-8_6_12-twapi-4_7_2-x86-max.exe
>
> Then, the lock screen was activated.
> The mouse move and key press is active in the lock screen.
> The keypress changes to the password screen.
> The mouse moves to the upper-right corner.
> But when changing (by the keypress) to the password entry screen, nor mouse move, nor keypress are recognized.
>
> The mouse move returns an error:
> 1 Wrong parameter
> The keypress just does not appear.
>
> Is this also what you see, or are you able to move the mouse in the password part of the lock screen ?
>
> Thank you and take care,
> Harald

Yes I see pretty much what you do. I can move the mouse pointer
send it a character that opens the password text box.

After that, the only thing active is the onscreen keyboard
or the actual keyboard. I have to enter a password to leave.

I can't even paste anything into the password field.

So, sorry, this doesn't appear to work.

I did find this discussion and it seems likely that only using a driver will work:

https://stackoverflow.com/questions/9652358/simulating-input-in-windows-logon-screen-using-a-driver

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u6h4rf$ospl$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Fri, 16 Jun 2023 10:00:47 +0200
Organization: A noiseless patient Spider
Lines: 178
Message-ID: <u6h4rf$ospl$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
<u5tbgd$1k062$1@dont-email.me> <u6epk2$cn1n$1@dont-email.me>
<u6g4k2$i4uc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 16 Jun 2023 08:00:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4519433f30ea519ca20d1c951053ee2a";
logging-data="815925"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/i8oMrcYNrkr9QiegiyVuy"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:QT3XbGCO5Xj52SZME3JPgE5e7ug=
In-Reply-To: <u6g4k2$i4uc$1@dont-email.me>
Content-Language: en-GB
 by: Harald Oehlmann - Fri, 16 Jun 2023 08:00 UTC

Am 16.06.2023 um 00:50 schrieb et99:
> On 6/15/2023 3:36 AM, Harald Oehlmann wrote:
>> Am 08.06.2023 um 21:51 schrieb Harald Oehlmann:
>>> Am 08.06.2023 um 21:29 schrieb et99:
>>>> On 6/8/2023 3:18 AM, Harald Oehlmann wrote:
>>>>> Am 07.06.2023 um 22:18 schrieb et99:
>>>>>>
>>>>>> It sounds like you need to run this before the user is
>>>>>> logged in. I'm not sure if this would work before
>>>>>> you're even logged in, however,
>>>>>>
>>>>>> https://windowsloop.com/how-to-run-a-program-as-administrator-without-prompt/
>>>>>>
>>>>>> I've used this described procedure with the task
>>>>>> scheduler to run a tcl script at admin privs to run a
>>>>>> program w/o the prompt and then using twapi find its
>>>>>> window and send it mouse clicks.
>>>>>>
>>>>>> In the task scheduler, I see one can set in the
>>>>>> general tab, "run whether user is logged on or not"
>>>>>> And there's also a checkbox "run with  *highest*
>>>>>> privileges". Not sure how high that really is though.
>>>>>>
>>>>>> Then in the triggers tab, with new... (to create a new
>>>>>> trigger) at the top it says "begin the task", one can
>>>>>> choose "at logon" or even "at startup".
>>>>>>
>>>>>> I've not tried this, as the above page only discusses
>>>>>> how to setup a task that you run from a shortcut using
>>>>>> the schtasks.exe program.
>>>>>>
>>>>>> But perhaps you can adapt it to run prior to logon.
>>>>>> Then maybe you don't need to use the schtasks.exe
>>>>>> directly, but have it run for you at logon or startup.
>>>>>> If it runs with highest privs, maybe that's good enough.
>>>>>>
>>>>>> I've only used this on win 10 however, not win 11.
>>>>>
>>>>> Thanks a lot for this valuable contribution.
>>>>> I appreciate, that you read this long post and thinks on it.
>>>>>
>>>>> Did you do mouse-clicks on the unlock login screen (if the user has
>>>>> locked the screen)? Did that work? If YES, I am interested, how the
>>>>> application is done. Is the exe signed? Is it at c:\program
>>>>> files..? What is the manifest?
>>>>>
>>>>> What I tested:
>>>>> - desktop starkit with user privileges -> can send keypresses to
>>>>> any other program of the user. If the user locks the screen and
>>>>> activates the password entry, it can not send to this entry.
>>>>> - desktop starkit with admin privileges -> can send keypresses to
>>>>> other admin programs and to user programs. If the user locks the
>>>>> screen and activates the password entry, it can not send to this
>>>>> entry.
>>>>> - Windows service starkit with system user: can send keypress to
>>>>> any other program, but not to initial login password field, nor to
>>>>> unlock screen password field.
>>>>>
>>>>> The corresponding system calls succeed when keystrokes are sent to
>>>>> the login screen, but there is no output. I suppose, the following
>>>>> phrase from the SendInput function help page gives insight to that:
>>>>> "This function fails when it is blocked by UIPI. Note that neither
>>>>> GetLastError nor the return value will indicate the failure was
>>>>> caused by UIPI blocking."
>>>>>
>>>>> So, I suppose, your proposition was already tested.
>>>>>
>>>>> Do you agree with this analysis ?
>>>>>
>>>>> Thank you again, I appreciate !
>>>>>
>>>>> Take care,
>>>>> Harald
>>>>>
>>>>
>>>>
>>>> In your description you didn't mention if you can move the mouse
>>>> pointer over the login screen and see it move to the password entry
>>>> field, followed by a left click. Are you able to do that?
>>>>
>>>> I never log out nor use the login screen on my computer, but as I
>>>> recall, you have to left click on the password text entry to get
>>>> anything going.
>>>>
>>>> I don't know if my use of the task scheduler is anything more than
>>>> what you are already doing, I just know it lets me avoid the user
>>>> account control screen, which I couldn't otherwise do.
>>>>
>>>> I don't use an .exe signature, I'm just launching a tclkit.exe with
>>>> a script, which exec's my backup program, finds its main window and
>>>> sends it some mouse clicks all using twapi.
>>>>
>>>> The procedure on that page I mentioned is fairly straight forward,
>>>> it even shows you pictures of the dialogs you need to fill out to
>>>> create a task (just scroll down past the ads).
>>>>
>>>> Good Luck
>>>>
>>> Thanks for the clarification, I appreciate.
>>> I will test, if this works for me.
>>>
>>> Thank you and take care,
>>> Harald
>>
>> Dear ET99,
>>
>> I have made additional tests.
>>
>> The following script was wrapped into a starkit (by Ashok, tcl8.6.12,
>> TWAPI 4.7.2, 32bit) on WIndows 10 64bit GER and started as administrator:
>> <SCRIPT>
>> package require Tk
>> console show
>> wm withdraw .
>> update
>> package require twapi
>> proc s {} {
>>      twapi::send_input [list [list key 65 0x1e]]
>>      puts -nonewline a
>>      after 10000 s
>> }
>> after 10000 s
>>
>> proc m {} {
>>      puts "[catch {twapi::move_mouse 100 100} e] $e"
>>      after 10000 m
>> }
>> </SCRIPT>
>>
>> Wrap command:
>> tclkit-cli-8_6_12-twapi-4_7_2-x86-max.exe sdx.kit wrap twapisend.exe
>> -runtime tclkit-gui-8_6_12-twapi-4_7_2-x86-max.exe
>>
>> Then, the lock screen was activated.
>> The mouse move and key press is active in the lock screen.
>> The keypress changes to the password screen.
>> The mouse moves to the upper-right corner.
>> But when changing (by the keypress) to the password entry screen, nor
>> mouse move, nor keypress are recognized.
>>
>> The mouse move returns an error:
>> 1 Wrong parameter
>> The keypress just does not appear.
>>
>> Is this also what you see, or are you able to move the mouse in the
>> password part of the lock screen ?
>>
>> Thank you and take care,
>> Harald
>
>
> Yes I see pretty much what you do. I can move the mouse pointer
> send it a character that opens the password text box.
>
> After that, the only thing active is the onscreen keyboard
> or the actual keyboard. I have to enter a password to leave.
>
> I can't even paste anything into the password field.
>
> So, sorry, this doesn't appear to work.
>
> I did find this discussion and it seems likely that only using a driver
> will work:
>
> https://stackoverflow.com/questions/9652358/simulating-input-in-windows-logon-screen-using-a-driver
>
>

Dear Et99,

I want to thank you for the efforts to always follow my messages and to
check what I have done. I really appreciate !
Thanks for the great pointer with a lot of research. I will first try
the "Assistent technology" approach before trying the driver method.

Thank you and take care,
Harald

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u8p569$3m9r1$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Thu, 13 Jul 2023 17:28:09 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <u8p569$3m9r1$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
<u5tbgd$1k062$1@dont-email.me> <u6epk2$cn1n$1@dont-email.me>
<u6g4k2$i4uc$1@dont-email.me> <u6h4rf$ospl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 13 Jul 2023 15:28:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b95065f8e591ee158a29ad6f1188b016";
logging-data="3876705"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5YAABR424l1zTU2G+/79B"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:EoSknrDl94TFdWBko8bI9guoJFI=
In-Reply-To: <u6h4rf$ospl$1@dont-email.me>
Content-Language: en-GB
 by: Harald Oehlmann - Thu, 13 Jul 2023 15:28 UTC

Thank you all reading this thread. The current state is logged on the
following wiki page:

https://wiki.tcl-lang.org/page/MS+Windows%3A+assistive+technology%2C+code+signing%2C+send+keystrokes+to+other+applications+and+Windows+login+password+field

Thank you,
Harald

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u8rngh$1vph$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Fri, 14 Jul 2023 16:53:05 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <u8rngh$1vph$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
<u5tbgd$1k062$1@dont-email.me> <u6epk2$cn1n$1@dont-email.me>
<u6g4k2$i4uc$1@dont-email.me> <u6h4rf$ospl$1@dont-email.me>
<u8p569$3m9r1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 14 Jul 2023 14:53:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="eb56c55ccc7bbb1e08aeb5817fe254bc";
logging-data="65329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zMtDqIPtXI6OG8Lb5g8xG"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:GETU4Y6csso+iZQR+IpVzTLHfyY=
Content-Language: en-GB
In-Reply-To: <u8p569$3m9r1$1@dont-email.me>
 by: Harald Oehlmann - Fri, 14 Jul 2023 14:53 UTC

Am 13.07.2023 um 17:28 schrieb Harald Oehlmann:
> Thank you all reading this thread. The current state is logged on the
> following wiki page:
>
> https://wiki.tcl-lang.org/page/MS+Windows%3A+assistive+technology%2C+code+signing%2C+send+keystrokes+to+other+applications+and+Windows+login+password+field
>
> Thank you,
> Harald

Assistive Technology realy works to solve the problem. This is big fun
to have the TCL application run in the Windows Logon screen ;-).

Enjoy the logbook,
Harald

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<bfe05191-9307-4836-8867-1b9be1625cc6n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:9b1:b0:635:ed0e:49b5 with SMTP id du17-20020a05621409b100b00635ed0e49b5mr103624qvb.4.1689848344016;
Thu, 20 Jul 2023 03:19:04 -0700 (PDT)
X-Received: by 2002:a05:6870:9573:b0:1ba:56e9:24a9 with SMTP id
v51-20020a056870957300b001ba56e924a9mr1558858oal.7.1689848343712; Thu, 20 Jul
2023 03:19:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 20 Jul 2023 03:19:03 -0700 (PDT)
In-Reply-To: <u8rngh$1vph$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:67c:198c:906:7a45:c4ff:fefb:b61a;
posting-account=69KvcAoAAABTX7utMIB2c6Uu9HtGaTF5
NNTP-Posting-Host: 2001:67c:198c:906:7a45:c4ff:fefb:b61a
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
<u5tbgd$1k062$1@dont-email.me> <u6epk2$cn1n$1@dont-email.me>
<u6g4k2$i4uc$1@dont-email.me> <u6h4rf$ospl$1@dont-email.me>
<u8p569$3m9r1$1@dont-email.me> <u8rngh$1vph$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bfe05191-9307-4836-8867-1b9be1625cc6n@googlegroups.com>
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application
From: kyvbox@gmail.com (Yuriy Kovalenko)
Injection-Date: Thu, 20 Jul 2023 10:19:04 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Yuriy Kovalenko - Thu, 20 Jul 2023 10:19 UTC

Hello Harald,

Below is not perfect but working example of using IsProcessInJob with Ffidl.
It is based on topic https://stackoverflow.com/questions/5595918/using-ffidl-with-tcl-to-return-pass-by-reference-strings-and-arrays

package require twapi
package require Ffidl
package require Ffidlrt

ffidl::callout IsProcessInJob {int int pointer-var} int [ffidl::symbol kernel32.dll IsProcessInJob]

proc is_process_in_job {process job} {
set res_ptr [binary format [::ffidl::info format int] 0]
if {[IsProcessInJob $process $job res_ptr]} {
binary scan $res_ptr [::ffidl::info format int] res_ptr
return $res_ptr
} else {
puts "Error executing IsProcessInJob"
return -1
}
}

Test case:

ffidl::callout CreateJobObjectA {int pointer-utf8} int [ffidl::symbol kernel32.dll CreateJobObjectA]

set cur_process [lindex [twapi::get_process_handle [twapi::get_current_process_id] ] 0]
set job [CreateJobObjectA 0 "testJob"]

(bin) 26 % is_process_in_job $cur_process 0
1 ; # search process in any job is successfull
(bin) 27 % is_process_in_job $cur_process $job
0 ; # process is not in testJob

Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

<u9ba0c$2mr8g$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: MS-Windows: Send keys to login/unlock page/Asisstive Technology
Application
Date: Thu, 20 Jul 2023 14:40:44 +0200
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <u9ba0c$2mr8g$1@dont-email.me>
References: <u5q1re$14rfv$1@dont-email.me> <u5qomt$17km2$1@dont-email.me>
<u5s9u5$1g163$1@dont-email.me> <u5ta6v$1jqem$1@dont-email.me>
<u5tbgd$1k062$1@dont-email.me> <u6epk2$cn1n$1@dont-email.me>
<u6g4k2$i4uc$1@dont-email.me> <u6h4rf$ospl$1@dont-email.me>
<u8p569$3m9r1$1@dont-email.me> <u8rngh$1vph$1@dont-email.me>
<bfe05191-9307-4836-8867-1b9be1625cc6n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 20 Jul 2023 12:40:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="792440fe66964b8b885eab5e591a9b62";
logging-data="2845968"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AHfyz6o9o0vbANtKI5xFJ"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:/kQPXle2oEGjDh6qT65QL43bEvQ=
Content-Language: en-GB
In-Reply-To: <bfe05191-9307-4836-8867-1b9be1625cc6n@googlegroups.com>
 by: Harald Oehlmann - Thu, 20 Jul 2023 12:40 UTC

Great, Yuriy, I appreciate. I am at the conference, thank on holiday,
will test mid August.

Thanks again,
Harald

Am 20.07.2023 um 12:19 schrieb Yuriy Kovalenko:
> Hello Harald,
>
> Below is not perfect but working example of using IsProcessInJob with Ffidl.
> It is based on topic https://stackoverflow.com/questions/5595918/using-ffidl-with-tcl-to-return-pass-by-reference-strings-and-arrays
>
> package require twapi
> package require Ffidl
> package require Ffidlrt
>
> ffidl::callout IsProcessInJob {int int pointer-var} int [ffidl::symbol kernel32.dll IsProcessInJob]
>
> proc is_process_in_job {process job} {
> set res_ptr [binary format [::ffidl::info format int] 0]
> if {[IsProcessInJob $process $job res_ptr]} {
> binary scan $res_ptr [::ffidl::info format int] res_ptr
> return $res_ptr
> } else {
> puts "Error executing IsProcessInJob"
> return -1
> }
> }
>
>
> Test case:
>
> ffidl::callout CreateJobObjectA {int pointer-utf8} int [ffidl::symbol kernel32.dll CreateJobObjectA]
>
> set cur_process [lindex [twapi::get_process_handle [twapi::get_current_process_id] ] 0]
> set job [CreateJobObjectA 0 "testJob"]
>
> (bin) 26 % is_process_in_job $cur_process 0
> 1 ; # search process in any job is successfull
> (bin) 27 % is_process_in_job $cur_process $job
> 0 ; # process is not in testJob


devel / comp.lang.tcl / MS-Windows: Send keys to login/unlock page/Asisstive Technology Application

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor