can white submit several UI commands (click, etc) without loosing UI focus?

Jan 19, 2009 at 11:26 AM
sorry for present so many questions...

Can one submit several "messages" to the UI without returning to the automation code after each message?
I am thinking here concerning a textbox in a combobox that closes when it looses focus.
If it didnt loose focus... if it got the click to open the combo, a click in the text box to position the cursor, and then the text ...
... it would then work...

Regards,
Paul
Jan 19, 2009 at 12:59 PM

... it might have to do with Core.UIItems.WindowItems.

WPFWindow.Visit(...)
which takes an object that implements the WindowControlVisitor interface...
just guessing :-)

 

Jan 19, 2009 at 6:45 PM
Solved: my postulate is wrong - as long as i didnt fiddle with the debugger, focus remained on the WPF window,
and the combo box remained opened by using the technique involved in the following two lines...

partYearTB.KeyIn(Core.WindowsAPI.KeyboardInput.SpecialKeys.RETURN);
Mouse.Click(System.Windows.Input.MouseButton.Right);

Thanks,
Paul