Can't get Focus() to work

May 2, 2011 at 7:15 PM

In order to give a window focus I am trying:

White.Core.UIItems.WindowItems.Window mainwindow = scAPP.GetWindow(titleishere);
mainwindow.Focus(); 

Should this work?

 

I am correctly referencing the window, because I am able to click buttons in it.