This library is a layer on top of Friendly, so you must learn that first. But it is very easy to learn.
https://github.com/Codeer-Software/Friendly.Windows
Install Friendly.XamControls from NuGet
PM> Install-Package Friendly.XamControls
https://www.nuget.org/packages/Friendly.XamControls/
Friendly.XamControls defines the following classes.
They can operate the control easily from a separate process.
- XamCalendarDriver
- XamComboEditorDriver
- XamValueEditorDriver
- XamContentPaneDriver
- XamDataGridDriver
- XamDataGridCellDriver
- XamDataGridCheckCellDriver
- XamDataGridComboCellDriver
- XamDataGridTextCellDriver
- XamDataTreeDriver
- XamDataTreeCheckNodeDriver
- XamDataTreeNodeDriver
- XamDataTreeTextNodeDriver
- XamDockManagerDriver
- XamGridDriver
- XamGridCellDriver
- XamGridCheckCellDriver
- XamGridComboCellDriver
- XamGridTextCellDriver
- XamOutlookBarDriver
- XamOutlookBarGroupDriver
- XamRibbonDriver
- XamApplicationMenu2010Driver
- XamApplicationMenu2010ItemDriver
- XamApplicationMenuDriver
- XamToolMenuItemDriver
- XamTabControlDriver
- XamTabItemDriver
//sample varprocess=Process.GetProcessesByName("Target")[0];using(varapp=newWindowsAppFriend(process)){dynamicmain=app.Type(typeof(Application)).Current.Window;var_grid=newXamGridDriver(main._grid);varcell=_grid.GetCell(2,1);cell.EmulateActivate();boolisActive=cell.IsActive;varcellText=_grid.GetCell(2,0).AsText();cellText.EmulateEdit("abc");stringtext=cellText.Text;varcellCombo=_grid.GetCell(99,1).AsCombo();cellCombo.EmulateEdit(1);cellCombo.EmulateEdit("c");text=cellCombo.Text;intselectedIndex=cellCombo.SelectedIndex;varcellCheck=_grid.GetCell(99,2).AsCheck();cellCheck.EmulateEdit(false);boolchecked=cellCheck.IsChecked;}https://github.com/Codeer-Software/Friendly.XamControls/tree/master/Project/Test
For other GUI types, use the following libraries:
For Win32.
https://www.nuget.org/packages/Codeer.Friendly.Windows.NativeStandardControls/For WinForms.
https://www.nuget.org/packages/Ong.Friendly.FormsStandardControls/For WPF.
https://www.nuget.org/packages/RM.Friendly.WPFStandardControls/For getting the target window.
https://www.nuget.org/packages/Codeer.Friendly.Windows.Grasp/For 3d party.
https://www.nuget.org/packages/Friendly.XamControls/
https://www.nuget.org/packages/Friendly.C1.Win/
https://www.nuget.org/packages/Friendly.FarPoint/
If you use PinInterface, you map control simple.
https://www.nuget.org/packages/VSHTC.Friendly.PinInterface/