March 28, 200817 yr 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
April 2, 200817 yr 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.
April 24, 200817 yr 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.
Create an account or sign in to comment