|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Clipboard Commands > Get Clipboard Text > Clipboard Commands |
MiniRobotLanguage (MRL)
CLB.Get Uni Text
Specially Designed to get Unicode UTF-16 from the Clipboard
Intention
This command is designed to get Unicode text from the clipboard. If the result is not satisfying, you may need to swap the Byte-Order (or use another command).
Syntax
CLB.Get Uni Text[|P1]
Parameter Explanation
P1 - (optional) Is the variable for the result. If omitted, the result is placed on TOS.
Example
'***********************************
' CLB.-Sample
'***********************************
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
' Depending on Byte-Order and use-case you may need to use the command below
'STR.Swap Byte Order|$$UNI
CLB.Set UniText|$$UNI
PRT.CONTENT:
CLB.GetContent|$$CON
PRT.$$CON
PRT.--------------------
CLB.Get UniText|$$RET
PRT.GOT:
PRT.$$RET|c
PRT.--------------------
PRT.ShowA
CLB.showa
MBX.!
$$UNI=Hallo Ich nun hier.
CLB.Set UniText|$$UNI
PRT.CONTENT:
CLB.GetContent|$$CON
PRT.$$CON
PRT.--------------------
CLB.Get UniText|$$RET
PRT.GOT:
PRT.$$RET|c
PRT.--------------------
PRT.ShowA
CLB.showa
MBX.!
END.

Remarks
-
Limitations:
-
See also:
•