Jump to content
Server Maintenance This Week. ×

Open/Close Application


This topic is 5952 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I would like to open and close an application using a filemaker script (I am using windows XP). I'm assuming you have to use a VB script. So I am wondering if someone can give me an example code of how to open and close an application, or point me to some online literature so I can get myself up to speed.

Thanks

Jeff England

Link to comment
Share on other sites

  • 1 month later...

Most applications can be launched with a command line and that's where the Send Event can help. You can specify a valid command line and it will work. For closing an app it may be more difficult, check the app's documentation to see if there is a command line switch for that.

You can also use a VB script, check out my website for some resources on how to get started creating and executing a VB script from inside FM.

Let us know how it goes!

Link to comment
Share on other sites

One way of closing an app is to use VBscript's "AppActivate" to bring it forward, followed by a SendKeys command sending ALT-F4 (the universal command for closing an app). Don't forget to handle any prompts that the other app might throw up (like saving, "are you sure",...)

Link to comment
Share on other sites

This topic is 5952 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.