Pat,
Sorry, I guess I misread your original question. I don't know of an easy way to find a moving icon on a menu bar.
The only thing I can think is to use the Get Pixel Color command and have the macro check a specific pixel under each icon. After getting the color of the first pixel, use the If Variable command to see if it is the correct icon. If so, move the mouse to the coordinates and click, or do what you need.
If not, move to the coordinates under the next icon and repeat the process until finding the correct icon. This will work if the moving icons are all the same size. If some are wider than others and they switch positions, then the above method will not work.
Stan