Windows authentication code no longer working now

后端 未结 3 2044
轻奢々
轻奢々 2020-12-21 21:15

My below code for windows authentication was working well for over a year. But for the last few days it is longer working now. I am not able to identify exact reason for tha

3条回答
  •  余生分开走
    2020-12-21 22:12

    Try AutoIT to create an exe for the windows authentication and call it where ever required, if nothing else is working. If you are mostly working with Pyton then try this

    Sample code:-

    WinWaitActive("Authentication Required","","120")
    
    If WinExists("Authentication Required") Then
    Send("username{TAB}")
    
    Send("password{Enter}")
    
    EndIf
    

提交回复
热议问题