Link to home
Start Free TrialLog in
Avatar of drnadeem
drnadeem

asked on

Click a button in another program!!

I've got a working exe that runs ok. What i want to do is to click a button in the exe via my own program. How do i do that ?
Avatar of Madshi
Madshi

Find the button window handle (e.g. with FindWindow(Ex)), then use PostMessage(WM_KEYDOWN, ...) and PostMessage(WM_KEYUP, ...) to simulate key presses.

Regards, Madshi.
look at the source on this component how to do it exactly (or just use the component) :-)

http://www.delphipages.com/edit/count.cfm?comID=453&Link=uploads%2FMiscellaneous%2FMUMacro1%2Ezip 

Regards, Zif
Avatar of drnadeem

ASKER

Wasn't able to download/visit to your page by double clicking it.
ASKER CERTIFIED SOLUTION
Avatar of ahalya
ahalya
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial