Sign in to follow this  
Followers 0
philb

Can't read window title with @ imbedded.

7 posts in this topic

We use UltraVNC a lot here to maintain terminals. Until today, we've been using the VNC password authentication, which works great. I can wait for the password window to apear and keyboard the password.

As of today, we switched to UltraVNC NT Auth mode. So, instead of using the terminal VNC password, we use our Windows user id and password.

I started rewriting the routine and found that while this works for VNC Auth:

If oAutoIt.WinWaitActive("VNC Authentication", "", 1) = 1 Then

This doesn't ever detect the new style window:

If oAutoIt.WinWaitActive("Ultr@VNC Authentication", "", 1) = 1 Then

I'm guessing the @ sign is messing something up.

Any ideas on how to get this to work?


Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare.

Share this post


Link to post
Share on other sites



You could always try

If oAutoIt.WinWaitActive("Ultr", "SomeText", 1) = 1 Then

replacing SomeText with text that appears on the window



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

You could always try

If oAutoIt.WinWaitActive("Ultr", "SomeText", 1) = 1 Then

replacing SomeText with text that appears on the window

Ok, I'll try that.

Thanks for the quick reply!


Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare.

Share this post


Link to post
Share on other sites

You might also want to look at the help file on:

WinTitleMatchMode

Alters the method that is used to match window titles during search operations.

1 = Match the title from the start (default)

2 = Match any substring in the title

Using option 2 would let you stick with the more complete title of "VNC Authentication" - but I would still use "some text" to be sure...

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

You could always try

If oAutoIt.WinWaitActive("Ultr", "SomeText", 1) = 1 Then

replacing SomeText with text that appears on the window

This did not work to detect the window.

If oAutoIt.WinWaitActive("Ultr", "Username", 1) = 1 Then

I attached a snapshot of the window in question...


Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

You might also want to look at the help file on:

WinTitleMatchModeUsing option 2 would let you stick with the more complete title of "VNC Authentication" - but I would still use "some text" to be sure...

Ding Ding Ding Ding....

We have a winner!

What a great help forum here. Combined with such a great toolset!

Thank you all.

B)

Edited by philb

Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare.

Share this post


Link to post
Share on other sites

is this a SearchChildren issue... There is another AutoItSetOption involving the searching of child windows... I believe..

Lar.

It's not a child window as far as I know, but I could be wrong. Anyway, problem solved.

This fixed the match issue.

oAutoIt.Opt "WinTitleMatchMode", 2

This is an awesome help forum. Thanks!


Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare.

Share this post


Link to post
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
Sign in to follow this  
Followers 0