Simulate a mouse click on the sub-menu in menu?

Hello, in the sketchup ruby API, can I use the ruby code to simulate a mouse click on the sub-menu in menu?

Please only start one thread per question.