You need to put in the clipboard 3 numbers (for example 244, 3, 6) and then use the key combination to bring them out (ctrl + v + 1 = 244, ctrl + v + 2 = 3, etc.). Is it possible to do this? As far as I know, the clipboard can store only one piece of information.
1 answer
First, you write one value to the clipboard using Clipboard.SetText, then you read this value from the buffer using Clipboard.GetText to a temporary variable, and do something like temp = temp + "Some number", again you do Clipboard.SetText . Repeat the required number of times.
This decision in the forehead, mb someone will come up with something more elegant ...
- It turns out that we will buffer a variable in which there will be 2 numbers? - Andrei
- Yes. You in a text type variable do your merging of numbers through some divisor. - iluxa1810
- Can't you do it through an array? So that when you click on ctrl + v + 1 to display, for example, a number with the index 0, that is, 244 and so on? - Andrei
- The point is that before you write a new value to the buffer, you read everything that is there and add a new number to this value and again put it back in the buffer. - iluxa1810
- I just do not quite understand how then the key combination to bring what you need. - Andrei
|