simulate button click

how simulate a button click? send message of click to a window who is
minimized?