I want to click a button on an external program from code. The button doesn't have any shortcut assigned to it, so I can't use sendkeys.

I managed to find the hwnd of the button, but I don't know how to click it. Any ideas?