Jump to content
Mr. hamid reza

paste data from clipboard

Recommended Posts

Hello all,

 

I am creating a Ffeature, which uses the COM interface to get some results from external software.

 

The results table of external software only can be copied to clipboard by available commands of its COM methods.

Now, I need to paste the data in a file or string variable and then extract my required values from those file or string. So, is there any command or method inside a Feature that can paste the data from the clipboard?

 

P.S.: I don’t have access to the “ResourceManager”.

 

Thanks in advance

Hamidreza

Share this post


Link to post
Share on other sites

Hi Hamidreza,

 

You can use 

 

FDesignResultsTable.countRows()

FDesignResultsTable.countColumns()

FDesignResultsTable.getValueAt(row, column)

 

to access the values of a results table.

 

something like:

 

loop(myTable.countRows())

  int row($$i)

  loop(myTable.countColumns())

    int col($$i)

    double value(myTable.getValueAt(row, col))

    // ...

  endLoop

endloop

 

Cheers,

Stefan

Share this post


Link to post
Share on other sites

Hi Stefan
Thanks for your reply.
 
I like to explain my problem in other way. When I run the external program, the results of external program can only copied in format of table, on the Windows clipboard. So your suggestion means that the “FDesignResultsTable” can automatically paste the results from the Windows clipboard, it is right?
 
By the way, with running the “FDesignResultsTable” , the Windows stops the CAESES and the software will be terminated automatically, as you can see in the attached pictures.
I will be waiting for your reply.
 
best regards
Hamidreza

post-466-0-88397100-1497004539_thumb.png

post-466-0-64646300-1497004548_thumb.png

Share this post


Link to post
Share on other sites

Hi Hamidreza,

 

Ok, now I understand. Currently there is no option to get the clipboard text.

However, it would be possible to offer this function in the next release.

 

Would that help?

 

Cheers,
Stefan

Share this post


Link to post
Share on other sites

Hi Stefan

 

I solved my problem by another way.

 

Actually instead of just copy and paste, I would like to suggest, the key control ability inside the Ffeature. :)  I mean , sending the keystrokes to another program!

For example, in my case, I found that my external software do not support all the commands by COM interface. So the ideal process for me is sending the keystroke by CAESES Ffeature for doing some operation, which is not supported in the COM library of external software.

I don’t know, how difficult is implementing such application, but I found some free software that can do it.

 

Best Regards

Hamidreza

Share this post


Link to post
Share on other sites

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...