Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have tried searching for a solution but can't find anything hence my post.

I am trying to get a script in FM to either paste the clipboard contents or a fields contents to an external application. I have a Send event command which opens up the application . I have set the event to bring the other application to the foreground and I have the cursor flashing in the very place I need the FM data.

Is there a Send Event command to either paste the clipboard or get a fields contents to this application?

Any help would be appreciated

Thanks

Posted

open notepad and save the following code as filename.vbs

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

WshShell.SendKeys"^v"

WScript.DisconnectObject(WshShell)

WScript.Quit(1)

(this is the same as user doing a Ctrl + V to paste)

then do a sendevent with this file as a target(do NOT bring target to foreground).

Be carefull, this will paste whatever is on the clipboard to whatever has the focus. There may also be security issues depending on what environment you are working in.

  • 3 weeks later...
Posted

that's about the extent of it.

In order to make sure your desired app has focus you can add an AppActivate step calling for part of what is in the target app's title bar.

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