We have a WPF application we are trying to automate and I am having trouble performing complex key presses. We have a control that responds to CTRL+ALT+SHIFT+T which works when manually entered however using both of the 2 different methods below it fails to work. Please note that simpler 3 key combos work on the same control using Method 2 below but I have not tried using method 1.
Method 1
control.User.Click(MouseClickType.LeftClick);
control.User.Click(MouseClickType.LeftClick);
Method 1
control.User.Click(MouseClickType.LeftClick);
var keys = ArtOfTest.WebAii.Win32.KeyBoard.KeysFromString("SHIFT+CTRL+ALT+T"); AtlasApp.Manager.Desktop.KeyBoard.KeyPress(keys, 500);Method 2
control.User.Click(MouseClickType.LeftClick);
AtlasApp.Manager.Desktop.KeyBoard.KeyDown(Keys.Control);AtlasApp.Manager.Desktop.KeyBoard.KeyDown(Keys.Alt);AtlasApp.Manager.Desktop.KeyBoard.KeyDown(Keys.Shift);AtlasApp.Manager.Desktop.KeyBoard.KeyPress(Keys.T);AtlasApp.Manager.Desktop.KeyBoard.KeyUp(Keys.Shift);AtlasApp.Manager.Desktop.KeyBoard.KeyUp(Keys.Alt);AtlasApp.Manager.Desktop.KeyBoard.KeyUp(Keys.Control);