Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to clipboard.paste with options?
#1
I would like to refine my usage of clipboard.paste(s) and pass the option to not restore the content. So I found 
opt.key.RestoreClipboard = true
and I've seen that clipboard.paste can use options - but I can't work out the syntax to combine all that into a valid command.
Would appreciate some help! Wink
#2
Code:
Copy      Help
opt.key.RestoreClipboard = false;
clipboard.paste("Example\r\n");

or
 
Code:
Copy      Help
OKey okey = new() { RestoreClipboard = false };
clipboard.paste("Example\r\n", options: okey);

or

Code:
Copy      Help
using (opt.scope.key()) {
    opt.key.RestoreClipboard = false;
    clipboard.paste("Example\r\n");
}
#3
Excellent -thanks very much!


Forum Jump:


Users browsing this thread: 1 Guest(s)