Jump to content

Script to open container for edit


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

Recommended Posts

  • Newbies

This is my first post. I would like to create a script so that a container can easily be opened for editing (rather than having to right click and then select OPEN PRESENTATION). That way I could make the container itself be a button and all the user has to do is to click on it to edit it.

I have powerpoint slides in containers. If the user double clicks on them they open for viewing. I am using FM 5. I would appreciate any help anyone can give me. Thanks in advance.

Link to comment
Share on other sites

The only option you have is a scripted Go To Field with the "select/perform" option toggled. Unfortunately with powerpoint slides it just shows the presentation but doesn't open it for editing. So I think you're out of luck.

Maybe a link to the file would be better instead of embedding the object?

Link to comment
Share on other sites

  • 2 weeks later...

This is possible by using a very short easy visual basic script

write a filemaker script that goes to but does not preform the container field you want to edit, then use a send message script step to open a .vbs file (can be made in notepad and saved with a .vbs)

the visual basic file should be:

'This file must be saved with a .VBS extention for computer to run it

' make a script in filemaker

'that goes to but does not preform

'the field you want to edit

'and use a sendmessage script step to run

'this visual basic script

Set WshShell = WScript.CreateObject("WScript.Shell")

'activates filemaker

WshShell.AppActivate "FileMaker Pro"

'same as shift+F10 same as right click

WshShell.SendKeys"+{F10}"

'allows time for keystokes to register 1000=1sec

WScript.Sleep 500

'same as hitting E on the keyboard

WshShell.SendKeys"E"

Link to comment
Share on other sites

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