Jump to content

Windows within an Active Window


Guest fedrac
 Share

Recommended Posts

Guest fedrac

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

Guest fedrac

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...