I made two dummy test applications to make sure i was right...

i used
Call PostMessage(tmphwnd, WM_LBUTTONDOWN, MK_LBUTTON, 0)
Call PostMessage(tmphwnd, WM_LBUTTONUP, MK_LBUTTON, 0)

This works on the button i want to click, but ONLY when it doesn't have the focus (that dotted box around the text in the button). When it doesn't have the focus, a message box pops up, it does what it has to do, etc...but nothing happens when it does have the focus.

Is there anything else i can use? has anyone else had this problem??

thanks for the help...

on a side note, why does rval = Postmessage(...etc) not work at all? whats the diff between
PostMessage(...)
and
PostMessage hwnd, wm...etc...

i thought they work exactly the same, but one doesn't work and one does...