HelloWorld123456 Posted April 20, 2018 Share Posted April 20, 2018 I have a simple autoit script which waits for the Windows Security pop up then enters the credentials and hits enter.(Code below). The trouble is after the credentials are entered, Windows Security continues to pop up. I have checked the credentials and they work properly when I log in manually. Why does Windows Security continue to pop up until the login eventually fails. Code: WinWaitActive("Windows Security") Send("username") Send("{TAB}") Send("password") Send("{ENTER}") Jakkrapong 1 Link to comment Share on other sites More sharing options...
jdelaney Posted April 20, 2018 Share Posted April 20, 2018 (edited) I'm assuming this is a UAC window. Those windows can't be interacted with unless the script is running as admin, which itself requires UAC. Rather than interact with that window, you should create a scheduled task that runs elevated as an admin user. Edited April 20, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
HelloWorld123456 Posted April 23, 2018 Author Share Posted April 23, 2018 (edited) Here is the pop up window that appears and I am able to interact with it in the script. It enters the username and password properly, even enters the credentials but the window pops up again as if the credentials were incorrect. Edited April 23, 2018 by HelloWorld123456 Link to comment Share on other sites More sharing options...
HelloWorld123456 Posted April 23, 2018 Author Share Posted April 23, 2018 Updated my code to the following and it works now. WinWaitActive("Windows Security") Send("username") Send("{TAB}") Send("password", 1) ;changed optional field of send function from 0 to 1. Send("{ENTER}") Link to comment Share on other sites More sharing options...
Earthshine Posted April 23, 2018 Share Posted April 23, 2018 (edited) why can't you use the code tags? i can't even read that dude. I also wonder about what you are actually doing to make that credentials form pop up repeatedly, like you are accessing something in a domain where you are not logged on or your machine is not a member of? Edited April 23, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now