ActivateMenuItem

Activate a Windows menu item.

void ActivateMenuItem(params string[] menuItemPath);

void ActivateMenuItem(params int[] menuItemPath);

Parameters

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

None.

Example

notepadWindow = FindTopWindow("Untitled - Notepad");

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

 

notepadWindow.ActivateMenuItem(0, 5);   // alternative using index

 

This topic was last updated on January 13, 2022, at 02:42:23 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant