Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Paste from clipboard

Post any examples or modules that you want to share here

Re: Paste from clipboard

Postby John.Orco » Thu Apr 09, 2015 7:56 pm

Personally i use .vbs script :oops: . It is another approach, really slower than ruby version, but it does the job!

Code: Select all
Set objHTML = CreateObject("htmlfile")
ClipboardText = objHTML.ParentWindow.ClipboardData.GetData("text")

Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("C:\Windows\Temp\pfcboard.txt", ForWriting, True)
f.Write ClipboardText
f.Close


The process in schematic is

1-Save .vbs* script in temp folder (textsave component)
2-Save .batch* script and execute to execute .vbs "Clipboard to .txt file"
3-read the .txt* with Flowstone (textread component)
4-Save .batch* script and execute to delete all temp files (bat vbs txt) (textsave component + ShellExecute Component)

*these are stocked and/or generated as text inside the schematic.


This take less than 1 second to do all the process...

You can allso copy text/string to clipboard and this just with ONE batch script (generated>saved>executed inside schematic) .

Ruby solution is better i think :roll: .
John.Orco
 
Posts: 1
Joined: Thu Apr 09, 2015 7:30 pm

Previous

Return to User Examples

Who is online

Users browsing this forum: No registered users and 44 guests