Hi, here's something that somebody actually told me in this list about this
problem in the past.
HTHs.
Regds,
Garry
Do you actually want to "see" the button get clicked or do you want to
execute the OnClick event handler. If it's the second, all you need to do is
call the event handler.
i.e. BtnClick(Self);
If it's the first, you need to send the button a message like so:
PostMessage(Button1.Handle,WM_MBUTTONDOWN,0,0);
PostMessage(Button1.Handle,WM_MBUTTONUP,0,0);
With this code you will actually "see" the button getting clicked and the
code will execute.
Shiv.
-----Original Message-----
Hi list,
How can I click a button with code ?
I made a little backup tool that uses Tzipmaster
Sometimes the zip.dll gives me an error message
I want to press the OK button with my code
Is this possible ?