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

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -