We have an automation script that displays booking details; the customer would like to copy the data from the booking details window.
As a workaround, we have replaced the label widgets in the automation script with the TextBox widget, which allows us to copy the data from it. However, we lost the formatting that we had with labels.
Keeping the labels would be the cleaner solution; can the data from the labels be copied somehow?
As far as I know there is no support for copying over parts of automation script interactive user interfaces to the clipboard.
I'm not seeing an easy solution here.
Aside from the TextBox approach, the only thing I could think of would be the RunClientProgram method, which allows for launching a client application on the client machine. But then again, you will need to figure out if there is any application you can run out of the box and pass in the needed info, or develop an app yourself and make sure that it is installed on all client machines.
C# has a method to set the text on your clipboard, which is the equivalent of doing a copy. You could execute that code on the click of a copy button or on a certain hotkey press.
EDIT: My answer is invalidated by Wouter's comment as indeed scripts run on the server, so you can't copy to clipboard. The best course of action is probably to make a feature suggestion or use a textbox as you already are.