Hi jcai,
Here is a link to a KnowledgeBase article that includes a small simple example for simulating a mouse click. It uses a flat sequence in order to display the code to the user, but it should get the job done.
http://digital.ni.com/public.nsf/allkb/C5EDD606E6083DA1862573010001A5BD?OpenDocument
Regards,
Clint M
National Instruments