philb Posted November 14, 2005 Share Posted November 14, 2005 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. Link to comment Share on other sites More sharing options...
BigDod Posted November 14, 2005 Share Posted November 14, 2005 You could always try If oAutoIt.WinWaitActive("Ultr", "SomeText", 1) = 1 Then replacing SomeText with text that appears on the window 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 Link to comment Share on other sites More sharing options...
philb Posted November 14, 2005 Author Share Posted November 14, 2005 You could always tryIf oAutoIt.WinWaitActive("Ultr", "SomeText", 1) = 1 Thenreplacing SomeText with text that appears on the windowOk, I'll try that.Thanks for the quick reply! Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare. Link to comment Share on other sites More sharing options...
herewasplato Posted November 14, 2005 Share Posted November 14, 2005 You might also want to look at the help file on:WinTitleMatchModeAlters 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 titleUsing 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] Link to comment Share on other sites More sharing options...
philb Posted November 14, 2005 Author Share Posted November 14, 2005 You could always tryIf oAutoIt.WinWaitActive("Ultr", "SomeText", 1) = 1 Thenreplacing SomeText with text that appears on the windowThis did not work to detect the window.If oAutoIt.WinWaitActive("Ultr", "Username", 1) = 1 ThenI attached a snapshot of the window in question... Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare. Link to comment Share on other sites More sharing options...
philb Posted November 14, 2005 Author Share Posted November 14, 2005 (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. Edited November 14, 2005 by philb Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare. Link to comment Share on other sites More sharing options...
philb Posted November 14, 2005 Author Share Posted November 14, 2005 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", 2This is an awesome help forum. Thanks! Nothing is ever good nor bad, but thinking makes it so. Wm. Shakespeare. 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