简体   繁体   中英

Can we get coordinates (x,y) of winlogon screen for any resolution set in system? (as indicated in attached image )

winlogn(credUI /安全登录)页面上显示的用户图块的x,y坐标

I want to make auto login of a particular user when certain events happen when on any service running inside the system. CredentialProvider is used to fetch User & Password, but complete auto login does not work. So I want to call Mousemove & mouseclick on x,y position on credential provider tile.

Custom CredentialProvider runs under winlogon, So any code in CredentailProvider will execute as winlogon, So can Active Accessibility User Interface methods used inside CredentailProvider and access Text / coordinates of user tile?

With your own credential provider you should be able to logon user automatically. You need to call CredentialsChanged() using ICredentialProviderEvents object you got on Advice() .

But if you want to use the crazy way (clicking the button and so on) you can get coordinates of that button using Active Accessibility or UI Automation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM