PDA

View Full Version : Send Keystrokes To External Application



marktanc
10-27-2003, 12:11 PM
Part of the package that I am putting together involves calling another setup application. Whilst people could manually intervene, I would like to know if there is a way that I can send the keystrokes to this application. I guess it is by use of SendMessage, but don't know enough about Windows Api to work out the format.
Can anyone out there help???

Thanks

Mark Thompson
ANC Rental Corporation

RobertDickau
10-27-2003, 12:52 PM
Please see this thread for an example: http://community.installshield.com/showthread.php?s=&threadid=99554.

marktanc
10-28-2003, 04:04 AM
Robert,

Thanks for this - this does pretty much what I am trying to achieve, but it uses the SendKeys() function, which I can find no reference to in DevStudio 9.

I guess I am looking for some method of emulating this function, that will work in 9.

Mark

RobertDickau
10-28-2003, 01:46 PM
That code is intended for InstallScript, if I understand the question; just as you can call API functions from InstallScript, you can often call COM Automation methods for registered objects...