Controlling other Apps

howester77

Active member
Joined
Aug 5, 2005
Messages
38
Programming Experience
5-10
How do you control other applications? for example, clicking a button would type, "http://www.yahoo.com" into firefox?
 
The MS Office application suite is the only I know that got automation provided. For other applications, a common way to do automation is to use SendKeys to send sequences of keystrokes to the active window - usually an application is fully controllable by keyboard without using the mouse.
 
i think you could also use something along the lines of:
VB.NET:
Try
  Dim prcFireFox As New Process = Process.Start("FireFox", "www.Yahoo.com")
Catch
  MessageBox.Show("FireFox isn't installed")
End Try

of course you'd need to check the registry for the FireFox key so you know where it's been installed to before starting it as a process
 
Back
Top