Jump to content
Server Maintenance This Week. ×

Pasting clipboard or field contents to extenal application


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

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

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