Jump to content

Stopping OpenURL from losing focus


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

Recommended Posts

  • Newbies

I need to send a 'request' to a URL but I don't want to loose focus from FMPro. Everything I have tried on Mac and PC takes me off to the Browser! I don't want to go off to the browser but I want the hit to the URL to be made.

The request causes a field to be updated on my webserver and allows basic comms between the FMPro database and the web server. Any ideas?

Link to comment
Share on other sites

quote:

Originally posted by Ivan Markovic:

I need to send a 'request' to a URL but I don't want to loose focus from FMPro. Everything I have tried on Mac and PC takes me off to the Browser! I don't want to go off to the browser but I want the hit to the URL to be made.

The request causes a field to be updated on my webserver and allows basic comms between the FMPro database and the web server. Any ideas?

On Mac try this

code:


OpenURL[your URL, no dialog]

performAppleScript[tell me to activate]

HTH

Dj

Link to comment
Share on other sites

Hey Ivan.

I don't if it works on the Mac, but this script seems to work on the PC:

Open URL ["http://mandolincafe.com"]

Pause/Resume Script ["0:00:05"]

Send Message ["FileMaker Pro.exe","aevt","odoc"]

The Send Message step opens the file FileMaker Pro.exe. (Make sure to click the Bring target application to foreground option).

I included the five-second pause because Internet Explorer wants to come to the foreground once the page is loaded, but the Send Message brings FM to the foreground immediately. So you need to give IE five seconds (or whatever is appropriate for your computer) to do it's thing, then FM can take over.

Link to comment
Share on other sites

This topic is 8034 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.