in reply to How to use menu options

Instead of navigating the menus, I recommend using the hotkeys. In the case of Microsoft Excel, that would be CTRL-S (or in Win32::GuiTest speak, sendkeys(^S)) for saving the file.

Replies are listed 'Best First'.
Re^2: How to use menu options
by ankit.tayal560 (Beadle) on Nov 10, 2016 at 09:19 UTC

    Okay, but that's why I wrote that saving a file is just taken as an example there can be certain functions which do not have shortcut keys.

    i'll have to navigate the menu only in that case that's why wanted to approach in that way

      I recommend sending keys instead of the MenuSelect function, especially if the MenuSelect function does not work for you.

      In your example case, this would mean sending %FS for the sequence ALT-F S to select the File menu and then Save.

        Ok ..Sending Keys works Maybe I should go with that only

        thanks for your suggestions!