Activate a Windows menu item.

void ActivateMenuItem(params string[] menuItemPath);


menuItemPath: The path to the required menu item. This should be a sequence specifying the path through the menu to the required item. The items in this path can be specified either as the menu text values or as index numbers.

Return Value



AutomationControl notepadWindow = FindTopAutomationWindow("Untitled - Notepad");

notepadWindow.ActivateMenuItem("file""page setup...");


This topic was last updated on November 26, 2021, at 01:03:00 PM.

Eggplant icon | Documentation Home | User Forums | Support | Copyright © 2021 Eggplant