![alt text](https://i.stack.imgur.com/qDeyq.jpg)

I want to create an auto-tunneler for Garena. What basically has to be done is iterate through all the items in the list box (in the right - I think that is what it is.), right click and click tunnel on each of them. I only have a C compiler with me atm. Any ideas on how to do this? What API calls and so on?

EDIT:
Few clarifications as I see my original question was rather vague.

1. I do not have the source code of Garena nor do I waish to reverse engineer it.
2. I want to write a standalone application which will send messages or mouse clicks to the window.I was under the impression that this is possible. Am I wrong?