working with clipboard

Created at 06 May 2024, 05:35
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
PR

prihod007

Joined 02.05.2024

working with clipboard
06 May 2024, 05:35


Hello
Please tell me how can I copy data to the clipboard and extract it from the clipboard in cbot?
If possible, please provide an example of the code

the advice given in this topic does not help
https://ctrader.com/forum/cbot-support/3267#post-109409


@prihod007
Replies

firemyst
15 May 2024, 14:09 ( Updated at: 16 May 2024, 05:31 )

Have you Googled for samples using C#?

https://learn.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how-to-add-data-to-the-clipboard?view=netframeworkdesktop-4.8

In your cBot, you may need it to have elevated permissions. For example:

 [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]

 


@firemyst