Guest fedrac Posted March 2, 2005 Share Posted March 2, 2005 Checked the FAQ and help file and cannot seem to find the right feature that applies here. I'm sorry I can't seem to find the right words to describe my issue... I'm starting a MS terminal services client session, the result will be an Active Window, but also some additional windows will be opened within the Active Window, like a login screen with username/password for the remote server I'm trying to term serv to. I've figured that I could just use Sleep to wait a few seconds before entering commands, but I'm wondering if there's a more efficient way to be able to identify any windows that may open inside with any built in functions. Sleep is nice, but I'm trying to impress here... My working code that I want to clean up: (some_ip, some_username, some_password are just made up to protect the innocent) Run("mstsc") WinWaitActive("Remote Desktop Connection") Send("some_ip") Send("{ENTER}") WinWaitActive("some_ip - Remote Desktop") Sleep(5000) Send("!u") Send("some_username") Send("!p") Send("some_password") Send("{ENTER}") Send("^!{END}") Sleep(5000) Send("!l") Sleep(5000) Send("!y") WinWaitActive("Remote Desktop Connection") Send("{TAB 2}") Send("{ENTER}") Link to comment Share on other sites More sharing options...
bshoenhair Posted March 2, 2005 Share Posted March 2, 2005 There are Child windows right ? Maybe you can use: Opt("WinSearchChildren",1) Link to comment Share on other sites More sharing options...
Guest fedrac Posted March 2, 2005 Share Posted March 2, 2005 There are Child windows right ?Maybe you can use:Opt("WinSearchChildren",1)<{POST_SNAPBACK}>That didn't work, but thanks for trying to help.Marco 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