stev379 Posted March 15, 2012 Share Posted March 15, 2012 I need to send keys to a username and password prompt in an MMC pop up authentication window\dialogue. This works fine if I use RDP for example, so I know the code is good, but when I access my NetApp filers via the connection I setup in an MMC used for a bunch of other things as well, I get the username and password prompt, but AutoIT (VBS also) won't send the keys to those two fields. The code does not error when I run it in SciTE. Same thing occurs with any similar auth prompt from any other connection in the mmc. Even RDP connections that code can write to outside of the mmc will fail if I open the auth prompt from within the mmc. Just basic code attempts so far. I've tried with and without WinActivate and used the AutoIT Window info tool. Also tried with the handle found by the tool, but it never writes to the fields. WinActivate("Windows Security") Sleep(3000) Send("domain\username") ; send a username Sleep(250) Send("{TAB}") Send("EndUsersAreAwesome") ; send a password Send("{ENTER}") Maybe it's by design and can't be done, but I wanted to check in to see if anyone has come across this. Thanks! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 15, 2012 Moderators Share Posted March 15, 2012 stev379, It is almost certainly by design, but as we do not permit discussion of login methods here I am closing the thread anyway. M23 grwork1 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts