I am trying to use API to click a button in another application. I already have the handle to the button, but can't seem to make the click event fire. It is a graphics button and does not respond to keyboard events, so the click is the only way I can think of.

I have tried using both SendMessage and PostMessage API calls with WM_LBUTTONDOWN and BM_CLICK and BN_CLICKED but nothing.

Any ideas?