|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Clipboard Commands > Set Clipboard Text > Clipboard Commands |
MiniRobotLanguage (MRL)
CLB.Set Unicode
This command will put the text as Unicode into the clipboard
Intention
This command will treat P1 as Unicode (UTF-16) text.
Technically its somehow the same like these two commands:
STR.Swap Byte Order|$$UNI
CLP.t|$$UNI|13
The text is transferred to the clipboard as Unicode and the Byte-Order is switched.
Use this version if the CLB.Set Text does not work.
If you do not want the Byte Order to be switched, use the CLP.-Command as shown below.
VAU.$$UNI=00 50 00 72 00 6f 00 66 00 69 00 6c 00 21 00 20 d8 3d dc ef 00 20 00 44 00 61 00 73 00 20 00 50 00 6f 00 73 00 74 00 68 00 6f 00 72 00 6e 00 2c 00 20 d8 3c dd fa d8 3c dd e6 00 20 00 64 00 69 00 65 00 20 00 55 00 6b 00 72 00 61 00 69 00 6e 00 65 00 2d 00 46 00 6c 00 61 00 67 00 67 00 65 00 20 00 75 00 6e 00 64 00 20 d8 3d dc 89 00 20 00 64 00 69 00 65 00 20 00 53 00 70 00 72 00 69 00 74 00 7a 00 65 00 2e 00 2e 00 2e
CLB.Set Unicode|$$UNI
CLB.Get Unicode|$$UNA
CLP.t|$$UNA|13
CLB.Show Ansi
MBX.!
ENR.
is the same as:
VAU.$$UNI=00 50 00 72 00 6f 00 66 00 69 00 6c 00 21 00 20 d8 3d dc ef 00 20 00 44 00 61 00 73 00 20 00 50 00 6f 00 73 00 74 00 68 00 6f 00 72 00 6e 00 2c 00 20 d8 3c dd fa d8 3c dd e6 00 20 00 64 00 69 00 65 00 20 00 55 00 6b 00 72 00 61 00 69 00 6e 00 65 00 2d 00 46 00 6c 00 61 00 67 00 67 00 65 00 20 00 75 00 6e 00 64 00 20 d8 3d dc 89 00 20 00 64 00 69 00 65 00 20 00 53 00 70 00 72 00 69 00 74 00 7a 00 65 00 2e 00 2e 00 2e
CLB.Set Unicode|$$UNI
CLB.Get Unicode|$$UNA
STR.Swap Byte Order|$$UNA
CLB.Set Unicode|$$UNA
CLB.Show Ansi
MBX.!
ENR.
' The following code will put this text including the emojis into the clipboard. You can see it if you paste it on a website where it can be displayed.
CLB.Reset
VAU.$$UNI=fe ff 00 50 00 72 00 6f 00 66 00 69 00 6c 00 21 00 20 d8 3d dc ef 00 20 00 44 00 61 00 73 00 20 00 50 00 6f 00 73 00 74 00 68 00 6f 00 72 00 6e 00 2c 00 20 d8 3c dd fa d8 3c dd e6 00 20 00 64 00 69 00 65 00 20 00 55 00 6b 00 72 00 61 00 69 00 6e 00 65 00 2d 00 46 00 6c 00 61 00 67 00 67 00 65 00 20 00 75 00 6e 00 64 00 20 d8 3d dc 89 00 20 00 64 00 69 00 65 00 20 00 53 00 70 00 72 00 69 00 74 00 7a 00 65 00 2e 00 2e 00 2e
CLB.Set Unicode|$$UNI
ENR.
![]()

Syntax
CLB.Set Unicode[|P1]
Parameter Explanation
P1 - (optional) Is Is the text to be assigned to the clipboard. If omitted, the clipboard is cleared.
Example
'***********************************
' CLB.-Sample 1
'***********************************
VAU.$$UNI=00 50 00 72 00 6f 00 66 00 69 00 6c 00 21 00 20 d8 3d dc ef 00 20 00 44 00 61 00 73 00 20 00 50 00 6f 00 73 00 74 00 68 00 6f 00 72 00 6e 00 2c 00 20 d8 3c dd fa d8 3c dd e6 00 20 00 64 00 69 00 65 00 20 00 55 00 6b 00 72 00 61 00 69 00 6e 00 65 00 2d 00 46 00 6c 00 61 00 67 00 67 00 65 00 20 00 75 00 6e 00 64 00 20 d8 3d dc 89 00 20 00 64 00 69 00 65 00 20 00 53 00 70 00 72 00 69 00 74 00 7a 00 65 00 2e 00 2e 00 2e
CLB.Set Unicode|$$UNI
CLB.Get Unicode|$$UNA
STR.Swap Byte Order|$$UNA
CLB.Set Unicode|$$UNA
CLB.Show Ansi
MBX.!
ENR.
This Script will put some Emojis and Text into the Clipboard.
If you paste this into a WEB-Site that supports Emojis, you will get this:

'***********************************
' CLB.-Sample 2
'***********************************
VAS.$$UNI=Hallöchen Müßli
CLB.Set oemtext|$$UNI
CLB.Show
CLB.Set Text|$$UNI
CLB.Show
CLB.Set Unicode|$$UNI
CLB.Show
CLP.t|$$UNI|1
CLB.Show
CLP.t|$$UNI|13
CLB.Show
VAU.$$UNI=ff fe 3e d8 37 dd 0d 20 42 26 0f fe 57 00 65 00 6e 00 6e 00 b4 00 73 00 20 00 73 00 6f 00
CLB.Set oemtext|$$UNI
CLB.Show
CLB.Set Text|$$UNI
CLB.Show
CLB.Set Unicode|$$UNI
CLB.Show
CLP.t|$$UNI|1
CLB.Show
CLP.t|$$UNI|13
CLB.Show
ENR.
Remarks
-
Limitations:
-
See also:
•