public Boolean PostText(IUIItem item, string text) { if (item.Enabled) { item.Focus(); item.Enter(text); return(true); } else { return(false); } }
public void MoveToCell(int rowIndex, int colIndex) { grid.Focus(); for (int i = 0; i < maxColumns; i++) { window.Keyboard.PressSpecialKey(Core.WindowsAPI.KeyboardInput.SpecialKeys.LEFT); } for (int i = 0; i < maxRows; i++) { window.Keyboard.PressSpecialKey(Core.WindowsAPI.KeyboardInput.SpecialKeys.UP); } for (int i = 0; i < rowIndex; i++) { window.Keyboard.PressSpecialKey(Core.WindowsAPI.KeyboardInput.SpecialKeys.DOWN); } for (int i = 0; i < colIndex; i++) { window.Keyboard.PressSpecialKey(Core.WindowsAPI.KeyboardInput.SpecialKeys.RIGHT); } }
/// <summary> /// Implements <see cref="IUIItemContainer.GetToolTipOn" /> /// </summary> public virtual ToolTip GetToolTipOn(IUIItem uiItem) { Mouse.Location = uiItem.Bounds.Center(); uiItem.Focus(); return(ToolTip); }