c# - Visual Studio Addin - automated right mouse click -


Is there any way that I can press my adicin right mouse button and then choose an option from the opened context menu ?

Something like this:

  _applicationObject.Windows.Item (EnvDTE.Constants.vsWindowKindSolutionExplorer). Activate (); _applicationObject.ToolWindows.SolutionExplorer.GetItem (ProjectName) .Select (vsUISelectionType.vsUISelectionTypeSelect); _applicationObject.ExecuteCommand ("press right mouse button"); _applicationObject.ExecuteCommand ("Click to XP option from the content menu");  

Followers @ Adriano Repetti advice and find out

 < Code> _applicationObject.ExecuteCommand ("ClassViewContextMenus.ClassViewProject.Rebuild");  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -