By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,181 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,181 IT Pros & Developers. It's quick & easy.

Control an external program

P: n/a
Hello all of you.

I have a little big problem.
I have made a little program that starts an external program (Acrobat).
When the program has loaded i use the sendkeys method to make the
actions i want to do.
When i test my application, it works fine, but when I try it on a
different computer where Acrobat also installed, the program works ,
but gives no output...

The version and language of Acrobat asre the same on both machines, the
only difference is the operating system (mine is WinXP, the other is

Can anyone tell me if my problem could be the operating system, or
something else.

Maybe someone knows a better solution for what I am trying to do here,
please give it to me...

Dim ProcID As Integer
' Start the Application application, and store the process
ProcID = Shell("C:\Program Files\Adobe\Acrobat
7.0\Acrobat\Acrobat.exe", AppWinStyle.NormalFocus)
' Activate the application.
'Open the given file
SendKeys.SendWait("^o") 'Open a file
SendKeys.SendWait("~") 'Enter

'Here stands more code before I save the file. but it was irrelevant
code so I left it away

SendKeys.SendWait("^s") 'Save as
SendKeys.SendWait(edtFile.Text & "Booklet.pdf")
SendKeys.SendWait("~") 'Enter
SendKeys.SendWait("%{F4}") 'Close Application
Thanks in advance

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.