The approach outlined in the post that you referred to is really only needed when you’re trying to add images or steps in the middle of a script. So, for example, you already have an image of the Edit menu, but now you want to add an image of the Cut menu option. In that case you would click open the menu in Live Mode, and then use the Live/Capture toggle key (command by default) to switch to Capture Mode so you can select and capture the menu option. As noted, this technique is also sometimes needed on systems (like OS9) where the menus don’t remain popped open for very long.
But, generally the best way to capture menus on a PC SUT is to just capture them in the course of normal scripting the way you would anything else. There’s not really any special technique or shortcut that makes capturing menus any different from capturing buttons or any other UI elements. As you mentioned, you can always script the keyboard shortcuts – you could even put each one in it’s own script that you could call by name. So you could have a script called Cut that looked like this:
TypeText “\cx\C”
and others for Copy, Paste, and anything else with a keyboard sequence. Other approaches (like all of them in a single script) would also work.
"that you would go into “Capture Mode” and select the menu selection.
It is treated like any other image that you can capture and perform a script command on. "
So I make two Captures one capture single click to define and select the proper menu, and one capture single click cto define and select the proper menu option?
So, I’m back from vacation and ready to offer some further clarification:
Here’s the sequence for capturing your selected menu item, assuming that you a) are actually generating a script that incorporates this menu sequence and b) you haven’t previously captured any of the images.
Enter capture mode.
Using the capture area, select the top level menu text and click the “Click” button on the toolbar. Name and save your image.
Again using the capture area, select the submenu item that you want to capture in a highlighted state. Click the “Move To” toolbar button. Name and save your image. At the end of this step, the mouse will be over the submenu item and it will be selected.
Without changing the capture area, click the “Click” button on the toolbar. Name and save your selected menu option image.
The above is what I mean when I say to capture the menus “normally”. Now, if all you want to do is capture a particular submenu item in a selected state, then you would use the technique that you asked about initially:
In Live mode, select the menu item that you want to capture.
Type the Command key to toggle into Capture mode.
Use the capture area to select the menu item.
Click the “Capture Image” button on the toolbar and name and save your image.